| java.lang.Object org.eclipse.ui.dialogs.WorkingSetConfigurationBlock
WorkingSetConfigurationBlock | public class WorkingSetConfigurationBlock (Code) | | Instances of this class provide a reusable composite with controls that allow
the selection of working sets. This class is most useful in
IWizardPage instances that wish to create resources and pre-install
them into particular working sets.
Please note that this API is experimental and may change before 3.4
ships.
since: 3.4 |
Constructor Summary | |
public | WorkingSetConfigurationBlock(String[] workingSetIds, IDialogSettings settings) Create a new instance of this working set block using default labels. | public | WorkingSetConfigurationBlock(String[] workingSetIds, IDialogSettings settings, String addButtonLabel, String comboLabel, String selectLabel) Create a new instance of this working set block using custom labels.
Parameters: workingSetIds - working set ids from which the user can choose Parameters: settings - to store/load the selection history Parameters: addButtonLabel - the label to use for the checkable enablement button. |
WorkingSetConfigurationBlock | public WorkingSetConfigurationBlock(String[] workingSetIds, IDialogSettings settings)(Code) | | Create a new instance of this working set block using default labels.
Parameters: workingSetIds - working set ids from which the user can choose Parameters: settings - to store/load the selection history |
WorkingSetConfigurationBlock | public WorkingSetConfigurationBlock(String[] workingSetIds, IDialogSettings settings, String addButtonLabel, String comboLabel, String selectLabel)(Code) | | Create a new instance of this working set block using custom labels.
Parameters: workingSetIds - working set ids from which the user can choose Parameters: settings - to store/load the selection history Parameters: addButtonLabel - the label to use for the checkable enablement button. May benull to use the default value. Parameters: comboLabel - the label to use for the recent working set combo. May benull to use the default value. Parameters: selectLabel - the label to use for the select button. May benull to use the default value. |
createContent | public void createContent(Composite parent)(Code) | | Add this block to the parent
Parameters: parent - the parent to add the block to |
filter | public static IWorkingSet[] filter(IWorkingSet[] workingSets, String[] workingSetIds)(Code) | | Filters the given working sets such that the following is true: for each
IWorkingSet s in result: s.getId() is element of workingSetIds
Parameters: workingSets - the array to filter Parameters: workingSetIds - the acceptable working set ids the filtered elements |
findApplicableWorkingSets | public IWorkingSet[] findApplicableWorkingSets(IStructuredSelection selection)(Code) | | Retrieves a working set from the given selection or an
empty array if no working set could be retrieved. This selection is
filtered based on the criteria used to construct this instance.
Parameters: selection - the selection to retrieve the working set from the selected working set or an empty array |
getSelectedWorkingSets | public IWorkingSet[] getSelectedWorkingSets()(Code) | | Return the currently selected working sets. If the controls representing
this block are disabled this array will be empty regardless of the
currently selected values.
the selected working sets |
setWorkingSets | public void setWorkingSets(IWorkingSet[] workingSets)(Code) | | Set the current selection of working sets. This array will be filtered to
contain only working sets that are applicable to this instance.
Parameters: workingSets - the working sets |
|
|