|
JavaScript Development Tools Release 3.2 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.wst.jsdt.ui.actions.ConvertingSelectionProvider
public class ConvertingSelectionProvider
A converting selection provider is a special selection provider which converts
a selection before notifying any listeners. Additional it converts the selection
on getSelection
and setSelection
. The default strategy
used to adapt the elements of the selection to IJavaScriptElement
or a IResource
,
but implementors can override this behavior.
Provisional API: This class/interface is part of an interim API that is still under development and expected to
change significantly before reaching stability. It is being made available at this early stage to solicit feedback
from pioneering adopters on the understanding that any code that uses this API will almost certainly be broken
(repeatedly) as the API evolves.
Constructor Summary | |
---|---|
ConvertingSelectionProvider(ISelectionProvider provider)
Creates a ConvertingSelectionProvider to convert from a given selection provider
using the default mechanism. |
Method Summary | |
---|---|
void |
addSelectionChangedListener(ISelectionChangedListener listener)
|
ISelection |
convertFrom(ISelection viewerSelection)
Converts the given original viewer selection into a new selection. |
ISelection |
convertTo(ISelection selection)
Converts a selection to a viewer selection. |
ISelection |
getSelection()
|
void |
removeSelectionChangedListener(ISelectionChangedListener listener)
|
void |
setSelection(ISelection selection)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ConvertingSelectionProvider(ISelectionProvider provider)
ConvertingSelectionProvider
to convert from a given selection provider
using the default mechanism.
provider
- the provider to covert from and toMethod Detail |
---|
public ISelection convertFrom(ISelection viewerSelection)
IJavaScriptElement
then to IResource
.
Implementors want to override this method.
viewerSelection
- the original viewer selection
public ISelection convertTo(ISelection selection)
selection
- the selection to convert
public final ISelection getSelection()
public final void setSelection(ISelection selection)
public void addSelectionChangedListener(ISelectionChangedListener listener)
public void removeSelectionChangedListener(ISelectionChangedListener listener)
|
JavaScript Development Tools Release 3.2 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |