public class RecentFilesServiceImpl extends Object implements RecentFilesService
Modifier and Type | Class and Description |
---|---|
static class |
RecentFilesServiceImpl.EntryImpl |
RecentFilesService.Entry
Modifier and Type | Field and Description |
---|---|
static int |
MAX_FILES
The maximum number of files in the history
|
Constructor and Description |
---|
RecentFilesServiceImpl() |
Modifier and Type | Method and Description |
---|---|
void |
add(String file,
String projectName)
Add a file.
|
RecentFilesService.Entry[] |
getRecentFiles()
Get the recent files
|
org.eclipse.core.runtime.IStatus |
restoreState(org.eclipse.ui.IMemento memento)
Restore the state
|
org.eclipse.core.runtime.IStatus |
saveState(org.eclipse.ui.IMemento memento)
Save the state
|
public static final int MAX_FILES
public void add(String file, String projectName)
RecentFilesService
add
in interface RecentFilesService
file
- the file nameprojectName
- the project nameRecentFilesService.add(String, String)
public RecentFilesService.Entry[] getRecentFiles()
RecentFilesService
getRecentFiles
in interface RecentFilesService
RecentFilesService.getRecentFiles()
public org.eclipse.core.runtime.IStatus restoreState(org.eclipse.ui.IMemento memento)
RecentFilesService
restoreState
in interface RecentFilesService
memento
- the mementoRecentFilesService.restoreState(IMemento)
public org.eclipse.core.runtime.IStatus saveState(org.eclipse.ui.IMemento memento)
RecentFilesService
saveState
in interface RecentFilesService
memento
- the mementoRecentFilesService.saveState(IMemento)
Build 2013-10-07_11-27-38
Revision 99b27713a799a59a21b0b166eaaea8aaefbf125a