Class DataStoreTransactionManagerPlugIn
- java.lang.Object
-
- com.vividsolutions.jump.workbench.plugin.AbstractPlugIn
-
- com.vividsolutions.jump.workbench.ui.toolbox.ToolboxPlugIn
-
- org.openjump.core.ui.plugin.datastore.transaction.DataStoreTransactionManagerPlugIn
-
- All Implemented Interfaces:
CheckBoxed
,EnableChecked
,Iconified
,PlugIn
,Recordable
,ShortcutEnabled
,WorkbenchContextReference
public class DataStoreTransactionManagerPlugIn extends ToolboxPlugIn implements WorkbenchContextReference
DataStoreTransactionManagerPlugIn is a ToolBox containing:- a text area displaying uncommitted edits
- a commit button : to commit changes to the database
- an update button : to update changes from the database
- an inspect button : to inspect local evolutions not yet commited
-
-
Field Summary
-
Fields inherited from class com.vividsolutions.jump.workbench.plugin.AbstractPlugIn
shortcutKeys, shortcutModifiers
-
-
Constructor Summary
Constructors Constructor Description DataStoreTransactionManagerPlugIn()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
execute(PlugInContext context)
Toolbox subclasses can override this method to implement their own behaviour when the plug-in is called.protected DataStoreTransactionManager
getTransactionManager()
void
initialize(PlugInContext context)
Called when Workbench starts up to allow plugins to initialize themselves.protected void
initializeToolbox(ToolboxDialog toolbox)
static DataStoreTransactionManagerPlugIn
instance(Blackboard blackboard)
void
setWorkbenchContext(WorkbenchContext context)
-
Methods inherited from class com.vividsolutions.jump.workbench.ui.toolbox.ToolboxPlugIn
createMainMenuItem, getEnableCheck, getToolbox, getToolbox
-
Methods inherited from class com.vividsolutions.jump.workbench.plugin.AbstractPlugIn
addParameter, createName, execute, execute, getBooleanParam, getContext, getDoubleParam, getIcon, getIcon, getIcon, getIntegerParam, getName, getParameter, getParameters, getShortcutKeys, getShortcutKeyStroke, getShortcutModifiers, getStringParam, getWorkbenchContext, isRollingBackInvalidEdits, isShortcutEnabled, reportNothingToUndoYet, setParameters, setShortcutKeys, setShortcutModifiers, toActionListener, toString
-
-
-
-
Method Detail
-
instance
public static DataStoreTransactionManagerPlugIn instance(Blackboard blackboard)
-
initialize
public void initialize(PlugInContext context) throws Exception
Description copied from interface:PlugIn
Called when Workbench starts up to allow plugins to initialize themselves.- Specified by:
initialize
in interfacePlugIn
- Overrides:
initialize
in classAbstractPlugIn
- Parameters:
context
- context of the PlugIn- Throws:
Exception
- if an exception occur during initialization
-
getTransactionManager
protected DataStoreTransactionManager getTransactionManager()
-
initializeToolbox
protected void initializeToolbox(ToolboxDialog toolbox)
- Specified by:
initializeToolbox
in classToolboxPlugIn
-
execute
public boolean execute(PlugInContext context) throws Exception
Description copied from class:ToolboxPlugIn
Toolbox subclasses can override this method to implement their own behaviour when the plug-in is called. Remember to call super.execute to make the toolbox visible.- Specified by:
execute
in interfacePlugIn
- Overrides:
execute
in classToolboxPlugIn
- Parameters:
context
- context of this PlugIn- Returns:
- true if the PlugIn has been executed
- Throws:
Exception
- if an Exception occurs during execution- See Also:
ThreadedPlugIn
-
setWorkbenchContext
public void setWorkbenchContext(WorkbenchContext context)
- Specified by:
setWorkbenchContext
in interfaceWorkbenchContextReference
-
-