org.argouml.uml.reveng
Class Import.ImportRun
java.lang.Object
org.argouml.uml.reveng.Import.ImportRun
- All Implemented Interfaces:
- Runnable
- Enclosing class:
- Import
- class Import.ImportRun
- extends Object
- implements Runnable
This class parses each file in turn and allows the GUI to refresh
itself by performing the run() once for each file.
This class also listens for a "Stop" message from the
ImportStatusScreen, in order to cancel long import runs.
Method Summary |
private void |
cancel()
|
private boolean |
isCancelled()
|
void |
run()
Called once for each file to be parsed. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
filesLeft
private Vector filesLeft
countFiles
private int countFiles
countFilesThisPass
private int countFilesThisPass
nextPassFiles
private Vector nextPassFiles
st
private SimpleTimer st
cancelled
private boolean cancelled
criticThreadWasOn
private boolean criticThreadWasOn
doLayout
private boolean doLayout
Import.ImportRun
public Import.ImportRun(Vector f,
boolean critic,
boolean layout)
- The constructor.
- Parameters:
f
- the files left to parse/importcritic
- true if the critics thread was onlayout
- do a autolayout afterwards
run
public void run()
- Called once for each file to be parsed.
To refresh the GUI it calls itself again using the
SwingUtilities.invokeLater(Runnable)
method.
- Specified by:
run
in interface Runnable
cancel
private void cancel()
isCancelled
private boolean isCancelled()