Class OpenFileWizard
- java.lang.Object
-
- org.openjump.core.ui.swing.wizard.AbstractWizardGroup
-
- org.openjump.core.ui.plugin.file.open.OpenFileWizard
-
- All Implemented Interfaces:
WizardGroup
public class OpenFileWizard extends AbstractWizardGroup
-
-
Constructor Summary
Constructors Constructor Description OpenFileWizard(WorkbenchContext workbenchContext)Construct a new OpenFileWizard.OpenFileWizard(WorkbenchContext workbenchContext, File[] files)OpenFileWizard(WorkbenchContext workbenchContext, Class loaderFilter)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetFirstId()LayerablegetLayer()voidinitialize(WorkbenchContext workbenchContext, WizardDialog dialog)protected voidinitPanels(WorkbenchContext workbenchContext)voidrun(WizardDialog dialog, TaskMonitor monitor)Load the files selected in the wizard.voidsetLayer(Layerable layer)-
Methods inherited from class org.openjump.core.ui.swing.wizard.AbstractWizardGroup
addPanel, addPanel, getIcon, getName, getPanels, removeAllPanels, removePanel
-
-
-
-
Field Detail
-
KEY
public static final String KEY
The key for the wizard.
-
-
Constructor Detail
-
OpenFileWizard
public OpenFileWizard(WorkbenchContext workbenchContext)
Construct a new OpenFileWizard.- Parameters:
workbenchContext- The workbench context.
-
OpenFileWizard
public OpenFileWizard(WorkbenchContext workbenchContext, File[] files)
-
OpenFileWizard
public OpenFileWizard(WorkbenchContext workbenchContext, Class loaderFilter)
-
-
Method Detail
-
getLayer
public Layerable getLayer()
-
setLayer
public void setLayer(Layerable layer)
-
initialize
public void initialize(WorkbenchContext workbenchContext, WizardDialog dialog)
- Specified by:
initializein interfaceWizardGroup- Overrides:
initializein classAbstractWizardGroup
-
initPanels
protected void initPanels(WorkbenchContext workbenchContext)
-
getFirstId
public String getFirstId()
- Specified by:
getFirstIdin interfaceWizardGroup- Overrides:
getFirstIdin classAbstractWizardGroup
-
run
public void run(WizardDialog dialog, TaskMonitor monitor) throws Exception
Load the files selected in the wizard.- Parameters:
monitor- The task monitor.- Throws:
Exception
-
-