projectviewer.importer
Class OldStyleFileImporter

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

public class OldStyleFileImporter
extends FileImporter

Imports files and/or directories into a project, using the import style used by the old version of the plugin. This means that only files and directories below the project root are accepted, and that files are added with all its parents up to the project root. It uses the setting filter when importing directories recursively by default, or the CVS/Entries filter in case it was selected in the file chooser.

Version:
$Id: OldStyleFileImporter.java 8907 2007-02-07 05:31:23Z vanza $
Author:
Marcelo Vanzin

Nested Class Summary
 
Nested classes inherited from class projectviewer.importer.Importer
Importer.NodeStructureChange, Importer.ShowNode
 
Field Summary
 
Fields inherited from class projectviewer.importer.FileImporter
fileCount, FILTER_MSG_INITIAL_IMPORT, FILTER_MSG_RE_IMPORT, FILTER_MSG_RECURSE, fnf
 
Fields inherited from class projectviewer.importer.Importer
added, fireEvent, postAction, project, removed, selected, viewer
 
Constructor Summary
OldStyleFileImporter(VPTNode node, ProjectViewer viewer)
           
 
Method Summary
protected  java.util.Collection internalDoImport()
          Asks if the user wants to import files from the chosen project root.
 
Methods inherited from class projectviewer.importer.FileImporter
addTree, getImportDialog, showFileCount
 
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
 

Constructor Detail

OldStyleFileImporter

public OldStyleFileImporter(VPTNode node,
                            ProjectViewer viewer)
Method Detail

internalDoImport

protected java.util.Collection internalDoImport()
Asks if the user wants to import files from the chosen project root.

Overrides:
internalDoImport in class FileImporter
Returns:
A collection of VPTNode instances.