|
Eclipse Platform Release 3.4 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.ui.texteditor.AbstractTextEditor.SelectionProvider
Editor specific selection provider which wraps the source viewer's selection provider.
Constructor Summary | |
protected |
AbstractTextEditor.SelectionProvider()
|
Method Summary | |
void |
addPostSelectionChangedListener(ISelectionChangedListener listener)
Adds a listener for post selection changes in this selection provider. |
void |
addSelectionChangedListener(ISelectionChangedListener listener)
Adds a listener for selection changes in this selection provider. |
ISelection |
getSelection()
Returns the current selection for this provider. |
boolean |
isValid(ISelection postSelection)
Tests whether the given post selection is still valid. |
void |
removePostSelectionChangedListener(ISelectionChangedListener listener)
Removes the given listener for post selection changes from this selection provider. |
void |
removeSelectionChangedListener(ISelectionChangedListener listener)
Removes the given selection change listener from this selection provider. |
void |
setSelection(ISelection selection)
Sets the current selection for this selection provider. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
protected AbstractTextEditor.SelectionProvider()
Method Detail |
public void addSelectionChangedListener(ISelectionChangedListener listener)
ISelectionProvider
addSelectionChangedListener
in interface ISelectionProvider
listener
- a selection changed listenerpublic ISelection getSelection()
ISelectionProvider
getSelection
in interface ISelectionProvider
public void removeSelectionChangedListener(ISelectionChangedListener listener)
ISelectionProvider
removeSelectionChangedListener
in interface ISelectionProvider
listener
- a selection changed listenerpublic void setSelection(ISelection selection)
ISelectionProvider
setSelection
in interface ISelectionProvider
selection
- the new selectionpublic void addPostSelectionChangedListener(ISelectionChangedListener listener)
IPostSelectionProvider
addPostSelectionChangedListener
in interface IPostSelectionProvider
listener
- a selection changed listenerpublic void removePostSelectionChangedListener(ISelectionChangedListener listener)
IPostSelectionProvider
removePostSelectionChangedListener
in interface IPostSelectionProvider
listener
- a selection changed listenerpublic boolean isValid(ISelection postSelection)
ISelectionValidator
isValid
in interface ISelectionValidator
postSelection
-
true
if the selection is still valid
|
Eclipse Platform Release 3.4 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Guidelines for using Eclipse APIs.
Copyright (c) Eclipse contributors and others 2000, 2008. All rights reserved.