|
Eclipse Platform Release 3.6 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.eclipse.ui.texteditor.AbstractTextEditor.SelectionProvider
protected class 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 ISelectionProviderlistener - a selection changed listenerpublic ISelection getSelection()
ISelectionProvider
getSelection in interface ISelectionProviderpublic void removeSelectionChangedListener(ISelectionChangedListener listener)
ISelectionProvider
removeSelectionChangedListener in interface ISelectionProviderlistener - a selection changed listenerpublic void setSelection(ISelection selection)
ISelectionProvider
setSelection in interface ISelectionProviderselection - the new selectionpublic void addPostSelectionChangedListener(ISelectionChangedListener listener)
IPostSelectionProvider
addPostSelectionChangedListener in interface IPostSelectionProviderlistener - a selection changed listenerpublic void removePostSelectionChangedListener(ISelectionChangedListener listener)
IPostSelectionProvider
removePostSelectionChangedListener in interface IPostSelectionProviderlistener - a selection changed listenerpublic boolean isValid(ISelection postSelection)
ISelectionValidator
isValid in interface ISelectionValidatorpostSelection - the selection
true if the selection is still valid
|
Eclipse Platform Release 3.6 |
|||||||||
| 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, 2010. All rights reserved.