Class EditDataStoreQueryPlugIn
- java.lang.Object
-
- com.vividsolutions.jump.workbench.plugin.AbstractPlugIn
-
- org.openjump.core.ui.plugin.AbstractUiPlugIn
-
- org.openjump.core.ui.plugin.AbstractThreadedUiPlugIn
-
- com.vividsolutions.jump.workbench.ui.plugin.datastore.AbstractAddDatastoreLayerPlugIn
-
- com.vividsolutions.jump.workbench.ui.plugin.datastore.RunDatastoreQueryPlugIn
-
- org.openjump.core.ui.plugin.datastore.EditDataStoreQueryPlugIn
-
- All Implemented Interfaces:
EnableChecked,Iconified,PlugIn,Recordable,ShortcutEnabled,ThreadedPlugIn,ActionListener,EventListener
public class EditDataStoreQueryPlugIn extends RunDatastoreQueryPlugIn
EditDatastoreQueryPlugInload the query used to create a layer in the RunDatastoreQueryPanel.- Author:
- Michaël Michaud
-
-
Field Summary
Fields Modifier and Type Field Description static StringCONNECTION_DESCRIPTOR_KEYstatic ImageIconICONprotected static intMAIN_COLUMN_WIDTHstatic StringSQL_QUERY_KEY-
Fields inherited from class org.openjump.core.ui.plugin.AbstractUiPlugIn
enableCheck, workbenchContext
-
Fields inherited from class com.vividsolutions.jump.workbench.plugin.AbstractPlugIn
shortcutKeys, shortcutModifiers
-
-
Constructor Summary
Constructors Constructor Description EditDataStoreQueryPlugIn()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description EnableCheckcreateEnableCheck(WorkbenchContext workbenchContext)protected ConnectionPanelcreatePanel(PlugInContext context)booleanexecute(PlugInContext context)Method to be overridden by implementations to execute the plug-in.StringgetName()Get the name of the plug-in.voidinitialize(PlugInContext context)Method to be overridden by implementations to initialize the plug-in.-
Methods inherited from class com.vividsolutions.jump.workbench.ui.plugin.datastore.RunDatastoreQueryPlugIn
createLayerable, getIcon
-
Methods inherited from class com.vividsolutions.jump.workbench.ui.plugin.datastore.AbstractAddDatastoreLayerPlugIn
getDialog, panel, run
-
Methods inherited from class org.openjump.core.ui.plugin.AbstractUiPlugIn
actionPerformed, getEnableCheck, getToolTip, isRollingBackInvalidEdits, reportNothingToUndoYet, setWorkbenchContext
-
Methods inherited from class com.vividsolutions.jump.workbench.plugin.AbstractPlugIn
addParameter, createName, execute, execute, getBooleanParam, getContext, getDoubleParam, getIcon, getIcon, getIntegerParam, getParameter, getParameters, getShortcutKeys, getShortcutKeyStroke, getShortcutModifiers, getStringParam, getWorkbenchContext, isShortcutEnabled, setParameters, setShortcutKeys, setShortcutModifiers, toActionListener, toString
-
-
-
-
Field Detail
-
ICON
public static final ImageIcon ICON
-
SQL_QUERY_KEY
public static final String SQL_QUERY_KEY
- See Also:
- Constant Field Values
-
CONNECTION_DESCRIPTOR_KEY
public static final String CONNECTION_DESCRIPTOR_KEY
- See Also:
- Constant Field Values
-
MAIN_COLUMN_WIDTH
protected static final int MAIN_COLUMN_WIDTH
- See Also:
- Constant Field Values
-
-
Method Detail
-
initialize
public void initialize(PlugInContext context) throws Exception
Description copied from class:AbstractUiPlugInMethod to be overridden by implementations to initialize the plug-in. Plug-ins must invoke super.initialize().- Specified by:
initializein interfacePlugIn- Overrides:
initializein classRunDatastoreQueryPlugIn- Parameters:
context- The plug-in context.- Throws:
Exception- if an exception occur during initialization
-
getName
public String getName()
Description copied from class:AbstractUiPlugInGet the name of the plug-in. If a name was not specified ask super class.- Specified by:
getNamein interfacePlugIn- Overrides:
getNamein classRunDatastoreQueryPlugIn- Returns:
- The plug-in name.
-
execute
public boolean execute(PlugInContext context) throws Exception
Description copied from class:AbstractUiPlugInMethod to be overridden by implementations to execute the plug-in.- Specified by:
executein interfacePlugIn- Overrides:
executein classAbstractAddDatastoreLayerPlugIn- Parameters:
context- The plug-in context.- Returns:
- true if the PlugIn has been executed
- Throws:
Exception- if an Exception occurs during execution- See Also:
ThreadedPlugIn
-
createPanel
protected ConnectionPanel createPanel(PlugInContext context)
- Overrides:
createPanelin classRunDatastoreQueryPlugIn
-
createEnableCheck
public EnableCheck createEnableCheck(WorkbenchContext workbenchContext)
-
-