Package org.openjump.core.ui.plugin.file
Class OpenRecentPlugIn
- java.lang.Object
-
- com.vividsolutions.jump.workbench.plugin.AbstractPlugIn
-
- org.openjump.core.ui.plugin.AbstractUiPlugIn
-
- org.openjump.core.ui.plugin.file.OpenRecentPlugIn
-
- All Implemented Interfaces:
EnableChecked,Iconified,PlugIn,Recordable,ShortcutEnabled,ActionListener,EventListener
public class OpenRecentPlugIn extends AbstractUiPlugIn
-
-
Field Summary
-
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 OpenRecentPlugIn()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddRecentFile(File file)voidaddRecentProject(File file)static OpenRecentPlugInget(WorkbenchContext context)List<String>getRecentFiles()List<String>getRecentProjects()booleanhasRecentItems()voidinitialize(PlugInContext context)Method to be overridden by implementations to initialize the plug-in.voidupdateFileAndProjectMenu(JMenu recentMenu)voidupdateMenu()-
Methods inherited from class org.openjump.core.ui.plugin.AbstractUiPlugIn
actionPerformed, execute, getEnableCheck, getIcon, getName, 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
-
-
-
-
Method Detail
-
get
public static OpenRecentPlugIn get(WorkbenchContext context) throws Exception
- Throws:
Exception
-
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 classAbstractUiPlugIn- Parameters:
context- The plug-in context.- Throws:
Exception- if an exception occur during initialization
-
addRecentFile
public void addRecentFile(File file)
-
addRecentProject
public void addRecentProject(File file)
-
updateMenu
public void updateMenu()
-
hasRecentItems
public boolean hasRecentItems()
-
updateFileAndProjectMenu
public void updateFileAndProjectMenu(JMenu recentMenu)
-
-