|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object de.jaret.util.ui.timebars.addon.ViewstateSaver
public class ViewstateSaver
Implementation of the viewstate saver for a timebarviewer. Saves and restores
Constructor Summary | |
---|---|
ViewstateSaver()
|
Method Summary | |
---|---|
static ViewstateSaver |
getInstance()
The ViewStateSaver can be used as a singleton. |
void |
restoreViewstate(de.jaret.util.ui.timebars.swt.TimeBarViewer timeBarViewer,
IHierarchyIdService idService,
java.lang.String id,
org.eclipse.ui.IMemento memento)
Restore the viewstate. |
void |
saveViewstate(de.jaret.util.ui.timebars.swt.TimeBarViewer timeBarViewer,
IHierarchyIdService idService,
java.lang.String id,
org.eclipse.ui.IMemento memento)
Save the viewstate. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ViewstateSaver()
Method Detail |
---|
public static ViewstateSaver getInstance()
public void restoreViewstate(de.jaret.util.ui.timebars.swt.TimeBarViewer timeBarViewer, IHierarchyIdService idService, java.lang.String id, org.eclipse.ui.IMemento memento)
restoreViewstate
in interface IViewstateSaver
timeBarViewer
- viewer to restore state ofidService
- HierarchyIdService needed when handling hierarchical models. May be null
when
dealing with a flat modelid
- id of a child memento to read from. May be null
.memento
- memento to read frompublic void saveViewstate(de.jaret.util.ui.timebars.swt.TimeBarViewer timeBarViewer, IHierarchyIdService idService, java.lang.String id, org.eclipse.ui.IMemento memento)
saveViewstate
in interface IViewstateSaver
timeBarViewer
- viewer to save state ofidService
- HierarchyIdService needed when handling hierarchical models. May be null
when
dealing with a flat modelid
- id used to create a child memento when not null
memento
- memento to write to
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |