projectviewer.importer
Class ReImporter
java.lang.Object
projectviewer.importer.Importer
projectviewer.importer.FileImporter
projectviewer.importer.RootImporter
projectviewer.importer.ReImporter
- All Implemented Interfaces:
- java.lang.Runnable
public class ReImporter
- extends RootImporter
Re-imports files and/or directories from the project root and from other
nodes that are not under the root. Re-importing from nodes not under the
root works as following: if the directory does not exist, the file nodes
below it are checked to see if they still exist, and removed if they don't;
if the directory exists, the importing method chosen by the user is used
to re-import the directory. These actions take place recursively.
- Author:
- Marcelo Vanzin
Method Summary |
protected void |
internalDoImport()
Uses the user options from the RootImporter and re-imports the nodes
not under the root. |
protected void |
unregisterDir(VPTDirectory dir,
boolean flatten,
boolean addHidden)
Unregisters all files in the directory from the project, recursively,
and removes the child nodes from the parent. |
Methods inherited from class projectviewer.importer.Importer |
addNode, 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 |
ReImporter
public ReImporter(VPTNode node,
ProjectViewer viewer)
- Creates a ReImport object. Most of the functionality is inherited from
the RootImporter class.
internalDoImport
protected void internalDoImport()
- Uses the user options from the RootImporter and re-imports the nodes
not under the root.
- Overrides:
internalDoImport
in class RootImporter
unregisterDir
protected void unregisterDir(VPTDirectory dir,
boolean flatten,
boolean addHidden)
- Unregisters all files in the directory from the project, recursively,
and removes the child nodes from the parent.