public interface ESelectionService
Modifier and Type | Method and Description |
---|---|
void |
addPostSelectionListener(ISelectionListener listener)
Adds the
ISelectionListener as a post selection listener for the service. |
void |
addPostSelectionListener(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(String partId,
ISelectionListener listener)
Adds the
ISelectionListener to the service for the part with the given id. |
Object |
getSelection()
Returns the current selection from the active context or
null if the is nothing
selected. |
Object |
getSelection(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(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(String partId,
ISelectionListener listener)
Removes the
ISelectionListener from the service for the given part id. |
void |
setPostSelection(Object selection)
Sets the given selection as the post selection for the active context
|
void |
setSelection(Object selection)
Sets the given selection in the active context
|
@Deprecated static final String SELECTION
IServiceConstants.ACTIVE_SELECTION
. All clients of this API should change their
references to IServiceConstants.ACTIVE_SELECTION
.void setSelection(Object selection)
selection
- the new selectionvoid setPostSelection(Object selection)
selection
- the new selectionObject getSelection()
null
if the is nothing
selected.null
Object getSelection(String partId)
null
if there is no selection or the part does not exist.partId
- the id of the part to get the selection fromnull
void addSelectionListener(ISelectionListener listener)
ISelectionListener
to the servicelistener
- the listener to registervoid removeSelectionListener(ISelectionListener listener)
ISelectionListener
from the servicelistener
- the listener to unregistervoid addSelectionListener(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(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(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(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, 2015 Eclipse Contributors and others. All rights reserved.Guidelines for using Eclipse APIs.