Package org.eclipse.ui.internal
Class WorkingSetManager
java.lang.Object
org.eclipse.core.commands.common.EventManager
org.eclipse.ui.internal.AbstractWorkingSetManager
org.eclipse.ui.internal.WorkingSetManager
- All Implemented Interfaces:
- EventListener,- IExtensionChangeHandler,- IWorkingSetManager,- BundleListener
public class WorkingSetManager
extends AbstractWorkingSetManager
implements IWorkingSetManager, BundleListener
A working set manager stores working sets and provides property change
 notification when a working set is added or removed. Working sets are
 persisted whenever one is added or removed.
- Since:
- 2.0
- See Also:
- 
Field SummaryFieldsFields inherited from interface org.eclipse.ui.IWorkingSetManagerCHANGE_WORKING_SET_ADD, CHANGE_WORKING_SET_CONTENT_CHANGE, CHANGE_WORKING_SET_LABEL_CHANGE, CHANGE_WORKING_SET_NAME_CHANGE, CHANGE_WORKING_SET_REMOVE, CHANGE_WORKING_SET_UPDATER_INSTALLED, CHANGE_WORKING_SET_UPDATER_UNINSTALLED
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionvoidaddRecentWorkingSet(IWorkingSet workingSet) Adds a working set to the top of the list of most recently used working sets, making it the most recently used working set.voidaddWorkingSet(IWorkingSet workingSet) Adds a working set to the receiver.voidremoveWorkingSet(IWorkingSet workingSet) Removes the working setvoidReads the persistence store and creates the working sets stored in it.protected voidrestoreWorkingSetState(IMemento memento) Recreates all working sets from the persistence store and adds them to the receiver.voidworkingSetChanged(IWorkingSet changedWorkingSet, String propertyChangeId, Object oldValue) Persists all working sets and fires a property change event for the changed working set.Methods inherited from class org.eclipse.ui.internal.AbstractWorkingSetManageraddExtension, addPropertyChangeListener, addToWorkingSets, bundleChanged, createAggregateWorkingSet, createWorkingSet, createWorkingSet, createWorkingSetEditWizard, createWorkingSetNewWizard, createWorkingSetSelectionDialog, createWorkingSetSelectionDialog, createWorkingSetSelectionDialog, dispose, equals, firePropertyChange, getAllWorkingSets, getRecentWorkingSets, getRecentWorkingSetsLength, getWorkingSet, getWorkingSets, hashCode, internalAddRecentWorkingSet, internalRemoveWorkingSet, removeExtension, removePropertyChangeListener, restoreMruList, restoreWorkingSet, saveMruList, saveState, saveWorkingSetState, setRecentWorkingSetsLengthMethods inherited from class org.eclipse.core.commands.common.EventManageraddListenerObject, clearListeners, getListeners, isListenerAttached, removeListenerObjectMethods inherited from class java.lang.Objectclone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.osgi.framework.BundleListenerbundleChangedMethods inherited from interface org.eclipse.ui.IWorkingSetManageraddPropertyChangeListener, addToWorkingSets, createAggregateWorkingSet, createWorkingSet, createWorkingSet, createWorkingSetEditWizard, createWorkingSetNewWizard, createWorkingSetSelectionDialog, createWorkingSetSelectionDialog, createWorkingSetSelectionDialog, dispose, getAllWorkingSets, getRecentWorkingSets, getRecentWorkingSetsLength, getWorkingSet, getWorkingSets, removePropertyChangeListener, setRecentWorkingSetsLength
- 
Field Details- 
WORKING_SET_STATE_FILENAME- See Also:
 
 
- 
- 
Constructor Details- 
WorkingSetManager
 
- 
- 
Method Details- 
addRecentWorkingSetDescription copied from interface:IWorkingSetManagerAdds a working set to the top of the list of most recently used working sets, making it the most recently used working set. The last (oldest) item will be deleted if the list exceeds the size limit.- Specified by:
- addRecentWorkingSetin interface- IWorkingSetManager
- Parameters:
- workingSet- the working set to add to the list of most recently used working sets.
 
- 
addWorkingSetDescription copied from interface:IWorkingSetManagerAdds a working set to the receiver. The working set must not exist yet.- Specified by:
- addWorkingSetin interface- IWorkingSetManager
- Overrides:
- addWorkingSetin class- AbstractWorkingSetManager
- Parameters:
- workingSet- the working set to add
 
- 
removeWorkingSetDescription copied from interface:IWorkingSetManagerRemoves the working set- Specified by:
- removeWorkingSetin interface- IWorkingSetManager
- Parameters:
- workingSet- the working set to remove
 
- 
restoreStatepublic void restoreState()Reads the persistence store and creates the working sets stored in it.
- 
workingSetChangedpublic void workingSetChanged(IWorkingSet changedWorkingSet, String propertyChangeId, Object oldValue) Persists all working sets and fires a property change event for the changed working set. Should only be called by org.eclipse.ui.internal.WorkingSet.- Overrides:
- workingSetChangedin class- AbstractWorkingSetManager
- Parameters:
- changedWorkingSet- the working set that has changed
- propertyChangeId- the changed property. one of CHANGE_WORKING_SET_CONTENT_CHANGE and CHANGE_WORKING_SET_NAME_CHANGE
- oldValue- the old value
 
- 
restoreWorkingSetStateDescription copied from class:AbstractWorkingSetManagerRecreates all working sets from the persistence store and adds them to the receiver.- Overrides:
- restoreWorkingSetStatein class- AbstractWorkingSetManager
- Parameters:
- memento- the persistence store
 
 
-