public class WindowSelectionSelector extends Object implements AdvancedInstanceSelector
Constructor and Description |
---|
WindowSelectionSelector(DataSet dataSet)
Constructor
|
Modifier and Type | Method and Description |
---|---|
void |
addSelectionListener(InstanceSelectionListener listener)
Add a listener.
|
org.eclipse.swt.widgets.Control |
createControl(org.eclipse.swt.widgets.Composite parent)
Create the selector control.
|
void |
removeSelectionListener(InstanceSelectionListener listener)
Remove a listener
|
void |
setActivator(org.eclipse.swt.widgets.Button activator)
Sets the button that activates the selector.
|
void |
showSelection(InstanceSelection is,
org.eclipse.swt.graphics.Image image)
Show the given selection.
|
public WindowSelectionSelector(DataSet dataSet)
dataSet
- the data setpublic void addSelectionListener(InstanceSelectionListener listener)
InstanceSelector
InstanceSelectionListener.selectionChanged(TypeDefinition, Iterable)
addSelectionListener
in interface InstanceSelector
listener
- the listener to addInstanceSelector.addSelectionListener(InstanceSelectionListener)
public org.eclipse.swt.widgets.Control createControl(org.eclipse.swt.widgets.Composite parent)
InstanceSelector
createControl
in interface InstanceSelector
parent
- the parent compositeInstanceSelector.createControl(Composite)
public void removeSelectionListener(InstanceSelectionListener listener)
InstanceSelector
removeSelectionListener
in interface InstanceSelector
listener
- the listener to removeInstanceSelector.removeSelectionListener(InstanceSelectionListener)
public void showSelection(InstanceSelection is, org.eclipse.swt.graphics.Image image)
is
- the selection to showimage
- an image to show for the selection, may be null
public void setActivator(org.eclipse.swt.widgets.Button activator)
AdvancedInstanceSelector
setActivator
in interface AdvancedInstanceSelector
activator
- the activator buttonAdvancedInstanceSelector.setActivator(Button)
Build 2013-10-07_11-27-38
Revision 99b27713a799a59a21b0b166eaaea8aaefbf125a