projectviewer.importer
Class NewFileImporter

java.lang.Object
  extended by projectviewer.importer.Importer
      extended by projectviewer.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.

Author:
Marcelo Vanzin

Nested Class Summary
 
Nested classes/interfaces inherited from class projectviewer.importer.Importer
Importer.NodeStructureChange, Importer.ShowNodes
 
Field Summary
protected  java.lang.String path
           
 
Fields inherited from class projectviewer.importer.Importer
isNodeStructureUpdate, postAction, project, selected, silent, viewer
 
Constructor Summary
NewFileImporter(VPTNode node, ProjectViewer viewer, java.lang.String path)
           
 
Method Summary
protected  void internalDoImport()
          Imports the file given in the constructor into the project.
 
Methods inherited from class projectviewer.importer.Importer
addNode, cleanup, constructPath, doImport, findChild, importFiles, importFiles, loadImportFilterStatus, removeDirectory, removeFile, run, saveImportFilterStatus, setSilent, setViewerEnabled, setViewStatus
 
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 void internalDoImport()
Imports the file given in the constructor into the project.

Specified by:
internalDoImport in class Importer