de.cau.cs.kieler.kex.controller.util
Class ExampleImport

java.lang.Object
  extended by de.cau.cs.kieler.kex.controller.util.ExampleImport

public final class ExampleImport
extends Object

Contains all Elements for an import of examples.

Rating red

Method Summary
static InputStream getEmptyPic()
          Loads the empty picture, often called when no example image exists.
static List<String> importExamples(IPath selectedResource, List<Example> selectedExamples, boolean checkDuplicate)
          This method contains all functions to import an example.
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

importExamples

public static List<String> importExamples(IPath selectedResource,
                                          List<Example> selectedExamples,
                                          boolean checkDuplicate)
This method contains all functions to import an example.

Parameters:
selectedResource - , destination resource of type IPath.
selectedExamples - , List of Examples.
checkDuplicate - , flag for checking example duplication in project.
Returns:
directopens, List of String.

getEmptyPic

public static InputStream getEmptyPic()
Loads the empty picture, often called when no example image exists.

Returns:
InputStream

validate

public static void validate(IPath selectedResource,
                            List<Example> selectedExamples,
                            boolean checkDuplicate)
validates the selected examples.

Parameters:
selectedResource - , IPath
selectedExamples - , List of Example
checkDuplicate - , boolean