Interface IWorkingSetElementAdapter

All Known Implementing Classes:
BasicWorkingSetElementAdapter

public interface IWorkingSetElementAdapter

Interface that describes a mechanism that may be provided by working set extensions to help manage the addition of elements to working sets. Instances of this class are capable of transforming possible working set content into the most applicable form.

Usage of this interface is achieved via the elementAdapterClass attribute of the org.eclipse.ui.workingSets extension point. Usage of this interface in org.eclipse.ui.workingSets extensions is optional.

Since:
3.3
  • Method Summary

    Modifier and Type
    Method
    Description
    Converts the given elements for addition to/removal from the working set.
    void
    Disposes of this element adaptor.
  • Method Details

    • adaptElements

      IAdaptable[] adaptElements(IWorkingSet ws, IAdaptable[] elements)
      Converts the given elements for addition to/removal from the working set.
      Parameters:
      ws - the target working set that elements should be adapted for
      elements - the elements to adapt
      Returns:
      the (possibly adapted) elements to add to/remove from the working set
    • dispose

      void dispose()
      Disposes of this element adaptor.