public class WorkingSetConfigurationBlock extends Object
IWizardPage instances that wish to create resources and pre-install
them into particular working sets.| Constructor and Description |
|---|
WorkingSetConfigurationBlock(IDialogSettings settings,
String... workingSetIds)
Create a new instance of this working set block using default labels.
|
WorkingSetConfigurationBlock(IDialogSettings settings,
String enableButtonLabel,
String newButtonLabel,
String comboLabel,
String selectLabel,
String... workingSetIds)
Create a new instance of this working set block using custom labels.
|
WorkingSetConfigurationBlock(String[] workingSetIds,
IDialogSettings settings)
Create a new instance of this working set block using default labels.
|
WorkingSetConfigurationBlock(String[] workingSetIds,
IDialogSettings settings,
String enableButtonLabel,
String comboLabel,
String selectLabel)
Create a new instance of this working set block using custom labels.
|
| Modifier and Type | Method and Description |
|---|---|
void |
createContent(Composite parent)
Add this block to the
parent |
static IWorkingSet[] |
filter(IWorkingSet[] workingSets,
String[] workingSetIds)
Filters the given working sets such that the following is true: for each
IWorkingSet s in result: s.getId() is element of workingSetIds
|
IWorkingSet[] |
findApplicableWorkingSets(IStructuredSelection selection)
Retrieves a working set from the given
selection or an
empty array if no working set could be retrieved. |
IWorkingSet[] |
getSelectedWorkingSets()
Return the currently selected working sets.
|
void |
setSelection(IStructuredSelection selection)
Deprecated.
|
void |
setWorkingSets(IWorkingSet... workingSets)
Set the current selection of working sets.
|
public WorkingSetConfigurationBlock(IDialogSettings settings, String... workingSetIds)
settings - to store/load the selection historyworkingSetIds - working set ids from which the user can choosepublic WorkingSetConfigurationBlock(String[] workingSetIds, IDialogSettings settings)
workingSetIds - working set ids from which the user can choosesettings - to store/load the selection historypublic WorkingSetConfigurationBlock(String[] workingSetIds, IDialogSettings settings, String enableButtonLabel, String comboLabel, String selectLabel)
workingSetIds - working set ids from which the user can choosesettings - to store/load the selection historyenableButtonLabel - the label to use for the checkable enablement button. May be
null to use the default value.comboLabel - the label to use for the recent working set combo. May be
null to use the default value.selectLabel - the label to use for the select button. May be
null to use the default value.public WorkingSetConfigurationBlock(IDialogSettings settings, String enableButtonLabel, String newButtonLabel, String comboLabel, String selectLabel, String... workingSetIds)
settings - to store/load the selection historyenableButtonLabel - the label to use for the checkable enablement button. May be
null to use the default value.newButtonLabel - the label to use for the new button. May be null
to use the default value.comboLabel - the label to use for the recent working set combo. May be
null to use the default value.selectLabel - the label to use for the select button. May be
null to use the default value.workingSetIds - working set ids from which the user can choosepublic static IWorkingSet[] filter(IWorkingSet[] workingSets, String[] workingSetIds)
workingSets - the array to filterworkingSetIds - the acceptable working set ids@Deprecated public void setSelection(IStructuredSelection selection)
setWorkingSets(IWorkingSet[]) and findApplicableWorkingSets(IStructuredSelection)
instead.selection - the selection to present in the UI or nullpublic void setWorkingSets(IWorkingSet... workingSets)
workingSets - the working setspublic IWorkingSet[] findApplicableWorkingSets(IStructuredSelection selection)
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.selection - the selection to retrieve the working set frompublic IWorkingSet[] getSelectedWorkingSets()
public void createContent(Composite parent)
parentparent - the parent to add the block to
Copyright (c) 2000, 2016 Eclipse Contributors and others. All rights reserved.Guidelines for using Eclipse APIs.