org.openjump.core.ui.plugin.file
Class OpenFilePlugIn

java.lang.Object
  extended by org.openjump.core.ui.plugin.AbstractUiPlugIn
      extended by org.openjump.core.ui.plugin.AbstractThreadedUiPlugIn
          extended by org.openjump.core.ui.plugin.AbstractWizardPlugin
              extended by org.openjump.core.ui.plugin.file.OpenFilePlugIn
All Implemented Interfaces:
PlugIn, ThreadedPlugIn, java.awt.event.ActionListener, java.util.EventListener

public class OpenFilePlugIn
extends AbstractWizardPlugin

Plug-in to open files using a wizard.

Author:
Paul Austin

Field Summary
 
Fields inherited from class org.openjump.core.ui.plugin.AbstractUiPlugIn
enableCheck, workbenchContext
 
Constructor Summary
OpenFilePlugIn()
          Construct the main Open File plug-in.
OpenFilePlugIn(WorkbenchContext workbenchContext, java.io.File file)
          Construct an Open File for the recent menu to load an individual file.
OpenFilePlugIn(WorkbenchContext workbenchContext, java.io.File[] files)
           
 
Method Summary
 void initialize(PlugInContext context)
          Initialise the main instance of this plug-in, should not be called for the Recent menu open file plug-ins.
 
Methods inherited from class org.openjump.core.ui.plugin.AbstractWizardPlugin
execute, getWizard, run, setWizard
 
Methods inherited from class org.openjump.core.ui.plugin.AbstractUiPlugIn
actionPerformed, createName, getEnableCheck, getIcon, getName, getToolTip, isRollingBackInvalidEdits, reportNothingToUndoYet, setWorkbenchContext, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface com.vividsolutions.jump.workbench.plugin.PlugIn
getName
 

Constructor Detail

OpenFilePlugIn

public OpenFilePlugIn()
Construct the main Open File plug-in.


OpenFilePlugIn

public OpenFilePlugIn(WorkbenchContext workbenchContext,
                      java.io.File file)
Construct an Open File for the recent menu to load an individual file.

Parameters:
workbenchContext - The workbench context.
file - The file to load.

OpenFilePlugIn

public OpenFilePlugIn(WorkbenchContext workbenchContext,
                      java.io.File[] files)
Method Detail

initialize

public void initialize(PlugInContext context)
                throws java.lang.Exception
Initialise the main instance of this plug-in, should not be called for the Recent menu open file plug-ins.

Specified by:
initialize in interface PlugIn
Overrides:
initialize in class AbstractUiPlugIn
Parameters:
context - The plug-in context.
Throws:
java.lang.Exception - If there was an error initialising the plug-in.