Class OpenProjectWizard
- java.lang.Object
-
- org.openjump.core.ui.swing.wizard.AbstractWizardGroup
-
- org.openjump.core.ui.plugin.file.open.OpenProjectWizard
-
- All Implemented Interfaces:
WizardGroup
public class OpenProjectWizard extends AbstractWizardGroup
-
-
Field Summary
Fields Modifier and Type Field Description static StringFILE_CHOOSER_DIRECTORY_KEYstatic StringKEYThe key for the wizard.
-
Constructor Summary
Constructors Constructor Description OpenProjectWizard(WorkbenchContext workbenchContext)Construct a new OpenFileWizard.OpenProjectWizard(WorkbenchContext workbenchContext, File[] files)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidinitialize(WorkbenchContext workbenchContext, WizardDialog dialog)static voidload(Layer layer, CoordinateSystemRegistry registry, TaskMonitor monitor)static voidloadRasterImageLayer(WorkbenchContext context, RasterImageLayer ril, RasterSymbology symbology, Category category)voidopen(File file, TaskMonitor monitor)voidrun(WizardDialog dialog, TaskMonitor monitor)Load the files selected in the wizard.-
Methods inherited from class org.openjump.core.ui.swing.wizard.AbstractWizardGroup
addPanel, addPanel, getFirstId, getIcon, getName, getPanels, removeAllPanels, removePanel
-
-
-
-
Constructor Detail
-
OpenProjectWizard
public OpenProjectWizard(WorkbenchContext workbenchContext)
Construct a new OpenFileWizard.- Parameters:
workbenchContext- The workbench context.
-
OpenProjectWizard
public OpenProjectWizard(WorkbenchContext workbenchContext, File[] files)
-
-
Method Detail
-
initialize
public void initialize(WorkbenchContext workbenchContext, WizardDialog dialog)
- Specified by:
initializein interfaceWizardGroup- Overrides:
initializein 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- if an exception occurs during file opening
-
open
public void open(File file, TaskMonitor monitor) throws Exception
- Throws:
Exception
-
load
public static void load(Layer layer, CoordinateSystemRegistry registry, TaskMonitor monitor) throws Exception
- Throws:
Exception
-
loadRasterImageLayer
public static void loadRasterImageLayer(WorkbenchContext context, RasterImageLayer ril, RasterSymbology symbology, Category category) throws Exception
- Throws:
Exception
-
-