projectviewer.importer
Class NewFileImporter

java.lang.Object
  extended byprojectviewer.importer.Importer
      extended byprojectviewer.importer.NewFileImporter
All Implemented Interfaces:
java.lang.Runnable

public class NewFileImporter
extends Importer

Imports a single file into a project. This importer is designed to import single files that are below the project root, adding all paths up to the given file. Do not use it for other types of imports.

Version:
$Id: NewFileImporter.java 6165 2003-05-14 02:57:59Z vanza $
Author:
Marcelo Vanzin

Nested Class Summary
 
Nested classes inherited from class projectviewer.importer.Importer
Importer.NodeStructureChange, Importer.ShowNode
 
Field Summary
protected  java.lang.String path
           
 
Fields inherited from class projectviewer.importer.Importer
added, fireEvent, postAction, project, removed, selected, viewer
 
Constructor Summary
NewFileImporter(VPTNode node, ProjectViewer viewer, java.lang.String path)
           
 
Method Summary
protected  java.util.Collection internalDoImport()
          Imports the file given in the constructor into the project.
 
Methods inherited from class projectviewer.importer.Importer
doImport, findDirectory, fireProjectEvent, importNode, importNode, loadImportFilterStatus, makePathTo, registerFile, run, saveImportFilterStatus, setViewerEnabled, unregisterFile
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

path

protected java.lang.String path
Constructor Detail

NewFileImporter

public NewFileImporter(VPTNode node,
                       ProjectViewer viewer,
                       java.lang.String path)
Method Detail

internalDoImport

protected java.util.Collection internalDoImport()
Imports the file given in the constructor into the project. If the file is not below the project root, do nothing.

Specified by:
internalDoImport in class Importer
Returns:
A collection of VPTNode instances.