Class LocalWorkingSetManager

All Implemented Interfaces:
EventListener, IExtensionChangeHandler, ILocalWorkingSetManager, IWorkingSetManager, BundleListener

public class LocalWorkingSetManager extends AbstractWorkingSetManager implements ILocalWorkingSetManager
  • Constructor Details

    • LocalWorkingSetManager

      public LocalWorkingSetManager(BundleContext context)
  • Method Details

    • removeWorkingSet

      public void removeWorkingSet(IWorkingSet workingSet)
      Removes the working set
      Specified by:
      removeWorkingSet in interface IWorkingSetManager
      Parameters:
      workingSet - the working set to remove
    • addRecentWorkingSet

      public void addRecentWorkingSet(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. The last (oldest) item will be deleted if the list exceeds the size limit.
      Specified by:
      addRecentWorkingSet in interface IWorkingSetManager
      Parameters:
      workingSet - the working set to add to the list of most recently used working sets.
    • saveState

      public void saveState(IMemento memento)
      Saves the state of the working set manager to the given memento.
      Specified by:
      saveState in interface ILocalWorkingSetManager
      Parameters:
      memento - the memento to save the state to
    • restoreState

      public void restoreState(IMemento memento)
      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:
      restoreState in interface ILocalWorkingSetManager
      Parameters:
      memento - the memento to restore the state from