freemind.extensions
Class ImportWizard

java.lang.Object
  extended by freemind.extensions.ImportWizard

public class ImportWizard
extends java.lang.Object

Converts an unqualified class name to import statements by scanning through the classpath.

Version:
1.0 - 6 May 1999
Author:
Len Trigg (trigg@cs.waikato.ac.nz)

Field Summary
 java.util.Vector CLASS_LIST
          Stores the list of all classes in the classpath
 java.lang.String lookFor
           
 
Constructor Summary
ImportWizard(FreeMindMain frame)
           
 
Method Summary
 void addClassesFromDir(java.util.Vector classList, java.io.File rootDir, java.io.File currentDir, int recursionLevel)
          Adds the classes from the supplied directory to the class list.
 void addClassesFromZip(java.util.Vector classList, java.io.File classPathFile)
          Adds the classes from the supplied Zip file to the class list.
 void buildClassList()
          Build the list of classes
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

lookFor

public final java.lang.String lookFor
See Also:
Constant Field Values

CLASS_LIST

public java.util.Vector CLASS_LIST
Stores the list of all classes in the classpath

Constructor Detail

ImportWizard

public ImportWizard(FreeMindMain frame)
Method Detail

buildClassList

public void buildClassList()
Build the list of classes


addClassesFromZip

public void addClassesFromZip(java.util.Vector classList,
                              java.io.File classPathFile)
Adds the classes from the supplied Zip file to the class list.

Parameters:
classList - the Vector to add the classes to
classPathFile - the File to scan as a zip file

addClassesFromDir

public void addClassesFromDir(java.util.Vector classList,
                              java.io.File rootDir,
                              java.io.File currentDir,
                              int recursionLevel)
Adds the classes from the supplied directory to the class list.

Parameters:
classList - the Vector to add the classes to
currentDir - the File to recursively scan as a directory
recursionLevel - To ensure that after a certain depth the recursive directory search stops