org.openjump.core.ui.plugin.file
Class OpenRecentPlugIn
java.lang.Object
org.openjump.core.ui.plugin.AbstractUiPlugIn
org.openjump.core.ui.plugin.file.OpenRecentPlugIn
- All Implemented Interfaces:
- PlugIn, java.awt.event.ActionListener, java.util.EventListener
public class OpenRecentPlugIn
- extends AbstractUiPlugIn
| Methods inherited from class org.openjump.core.ui.plugin.AbstractUiPlugIn |
actionPerformed, createName, execute, getEnableCheck, getIcon, getName, getToolTip, isRollingBackInvalidEdits, reportNothingToUndoYet, setWorkbenchContext, toString |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
get
public static OpenRecentPlugIn get(WorkbenchContext context)
initialize
public void initialize(PlugInContext context)
throws java.lang.Exception
- Description copied from class:
AbstractUiPlugIn
- Method to be overridden by implementations to initialize the plug-in.
Plug-ins must invoke super.initialize().
- Specified by:
initialize in interface PlugIn- Overrides:
initialize in class AbstractUiPlugIn
- Parameters:
context - The plug-in context.
- Throws:
java.lang.Exception
getRecentFiles
public java.util.List<java.lang.String> getRecentFiles()
getRecentProjects
public java.util.List<java.lang.String> getRecentProjects()
addRecentFile
public void addRecentFile(java.io.File file)
addRecentProject
public void addRecentProject(java.io.File file)
updateMenu
public void updateMenu()
hasRecentItems
public boolean hasRecentItems()
updateFileAndProjectMenu
public void updateFileAndProjectMenu(javax.swing.JMenu recentMenu)