Package org.eclipse.ui.navigator
Interface IMementoAware
- All Known Subinterfaces:
ICommonContentProvider
,ICommonLabelProvider
,IPipelinedTreeContentProvider
,IPipelinedTreeContentProvider2
- All Known Implementing Classes:
AbstractSynchronizationContentProvider
,AbstractSynchronizationLabelProvider
,CommonActionProvider
,GoIntoActionProvider
,NavigatorActionService
,RefactoringSynchronizationActionProvider
,SynchronizationActionProvider
,SynchronizationContentProvider
,SynchronizationLabelProvider
public interface IMementoAware
Clients may use mementos to persist interesting state between sessions.
Clients should ensure that the memento keys are unique; generally by using
the id of the content extension as a prefix.
- Since:
- 3.2
-
Method Summary
Modifier and TypeMethodDescriptionvoid
restoreState
(IMemento aMemento) Restore the previous state of any actions using the flags in aMemento.void
Save flags in aMemento to remember the state of any actions that persist from session to session.
-
Method Details
-
restoreState
Restore the previous state of any actions using the flags in aMemento. This method allows the state of any actions that persist from session to session to be restored.
- Parameters:
aMemento
- A memento that was given to the view part to restore its state.
-
saveState
Save flags in aMemento to remember the state of any actions that persist from session to session.
Extensions should qualify any keys stored in the memento with their plugin id
- Parameters:
aMemento
- A memento that was given to the view part to save its state.
-