Humboldt Alignment Editor 2.5.0

eu.esdihumboldt.hale.ui.service.project.internal
Class RecentFilesServiceImpl

java.lang.Object
  extended by eu.esdihumboldt.hale.ui.service.project.internal.RecentFilesServiceImpl
All Implemented Interfaces:
RecentFilesService

public class RecentFilesServiceImpl
extends Object
implements RecentFilesService

This service saves a list of recently opened files.

Author:
Michel Kraemer

Nested Class Summary
static class RecentFilesServiceImpl.EntryImpl
           
 
Nested classes/interfaces inherited from interface eu.esdihumboldt.hale.ui.service.project.RecentFilesService
RecentFilesService.Entry
 
Field Summary
static int MAX_FILES
          The maximum number of files in the history
 
Constructor Summary
RecentFilesServiceImpl()
           
 
Method Summary
 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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

MAX_FILES

public static final int MAX_FILES
The maximum number of files in the history

See Also:
Constant Field Values
Constructor Detail

RecentFilesServiceImpl

public RecentFilesServiceImpl()
Method Detail

add

public void add(String file,
                String projectName)
Description copied from interface: RecentFilesService
Add a file.

Specified by:
add in interface RecentFilesService
Parameters:
file - the file name
projectName - the project name
See Also:
RecentFilesService.add(String, String)

getRecentFiles

public RecentFilesService.Entry[] getRecentFiles()
Description copied from interface: RecentFilesService
Get the recent files

Specified by:
getRecentFiles in interface RecentFilesService
Returns:
the recent files
See Also:
RecentFilesService.getRecentFiles()

restoreState

public org.eclipse.core.runtime.IStatus restoreState(org.eclipse.ui.IMemento memento)
Description copied from interface: RecentFilesService
Restore the state

Specified by:
restoreState in interface RecentFilesService
Parameters:
memento - the memento
Returns:
the status
See Also:
RecentFilesService.restoreState(IMemento)

saveState

public org.eclipse.core.runtime.IStatus saveState(org.eclipse.ui.IMemento memento)
Description copied from interface: RecentFilesService
Save the state

Specified by:
saveState in interface RecentFilesService
Parameters:
memento - the memento
Returns:
the status
See Also:
RecentFilesService.saveState(IMemento)

Humboldt Alignment Editor 2.5.0

Build 2012-12-03_12-30-59
Revision 9d2dd4b0318cda9f1393b1ddd390f7f792d70a2d