public final class FileOpenHistory extends java.lang.Object implements Controller
| Modifier and Type | Field and Description | 
|---|---|
| static java.lang.String | OPENED_FILES_NAME | 
| static java.lang.String | OPENED_PROJECTS_NAME | 
| static java.lang.String | OPENED_WORKSPACES_NAME | 
UPDATE_FROM_ACTION_PERFORMED, UPDATE_FROM_ACTIVE_VIEW_CHANGED, UPDATE_FROM_UNDO, UPDATE_FROM_USER_EXTENSION, UPDATE_FROM_VIEW_SELECTION_CHANGED| Modifier and Type | Method and Description | 
|---|---|
| void | addChangeListener(javax.swing.event.ChangeListener l) | 
| protected void | fireChangeEvent() | 
| java.lang.String[] | getFileHistory()Get the opened files history list. | 
| static IdeAction | getGlobalReopenAction() | 
| int | getHistoryCount()Get the maximum number of entries in the history list. | 
| static FileOpenHistory | getInstance()The FileOpenHistory controller is a singleton class. | 
| static IdeAction | getNewReopenAction(java.net.URL url)Returns a new local IdeAction that will reopen the specified
  URL when triggered. | 
| protected HistoryList | getOpenedFiles() | 
| protected HistoryList | getOpenedProjects() | 
| protected HistoryList | getOpenedWorkspaces() | 
| java.lang.String[] | getProjectHistory()Get the opened project files history list. | 
| java.lang.String[] | getWorkspaceHistory()Get the opened wokspace files history list. | 
| boolean | handleEvent(IdeAction action,
           Context context)This method is called when a user interaction with a  Viewtriggers the execution of a command. | 
| protected void | initialize() | 
| void | removeChangeListener(javax.swing.event.ChangeListener l) | 
| void | removeHistory(Node node)Removes the specified Node from the opened node history. | 
| void | save()Save the opened file history. | 
| void | setHistoryCount(int count)Set the maximum number of entries in the history list. | 
| boolean | update(IdeAction action,
      Context context)This method updates the enabled status of the specified action within the
 specified context. | 
| void | updateFileHistory(java.net.URL url)Deprecated. 
 use updateHistory(Node) instead | 
| void | updateHistory(Node node)Add the specified Node to the opened node history. | 
| void | updateProjectHistory(java.net.URL url)Deprecated. 
 use updateHistory(Node) instead | 
| void | updateWorkspaceHistory(java.net.URL url)Deprecated. 
 use updateHistory(Node) instead | 
public static final java.lang.String OPENED_FILES_NAME
public static final java.lang.String OPENED_PROJECTS_NAME
public static final java.lang.String OPENED_WORKSPACES_NAME
public static FileOpenHistory getInstance()
@Deprecated public void updateFileHistory(java.net.URL url)
@Deprecated public void updateProjectHistory(java.net.URL url)
@Deprecated public void updateWorkspaceHistory(java.net.URL url)
public void updateHistory(Node node)
node - the node to add to the history listpublic void removeHistory(Node node)
node - the node to remove from the history listpublic java.lang.String[] getFileHistory()
public java.lang.String[] getProjectHistory()
public java.lang.String[] getWorkspaceHistory()
public int getHistoryCount()
public void setHistoryCount(int count)
public void save()
public void addChangeListener(javax.swing.event.ChangeListener l)
public void removeChangeListener(javax.swing.event.ChangeListener l)
protected void fireChangeEvent()
public boolean handleEvent(IdeAction action, Context context)
ControllerView
 triggers the execution of a command.handleEvent in interface Controlleraction - action whose command is to be executed.public boolean update(IdeAction action, Context context)
Controllerupdate in interface Controlleraction - action whose command is to be executed.context - the current contextprotected void initialize()
protected HistoryList getOpenedFiles()
protected HistoryList getOpenedProjects()
protected HistoryList getOpenedWorkspaces()
public static IdeAction getNewReopenAction(java.net.URL url)
public static IdeAction getGlobalReopenAction()