org.openjump.core.ui.plugin.file
Class OpenRecentPlugIn

java.lang.Object
  extended by org.openjump.core.ui.plugin.AbstractUiPlugIn
      extended by org.openjump.core.ui.plugin.file.OpenRecentPlugIn
All Implemented Interfaces:
PlugIn, java.awt.event.ActionListener, java.util.EventListener

public class OpenRecentPlugIn
extends AbstractUiPlugIn


Field Summary
 
Fields inherited from class org.openjump.core.ui.plugin.AbstractUiPlugIn
enableCheck, workbenchContext
 
Method Summary
 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()
           
 
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
 

Method Detail

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)