public class OpenRecentPlugIn extends AbstractUiPlugIn
enableCheck, workbenchContext
shortcutKeys, shortcutModifiers
Constructor and Description |
---|
OpenRecentPlugIn() |
Modifier and Type | Method and Description |
---|---|
void |
addRecentFile(java.io.File file) |
void |
addRecentProject(java.io.File file) |
static OpenRecentPlugIn |
get(WorkbenchContext context) |
java.util.List<java.lang.String> |
getRecentFiles() |
java.util.List<java.lang.String> |
getRecentProjects() |
boolean |
hasRecentItems() |
void |
initialize(PlugInContext context)
Method to be overridden by implementations to initialize the plug-in.
|
void |
updateFileAndProjectMenu(javax.swing.JMenu recentMenu) |
void |
updateMenu() |
actionPerformed, execute, getEnableCheck, getIcon, getName, getToolTip, isRollingBackInvalidEdits, reportNothingToUndoYet, setWorkbenchContext
addParameter, createName, execute, execute, fetchShortcutEnabledPlugins, getBooleanParam, getDoubleParam, getEnableCheck, getIcon, getIcon, getIntegerParam, getParameter, getParameters, getShortcutKeys, getShortcutKeyStroke, getShortcutModifiers, getStringParam, isShortcutEnabled, registerShortcuts, setParameters, setShortcutKeys, setShortcutModifiers, toActionListener, toString
public static OpenRecentPlugIn get(WorkbenchContext context) throws java.lang.Exception
java.lang.Exception
public void initialize(PlugInContext context) throws java.lang.Exception
AbstractUiPlugIn
initialize
in interface PlugIn
initialize
in class AbstractUiPlugIn
context
- The plug-in context.java.lang.Exception
public java.util.List<java.lang.String> getRecentFiles()
public java.util.List<java.lang.String> getRecentProjects()
public void addRecentFile(java.io.File file)
public void addRecentProject(java.io.File file)
public void updateMenu()
public boolean hasRecentItems()
public void updateFileAndProjectMenu(javax.swing.JMenu recentMenu)