org.argouml.uml.reveng
Class Import.ImportRun

java.lang.Object
  extended byorg.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.


Field Summary
private  boolean cancelled
           
private  int countFiles
           
private  int countFilesThisPass
           
private  boolean criticThreadWasOn
           
private  boolean doLayout
           
private  Vector filesLeft
           
private  Vector nextPassFiles
           
private  SimpleTimer st
           
 
Constructor Summary
Import.ImportRun(Vector f, boolean critic, boolean layout)
          The constructor.
 
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
 

Field Detail

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
Constructor Detail

Import.ImportRun

public Import.ImportRun(Vector f,
                        boolean critic,
                        boolean layout)
The constructor.

Parameters:
f - the files left to parse/import
critic - true if the critics thread was on
layout - do a autolayout afterwards
Method Detail

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()


ArgoUML © 1996-2004 (20050222)ArgoUML HomepageArgoUML Developers' pageArgoUML Cookbook