projectviewer.importer
Class VFSFileImporter

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

public class VFSFileImporter
extends Importer

Imports files from a VFS into a project. If any selected file is actually from the "File" VFS, a normal file is added instead of using the VFS facilities.

Version:
$Id: VFSFileImporter.java 6334 2005-02-10 06:33:28Z vanza $
Author:
Marcelo Vanzin

Nested Class Summary
 
Nested classes inherited from class projectviewer.importer.Importer
Importer.NodeStructureChange, Importer.ShowNode
 
Field Summary
protected  int fileCount
           
 
Fields inherited from class projectviewer.importer.Importer
added, fireEvent, postAction, project, removed, selected, viewer
 
Constructor Summary
VFSFileImporter(VPTNode node, ProjectViewer viewer)
           
 
Method Summary
protected  java.util.Collection internalDoImport()
          Queries the user for files to be added by showing a jEdit file chooser dialog.
protected  void showFileCount()
          Shows a message in the status bar indicating how many files were imported.
 
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

fileCount

protected int fileCount
Constructor Detail

VFSFileImporter

public VFSFileImporter(VPTNode node,
                       ProjectViewer viewer)
Method Detail

internalDoImport

protected java.util.Collection internalDoImport()
Queries the user for files to be added by showing a jEdit file chooser dialog.

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

showFileCount

protected void showFileCount()
Shows a message in the status bar indicating how many files were imported.