projectviewer.importer
Class ReImporter

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

Nested Class Summary
 
Nested classes/interfaces inherited from class projectviewer.importer.Importer
Importer.NodeStructureChange, Importer.ShowNodes
 
Field Summary
 
Fields inherited from class projectviewer.importer.RootImporter
addHidden, oldRoot, parent
 
Fields inherited from class projectviewer.importer.FileImporter
fnf
 
Fields inherited from class projectviewer.importer.Importer
isNodeStructureUpdate, postAction, project, selected, silent, viewer
 
Constructor Summary
ReImporter(VPTNode node, ProjectViewer viewer)
          Creates a ReImport object.
 
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.RootImporter
getImportDialog, unregisterFiles
 
Methods inherited from class projectviewer.importer.FileImporter
cleanup, showImportDialog
 
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
 

Constructor Detail

ReImporter

public ReImporter(VPTNode node,
                  ProjectViewer viewer)
Creates a ReImport object. Most of the functionality is inherited from the RootImporter class.

Method Detail

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.