Method Summary |
|
public void | addPropertyChangeListener(IPropertyChangeListener listener) Adds a property change listener. |
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. |
public void | addToWorkingSets(IAdaptable element, IWorkingSet[] workingSets) Utility method that will add the element to each given
working set in workingSets if possible. |
public void | addWorkingSet(IWorkingSet workingSet) Adds a working set to the receiver. |
public IWorkingSet | createAggregateWorkingSet(String name, String label, IWorkingSet[] components) Create a working set that is the union of a collection of other working
sets. |
public IWorkingSet | createWorkingSet(String name, IAdaptable[] elements) Creates a new working set.
The working set is not added to the working set manager.
Parameters: name - the name of the new working set. |
public IWorkingSet | createWorkingSet(IMemento memento) Re-creates and returns a working set from the state captured within the
given memento. |
public IWorkingSetEditWizard | createWorkingSetEditWizard(IWorkingSet workingSet) Creates a working set edit wizard for the specified working set.
The working set will already be set in the wizard.
The caller is responsible for creating and opening a wizard dialog.
Example:
IWorkingSetEditWizard wizard = workingSetManager.createWorkingSetEditWizard(workingSet);
if (wizard != null) {
WizardDialog dialog = new WizardDialog(shell, wizard);
dialog.create();
if (dialog.open() == Window.OK) {
workingSet = wizard.getSelection();
}
}
Parameters: workingSet - working set to create a working set edit wizard for. |
public IWorkingSetNewWizard | createWorkingSetNewWizard(String[] workingSetIds) Creates a working set new wizard. |
public IWorkingSetSelectionDialog | createWorkingSetSelectionDialog(Shell parent) |
public IWorkingSetSelectionDialog | createWorkingSetSelectionDialog(Shell parentShell, boolean multi) Creates a working set selection dialog that lists all working
sets and allows the user to add, remove and edit working sets.
The caller is responsible for opening the dialog with
IWorkingSetSelectionDialog#open , and subsequently
extracting the selected working sets using
IWorkingSetSelectionDialog#getSelection .
Parameters: parentShell - the parent shell of the working set selection dialog Parameters: multi - true=more than one working set can be chosen in the dialog. |
public IWorkingSetSelectionDialog | createWorkingSetSelectionDialog(Shell parentShell, boolean multi, String[] workingsSetIds) Creates a working set selection dialog that lists all working
sets with the specified ids and allows the user to add, remove and
edit working sets with the specified ids.
The caller is responsible for opening the dialog with
IWorkingSetSelectionDialog#open , and subsequently
extracting the selected working sets using
IWorkingSetSelectionDialog#getSelection .
Parameters: parentShell - the parent shell of the working set selection dialog Parameters: multi - true=more than one working set can be chosen in the dialog. |
public void | dispose() Disposes the working set manager. |
public IWorkingSet[] | getAllWorkingSets() Returns an array of all working sets stored in the receiver including
those that are marked as being not visible. |
public IWorkingSet[] | getRecentWorkingSets() Returns the list of most recently used working sets. |
public IWorkingSet | getWorkingSet(String name) Returns the working set with the specified name. |
public IWorkingSet[] | getWorkingSets() Returns an array of all working sets stored in the receiver. |
public void | removePropertyChangeListener(IPropertyChangeListener listener) Removes the property change listener. |
public void | removeWorkingSet(IWorkingSet workingSet) |