public interface ESelectionService
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
SELECTION
Deprecated.
|
| 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
|
@Deprecated static final java.lang.String SELECTION
IServiceConstants.ACTIVE_SELECTION. All clients of this API should change their
references to IServiceConstants.ACTIVE_SELECTION.void setSelection(java.lang.Object selection)
selection - the new selectionvoid setPostSelection(java.lang.Object selection)
selection - the new selectionjava.lang.Object getSelection()
null if the is nothing
selected.nulljava.lang.Object getSelection(java.lang.String partId)
null
if there is no selection or the part does not exist.partId - the id of the part to get the selection fromnullvoid addSelectionListener(ISelectionListener listener)
ISelectionListener to the servicelistener - the listener to registervoid removeSelectionListener(ISelectionListener listener)
ISelectionListener from the servicelistener - the listener to unregistervoid addSelectionListener(java.lang.String partId,
ISelectionListener listener)
ISelectionListener to the service for the part with the given id.partId - the id of the part to add the listener forlistener - the listener to registervoid removeSelectionListener(java.lang.String partId,
ISelectionListener listener)
ISelectionListener from the service for the given part id.partId - the id of the part to remove the listener forlistener - the listener to unregistervoid addPostSelectionListener(ISelectionListener listener)
ISelectionListener as a post selection listener for the service.listener - the listener to registervoid removePostSelectionListener(ISelectionListener listener)
ISelectionListener as a post selection listener for the service.listener - the listener to unregistervoid addPostSelectionListener(java.lang.String partId,
ISelectionListener listener)
ISelectionListener as a post selection listener for the part with the given
id.partId - the id of the part to add the listener forlistener - the listener to registervoid removePostSelectionListener(java.lang.String partId,
ISelectionListener listener)
ISelectionListener as a post selection listener for the part with the
given id.partId - the id of the part to remove the listener forlistener - the listener to unregister
Copyright (c) 2000, 2018 Eclipse Contributors and others. All rights reserved.Guidelines for using Eclipse APIs.