public class SelectionServiceImpl extends java.lang.Object implements ESelectionService
SELECTION| Modifier and Type | Method and Description |
|---|---|
void |
addPostSelectionListener(ISelectionListener listener)
Adds the
ISelectionListener as a post selection listener for the service. |
void |
addPostSelectionListener(java.lang.String partId,
ISelectionListener listener)
Adds the
ISelectionListener as a post selection listener for the part with the given
id. |
void |
addSelectionListener(ISelectionListener listener)
Adds the given
ISelectionListener to the service |
void |
addSelectionListener(java.lang.String partId,
ISelectionListener listener)
Adds the
ISelectionListener to the service for the part with the given id. |
java.lang.Object |
getSelection()
Returns the current selection from the active context or
null if the is nothing
selected. |
java.lang.Object |
getSelection(java.lang.String partId)
Returns the current selection from the the part with the given id.
|
void |
removePostSelectionListener(ISelectionListener listener)
Removes the
ISelectionListener as a post selection listener for the service. |
void |
removePostSelectionListener(java.lang.String partId,
ISelectionListener listener)
Removes the
ISelectionListener as a post selection listener for the part with the
given id. |
void |
removeSelectionListener(ISelectionListener listener)
Removes the given
ISelectionListener from the service |
void |
removeSelectionListener(java.lang.String partId,
ISelectionListener listener)
Removes the
ISelectionListener from the service for the given part id. |
void |
setPostSelection(java.lang.Object selection)
Sets the given selection as the post selection for the active context
|
void |
setSelection(java.lang.Object selection)
Sets the given selection in the active context
|
public void setSelection(java.lang.Object selection)
ESelectionServicesetSelection in interface ESelectionServiceselection - the new selectionpublic void setPostSelection(java.lang.Object selection)
ESelectionServicesetPostSelection in interface ESelectionServiceselection - the new selectionpublic java.lang.Object getSelection()
ESelectionServicenull if the is nothing
selected.getSelection in interface ESelectionServicenullpublic java.lang.Object getSelection(java.lang.String partId)
ESelectionServicenull
if there is no selection or the part does not exist.getSelection in interface ESelectionServicepartId - the id of the part to get the selection fromnullpublic void addSelectionListener(ISelectionListener listener)
ESelectionServiceISelectionListener to the serviceaddSelectionListener in interface ESelectionServicelistener - the listener to registerpublic void removeSelectionListener(ISelectionListener listener)
ESelectionServiceISelectionListener from the serviceremoveSelectionListener in interface ESelectionServicelistener - the listener to unregisterpublic void addSelectionListener(java.lang.String partId,
ISelectionListener listener)
ESelectionServiceISelectionListener to the service for the part with the given id.addSelectionListener in interface ESelectionServicepartId - the id of the part to add the listener forlistener - the listener to registerpublic void removeSelectionListener(java.lang.String partId,
ISelectionListener listener)
ESelectionServiceISelectionListener from the service for the given part id.removeSelectionListener in interface ESelectionServicepartId - the id of the part to remove the listener forlistener - the listener to unregisterpublic void addPostSelectionListener(ISelectionListener listener)
ESelectionServiceISelectionListener as a post selection listener for the service.addPostSelectionListener in interface ESelectionServicelistener - the listener to registerpublic void removePostSelectionListener(ISelectionListener listener)
ESelectionServiceISelectionListener as a post selection listener for the service.removePostSelectionListener in interface ESelectionServicelistener - the listener to unregisterpublic void addPostSelectionListener(java.lang.String partId,
ISelectionListener listener)
ESelectionServiceISelectionListener as a post selection listener for the part with the given
id.addPostSelectionListener in interface ESelectionServicepartId - the id of the part to add the listener forlistener - the listener to registerpublic void removePostSelectionListener(java.lang.String partId,
ISelectionListener listener)
ESelectionServiceISelectionListener as a post selection listener for the part with the
given id.removePostSelectionListener in interface ESelectionServicepartId - the id of the part to remove the listener forlistener - the listener to unregister