Package org.eclipse.ui.internal
Class LocalWorkingSetManager
java.lang.Object
org.eclipse.core.commands.common.EventManager
org.eclipse.ui.internal.AbstractWorkingSetManager
org.eclipse.ui.internal.LocalWorkingSetManager
- All Implemented Interfaces:
EventListener,IExtensionChangeHandler,ILocalWorkingSetManager,IWorkingSetManager,BundleListener
public class LocalWorkingSetManager
extends AbstractWorkingSetManager
implements ILocalWorkingSetManager
-
Field Summary
Fields inherited from interface org.eclipse.ui.IWorkingSetManager
CHANGE_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 Summary
Constructors -
Method Summary
Modifier 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.voidremoveWorkingSet(IWorkingSet workingSet) Removes the working setvoidrestoreState(IMemento memento) Restores the state of the working set manager from the given memento.voidSaves the state of the working set manager to the given memento.Methods inherited from class org.eclipse.ui.internal.AbstractWorkingSetManager
addExtension, addPropertyChangeListener, addToWorkingSets, addWorkingSet, bundleChanged, createAggregateWorkingSet, createWorkingSet, createWorkingSet, createWorkingSetEditWizard, createWorkingSetNewWizard, createWorkingSetSelectionDialog, createWorkingSetSelectionDialog, createWorkingSetSelectionDialog, dispose, equals, firePropertyChange, getAllWorkingSets, getRecentWorkingSets, getRecentWorkingSetsLength, getWorkingSet, getWorkingSets, hashCode, internalAddRecentWorkingSet, internalRemoveWorkingSet, removeExtension, removePropertyChangeListener, restoreMruList, restoreWorkingSet, restoreWorkingSetState, saveMruList, saveState, saveWorkingSetState, setRecentWorkingSetsLength, workingSetChangedMethods inherited from class org.eclipse.core.commands.common.EventManager
addListenerObject, clearListeners, getListeners, isListenerAttached, removeListenerObjectMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.eclipse.ui.IWorkingSetManager
addPropertyChangeListener, addToWorkingSets, addWorkingSet, createAggregateWorkingSet, createWorkingSet, createWorkingSet, createWorkingSetEditWizard, createWorkingSetNewWizard, createWorkingSetSelectionDialog, createWorkingSetSelectionDialog, createWorkingSetSelectionDialog, dispose, getAllWorkingSets, getRecentWorkingSets, getRecentWorkingSetsLength, getWorkingSet, getWorkingSets, removePropertyChangeListener, setRecentWorkingSetsLength
-
Constructor Details
-
LocalWorkingSetManager
-
-
Method Details
-
removeWorkingSet
Removes the working set- Specified by:
removeWorkingSetin interfaceIWorkingSetManager- Parameters:
workingSet- the working set to remove
-
addRecentWorkingSet
Adds 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 interfaceIWorkingSetManager- Parameters:
workingSet- the working set to add to the list of most recently used working sets.
-
saveState
Saves the state of the working set manager to the given memento.- Specified by:
saveStatein interfaceILocalWorkingSetManager- Parameters:
memento- the memento to save the state to
-
restoreState
Restores the state of the working set manager from the given memento. The method can only be called as long as the working set manager is still empty.- Specified by:
restoreStatein interfaceILocalWorkingSetManager- Parameters:
memento- the memento to restore the state from
-