|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectde.cau.cs.kieler.kaom.importer.ptolemy.DiagramsImporter
public class DiagramsImporter
An importer for Ptolemy2 diagrams. Usually invoked by the import wizard. Designed to only run once and be destroyed.
Constructor Summary | |
---|---|
DiagramsImporter(ImportDiagramsWizard wizard,
List<File> sourceFiles,
IPath targetContainerPath,
boolean initializeDiagramFiles,
boolean overwriteWithoutWarning)
Constructs a new instance with the given configuration. |
Method Summary | |
---|---|
IStatus |
getStatus()
Returns an IStatus object describing the outcome of the import. |
boolean |
isImportCanceled()
Checks whether the user canceled the import or not. |
boolean |
isImportSuccessful()
Checks whether or not the import was successful. |
void |
run(IProgressMonitor monitor)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DiagramsImporter(ImportDiagramsWizard wizard, List<File> sourceFiles, IPath targetContainerPath, boolean initializeDiagramFiles, boolean overwriteWithoutWarning)
wizard
- the wizard using this importer.sourceFiles
- the list of source files to import.targetContainerPath
- the possibly non-existent container to import them to.initializeDiagramFiles
- whether to initialize KAOD diagram files.overwriteWithoutWarning
- whether existing files should be overwritten without
warning.Method Detail |
---|
public boolean isImportSuccessful()
isImportCanceled()
and getException()
to find out whether the
user canceled the operation or an exception occurred, respectively.
true
if an uninterrupted import was successful.public boolean isImportCanceled()
true
if the user canceled the import.public IStatus getStatus()
IStatus
object describing the outcome of the import. This
may be either a single status object if everything went fine, or a multi status
that contains a list of error statusses.
public void run(IProgressMonitor monitor) throws InvocationTargetException, InterruptedException
run
in interface IRunnableWithProgress
InvocationTargetException
InterruptedException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |