|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectTextSourceViewerConfiguration
org.eclipse.wst.jsdt.ui.text.JavaScriptSourceViewerConfiguration
public class JavaScriptSourceViewerConfiguration
Configuration for a source viewer which shows JavaScript code.
This class may be instantiated; it is not intended to be subclassed.
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 | |
---|---|
JavaScriptSourceViewerConfiguration(IColorManager colorManager,
IPreferenceStore preferenceStore,
ITextEditor editor,
java.lang.String partitioning)
Creates a new JavaScript source viewer configuration for viewers in the given editor using the given preference store, the color manager and the specified document partitioning. |
Method Summary | |
---|---|
boolean |
affectsTextPresentation(PropertyChangeEvent event)
Determines whether the preference change encoded by the given event changes the behavior of one of its contained components. |
IAnnotationHover |
getAnnotationHover(ISourceViewer sourceViewer)
|
IAutoEditStrategy[] |
getAutoEditStrategies(ISourceViewer sourceViewer,
java.lang.String contentType)
|
java.lang.String[] |
getConfiguredContentTypes(ISourceViewer sourceViewer)
|
java.lang.String |
getConfiguredDocumentPartitioning(ISourceViewer sourceViewer)
|
int[] |
getConfiguredTextHoverStateMasks(ISourceViewer sourceViewer,
java.lang.String contentType)
|
IContentAssistant |
getContentAssistant(ISourceViewer sourceViewer)
|
IContentFormatter |
getContentFormatter(ISourceViewer sourceViewer)
|
java.lang.String[] |
getDefaultPrefixes(ISourceViewer sourceViewer,
java.lang.String contentType)
|
ITextDoubleClickStrategy |
getDoubleClickStrategy(ISourceViewer sourceViewer,
java.lang.String contentType)
|
IInformationPresenter |
getHierarchyPresenter(ISourceViewer sourceViewer,
boolean doCodeResolve)
Returns the hierarchy presenter which will determine and shown type hierarchy information requested for the current cursor position. |
java.lang.String[] |
getIndentPrefixes(ISourceViewer sourceViewer,
java.lang.String contentType)
|
IInformationControlCreator |
getInformationControlCreator(ISourceViewer sourceViewer)
|
IInformationPresenter |
getInformationPresenter(ISourceViewer sourceViewer)
|
IInformationPresenter |
getOutlinePresenter(ISourceViewer sourceViewer,
boolean doCodeResolve)
Returns the outline presenter which will determine and shown information requested for the current cursor position. |
IAnnotationHover |
getOverviewRulerAnnotationHover(ISourceViewer sourceViewer)
|
IPresentationReconciler |
getPresentationReconciler(ISourceViewer sourceViewer)
|
IQuickAssistAssistant |
getQuickAssistAssistant(ISourceViewer sourceViewer)
|
IReconciler |
getReconciler(ISourceViewer sourceViewer)
|
int |
getTabWidth(ISourceViewer sourceViewer)
|
ITextHover |
getTextHover(ISourceViewer sourceViewer,
java.lang.String contentType)
|
ITextHover |
getTextHover(ISourceViewer sourceViewer,
java.lang.String contentType,
int stateMask)
|
void |
handlePropertyChangeEvent(PropertyChangeEvent event)
Adapts the behavior of the contained components to the change encoded in the given event. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public JavaScriptSourceViewerConfiguration(IColorManager colorManager, IPreferenceStore preferenceStore, ITextEditor editor, java.lang.String partitioning)
Creates a JavaScript source viewer configuration in the new setup without text tools. Clients are
allowed to call handlePropertyChangeEvent(PropertyChangeEvent)
on the resulting
JavaScript source viewer configuration.
colorManager
- the color managerpreferenceStore
- the preference store, can be read-onlyeditor
- the editor in which the configured viewer(s) will reside, or null
if nonepartitioning
- the document partitioning for this configuration, or null
for the default partitioningMethod Detail |
---|
public IPresentationReconciler getPresentationReconciler(ISourceViewer sourceViewer)
public IContentAssistant getContentAssistant(ISourceViewer sourceViewer)
public IQuickAssistAssistant getQuickAssistAssistant(ISourceViewer sourceViewer)
public IReconciler getReconciler(ISourceViewer sourceViewer)
public IAutoEditStrategy[] getAutoEditStrategies(ISourceViewer sourceViewer, java.lang.String contentType)
public ITextDoubleClickStrategy getDoubleClickStrategy(ISourceViewer sourceViewer, java.lang.String contentType)
public java.lang.String[] getDefaultPrefixes(ISourceViewer sourceViewer, java.lang.String contentType)
public java.lang.String[] getIndentPrefixes(ISourceViewer sourceViewer, java.lang.String contentType)
public int getTabWidth(ISourceViewer sourceViewer)
public IAnnotationHover getAnnotationHover(ISourceViewer sourceViewer)
public IAnnotationHover getOverviewRulerAnnotationHover(ISourceViewer sourceViewer)
public int[] getConfiguredTextHoverStateMasks(ISourceViewer sourceViewer, java.lang.String contentType)
public ITextHover getTextHover(ISourceViewer sourceViewer, java.lang.String contentType, int stateMask)
public ITextHover getTextHover(ISourceViewer sourceViewer, java.lang.String contentType)
public java.lang.String[] getConfiguredContentTypes(ISourceViewer sourceViewer)
public java.lang.String getConfiguredDocumentPartitioning(ISourceViewer sourceViewer)
public IContentFormatter getContentFormatter(ISourceViewer sourceViewer)
public IInformationControlCreator getInformationControlCreator(ISourceViewer sourceViewer)
public IInformationPresenter getInformationPresenter(ISourceViewer sourceViewer)
public IInformationPresenter getOutlinePresenter(ISourceViewer sourceViewer, boolean doCodeResolve)
sourceViewer
- the source viewer to be configured by this configurationdoCodeResolve
- a boolean which specifies whether code resolve should be used to compute the JavaScript element
public IInformationPresenter getHierarchyPresenter(ISourceViewer sourceViewer, boolean doCodeResolve)
sourceViewer
- the source viewer to be configured by this configurationdoCodeResolve
- a boolean which specifies whether code resolve should be used to compute the JavaScript element
public boolean affectsTextPresentation(PropertyChangeEvent event)
event
- the event to be investigated
true
if event causes a behavioral changepublic void handlePropertyChangeEvent(PropertyChangeEvent event)
Clients are not allowed to call this method if the old setup with text tools is in use.
event
- the event to which to adaptJavaScriptSourceViewerConfiguration#JavaSourceViewerConfiguration(IColorManager, IPreferenceStore, ITextEditor, String)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |