|
Eclipse Platform 2.0 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
A selection service tracks the selection within an object.
This interface is not intended to be implemented by clients.
Method Summary | |
void |
addPostSelectionListener(ISelectionListener listener)
Adds the given post selection listener.It is equivalent to selection changed if the selection was triggered by the mouse but it has a delay if the selection is triggered by the keyboard arrows. |
void |
addPostSelectionListener(String partId,
ISelectionListener listener)
Adds a part-specific post selection listener which is notified when selection changes in the part with the given id. |
void |
addSelectionListener(ISelectionListener listener)
Adds the given selection listener. |
void |
addSelectionListener(String partId,
ISelectionListener listener)
Adds a part-specific selection listener which is notified when selection changes in the part with the given id. |
ISelection |
getSelection()
Returns the current selection in the active part. |
ISelection |
getSelection(String partId)
Returns the current selection in the part with the given id. |
void |
removePostSelectionListener(ISelectionListener listener)
Removes the given post selection listener. |
void |
removePostSelectionListener(String partId,
ISelectionListener listener)
Removes the given part-specific post selection listener. |
void |
removeSelectionListener(ISelectionListener listener)
Removes the given selection listener. |
void |
removeSelectionListener(String partId,
ISelectionListener listener)
Removes the given part-specific selection listener. |
Method Detail |
public void addSelectionListener(ISelectionListener listener)
listener
- a selection listenerpublic void addSelectionListener(String partId, ISelectionListener listener)
null
selection.
partId
- the id of the part to tracklistener
- a selection listenerpublic void addPostSelectionListener(ISelectionListener listener)
listener
- a selection listenerpublic void addPostSelectionListener(String partId, ISelectionListener listener)
null
selection.
partId
- the id of the part to tracklistener
- a selection listenerpublic ISelection getSelection()
null
.
null
if undefinedpublic ISelection getSelection(String partId)
null
.
partId
- the id of the part
null
if undefinedpublic void removeSelectionListener(ISelectionListener listener)
listener
- a selection listenerpublic void removeSelectionListener(String partId, ISelectionListener listener)
partId
- the id of the part to tracklistener
- a selection listenerpublic void removePostSelectionListener(ISelectionListener listener)
listener
- a selection listenerpublic void removePostSelectionListener(String partId, ISelectionListener listener)
partId
- the id of the part to tracklistener
- a selection listener
|
Eclipse Platform 2.0 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |