|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectde.cau.cs.kieler.kex.controller.util.ExampleImport
public final class ExampleImport
Contains all Elements for an import of examples.
Method Summary | |
---|---|
static InputStream |
getEmptyPic()
Loads the empty picture, often called when no example image exists. |
static List<String> |
importExample(IPath destination,
Example example,
boolean checkDuplicate)
Imports an example. |
static List<String> |
importExamples(IPath destination,
List<Example> examples,
boolean checkDuplicate)
Imports a list of examples. |
static void |
validate(IPath selectedResource,
List<Example> selectedExamples,
boolean checkDuplicate)
validates the selected examples. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static List<String> importExamples(IPath destination, List<Example> examples, boolean checkDuplicate) throws Exception
destination
- , destination resource of type IPath
.examples
- , List
of Example
s to import.checkDuplicate
- , flag for checking example duplication in project.
List
of String
.
Exception
public static List<String> importExample(IPath destination, Example example, boolean checkDuplicate) throws Exception
destination
- where to import the example to.example
- the example to import.checkDuplicate
- flag for checking example duplication in project.
Exception
- if anything goes wrong.public static InputStream getEmptyPic()
InputStream
public static void validate(IPath selectedResource, List<Example> selectedExamples, boolean checkDuplicate)
selectedResource
- , IPath
selectedExamples
- , List
of Example
checkDuplicate
- , boolean
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |