|
PTP Release 7.0 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.ObjectComposite
org.eclipse.ptp.services.ui.widgets.ServiceConfigurationSelectionWidget
public class ServiceConfigurationSelectionWidget
Standard widget for selecting a service configuration.
Displays a table view of service configurations so that the user can easily
see what services and providers are available in the configuration.
Provides "Add...", "Remove", and "Rename" buttons to allow the creation,
removal and renaming of service configurations. These buttons can be
enabled/disabled by using the buttons constructor parameter.
The excluded constructor parameter can be used to supply a list
of configurations to be exclude from the list.
The whole control can be enabled/disabled using the setEnabled method.
| Constructor Summary | |
|---|---|
ServiceConfigurationSelectionWidget(Composite parent,
int style)
|
|
ServiceConfigurationSelectionWidget(Composite parent,
int style,
java.util.Set<IServiceConfiguration> excluded,
java.util.Set<IService> services,
boolean enableButtons)
|
|
| Method Summary | |
|---|---|
void |
addSelectionChangedListener(ISelectionChangedListener listener)
|
IServiceConfiguration[] |
getCheckedServiceConfigurations()
Gets the elements that have been checked in the viewer |
boolean |
getEnabled()
|
IServiceConfiguration |
getSelectedConfiguration()
Return the service configuration selected by the user |
ISelection |
getSelection()
|
void |
removeSelectionChangedListener(ISelectionChangedListener listener)
|
void |
setAllChecked(boolean state)
Sets all elements in the viewer to the given checked state. |
void |
setConfigurations(IServiceConfiguration[] configurations)
Set the service configurations to display in the viewer. |
void |
setEnabled(boolean enabled)
|
void |
setSelection(ISelection selection)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ServiceConfigurationSelectionWidget(Composite parent,
int style)
public ServiceConfigurationSelectionWidget(Composite parent,
int style,
java.util.Set<IServiceConfiguration> excluded,
java.util.Set<IService> services,
boolean enableButtons)
| Method Detail |
|---|
public void addSelectionChangedListener(ISelectionChangedListener listener)
public IServiceConfiguration[] getCheckedServiceConfigurations()
public boolean getEnabled()
public IServiceConfiguration getSelectedConfiguration()
public ISelection getSelection()
public void removeSelectionChangedListener(ISelectionChangedListener listener)
public void setAllChecked(boolean state)
state - public void setConfigurations(IServiceConfiguration[] configurations)
configurations - configurations to display, or null to display allpublic void setEnabled(boolean enabled)
public void setSelection(ISelection selection)
|
PTP Release 7.0 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||