org.argouml.uml.reveng
Class Import.ImportRun

java.lang.Object
  |
  +--org.argouml.uml.reveng.Import.ImportRun
All Implemented Interfaces:
java.lang.Runnable
Enclosing class:
Import

class Import.ImportRun
extends java.lang.Object
implements java.lang.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
(package private)  int _countFiles
           
(package private)  int _countFilesThisPass
           
(package private)  java.util.Vector _filesLeft
           
(package private)  java.util.Vector _nextPassFiles
           
(package private)  SimpleTimer _st
           
(package private)  boolean cancelled
           
private  Logger cat
          logger
(package private)  boolean criticThreadWasOn
           
(package private)  boolean doLayout
           
 
Constructor Summary
Import.ImportRun(java.util.Vector f, boolean critic, boolean doLayout)
           
 
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

cat

private Logger cat
logger


_filesLeft

java.util.Vector _filesLeft

_countFiles

int _countFiles

_countFilesThisPass

int _countFilesThisPass

_nextPassFiles

java.util.Vector _nextPassFiles

_st

SimpleTimer _st

cancelled

boolean cancelled

criticThreadWasOn

boolean criticThreadWasOn

doLayout

boolean doLayout
Constructor Detail

Import.ImportRun

public Import.ImportRun(java.util.Vector f,
                        boolean critic,
                        boolean doLayout)
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 java.lang.Runnable

cancel

private void cancel()

isCancelled

private boolean isCancelled()


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