Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

org.enhydra.kelp.common.importer
Class ImportTool  view ImportTool download ImportTool.java

java.lang.Object
  extended byjava.lang.Thread
      extended byorg.enhydra.kelp.common.KelpTool
          extended byorg.enhydra.kelp.common.importer.ImportTool
All Implemented Interfaces:
org.enhydra.tool.common.event.CancelListener, java.util.EventListener, java.lang.Runnable

public class ImportTool
extends org.enhydra.kelp.common.KelpTool

Class declaration


Field Summary
private  java.lang.String[] IMAGE_TYPES
           
private  java.io.File[] inFiles
           
private static java.lang.String KELP_PROPERTIES
           
private  org.enhydra.tool.common.ExtensionFilter optionFilter
           
private static java.lang.String PACKAGE_KEY
           
private  ImportPaths paths
           
(package private) static java.util.ResourceBundle res
           
 
Fields inherited from class org.enhydra.kelp.common.KelpTool
 
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Constructor Summary
ImportTool()
          Constructor declaration
 
Method Summary
 void addFiles(java.io.File[] files)
           
private  void addKelpProperties()
           
private  org.enhydra.kelp.common.node.OtterNode getFolder(org.enhydra.kelp.common.node.OtterNodeFactory nodeFactory, org.enhydra.tool.common.PathHandle inputPath, java.io.File sourceFile)
           
 ImportPaths getPaths()
           
 void importFiles(java.io.File[] files)
          Method declaration
 void importFilesFromRoot()
          Method declaration
private  boolean isIgnored(java.lang.String in)
           
private  java.lang.String lookupSymbolicName(java.io.File sourceFile)
           
private  void postAdd()
           
private  void preAdd()
           
private  void privateImport()
           
private  java.io.File[] processConfInSource(java.io.File[] files)
           
private  java.io.File[] readFiles(java.io.File dir)
           
private  java.io.File[] readFilesFromRoot()
           
protected static java.lang.String readPackage(java.io.File javaSource)
          Method declaration
 void run()
          The method of Thread that will be run if there is no Runnable object associated with the Thread.
 void setPaths(ImportPaths p)
           
private  void setupDocumentNode(org.enhydra.kelp.common.map.Mapper mapper, org.enhydra.kelp.common.node.OtterDocumentNode node)
           
private  void setupProjectSourcePath()
           
 
Methods inherited from class org.enhydra.kelp.common.KelpTool
addProgressListener, getProgressListeners, isFresh, onCancel, refreshProgress, removeProgressListener, setFresh
 
Methods inherited from class java.lang.Thread
activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, getContextClassLoader, getName, getPriority, getThreadGroup, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setName, setPriority, sleep, sleep, start, stop, stop, suspend, toString, yield
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

res

static java.util.ResourceBundle res

KELP_PROPERTIES

private static final java.lang.String KELP_PROPERTIES
See Also:
Constant Field Values

PACKAGE_KEY

private static final java.lang.String PACKAGE_KEY
See Also:
Constant Field Values

IMAGE_TYPES

private final java.lang.String[] IMAGE_TYPES

optionFilter

private org.enhydra.tool.common.ExtensionFilter optionFilter

paths

private ImportPaths paths

inFiles

private java.io.File[] inFiles
Constructor Detail

ImportTool

public ImportTool()
Constructor declaration

Method Detail

readPackage

protected static java.lang.String readPackage(java.io.File javaSource)
Method declaration


getPaths

public ImportPaths getPaths()

setPaths

public void setPaths(ImportPaths p)

addFiles

public void addFiles(java.io.File[] files)

importFilesFromRoot

public void importFilesFromRoot()
Method declaration


importFiles

public void importFiles(java.io.File[] files)
Method declaration


privateImport

private void privateImport()

processConfInSource

private java.io.File[] processConfInSource(java.io.File[] files)

preAdd

private void preAdd()

postAdd

private void postAdd()

isIgnored

private boolean isIgnored(java.lang.String in)

addKelpProperties

private void addKelpProperties()

lookupSymbolicName

private java.lang.String lookupSymbolicName(java.io.File sourceFile)

getFolder

private org.enhydra.kelp.common.node.OtterNode getFolder(org.enhydra.kelp.common.node.OtterNodeFactory nodeFactory,
                                                         org.enhydra.tool.common.PathHandle inputPath,
                                                         java.io.File sourceFile)

setupDocumentNode

private void setupDocumentNode(org.enhydra.kelp.common.map.Mapper mapper,
                               org.enhydra.kelp.common.node.OtterDocumentNode node)

setupProjectSourcePath

private void setupProjectSourcePath()

readFilesFromRoot

private java.io.File[] readFilesFromRoot()

readFiles

private java.io.File[] readFiles(java.io.File dir)

run

public void run()
Description copied from class: java.lang.Thread
The method of Thread that will be run if there is no Runnable object associated with the Thread. Thread's implementation does nothing at all.