|
Eclipse JDT Release 3.0 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.jface.text.source.SourceViewerConfiguration
org.eclipse.jdt.ui.text.JavaSourceViewerConfiguration
Configuration for a source viewer which shows Java code.
This class may be instantiated; it is not intended to be subclassed.
Field Summary | |
static String |
PREFERENCE_TAB_WIDTH
Deprecated. As of 3.0, replaced by AbstractDecoratedTextEditorPreferenceConstants.EDITOR_TAB_WIDTH |
static String |
SPACES_FOR_TABS
Preference key for inserting spaces rather than tabs. |
Constructor Summary | |
JavaSourceViewerConfiguration(IColorManager colorManager,
org.eclipse.jface.preference.IPreferenceStore preferenceStore,
org.eclipse.ui.texteditor.ITextEditor editor,
String partitioning)
Creates a new Java source viewer configuration for viewers in the given editor using the given preference store, the color manager and the specified document partitioning. |
|
JavaSourceViewerConfiguration(JavaTextTools tools,
org.eclipse.ui.texteditor.ITextEditor editor)
Deprecated. As of 3.0, replaced by JavaSourceViewerConfiguration(IColorManager, IPreferenceStore, ITextEditor, String) |
Method Summary | |
boolean |
affectsTextPresentation(org.eclipse.jface.util.PropertyChangeEvent event)
Determines whether the preference change encoded by the given event changes the behavior of one of its contained components. |
org.eclipse.jface.text.source.IAnnotationHover |
getAnnotationHover(org.eclipse.jface.text.source.ISourceViewer sourceViewer)
|
org.eclipse.jface.text.IAutoIndentStrategy |
getAutoIndentStrategy(org.eclipse.jface.text.source.ISourceViewer sourceViewer,
String contentType)
|
protected org.eclipse.jface.text.rules.RuleBasedScanner |
getCodeScanner()
Returns the Java source code scanner for this configuration. |
protected IColorManager |
getColorManager()
Returns the color manager for this configuration. |
String[] |
getConfiguredContentTypes(org.eclipse.jface.text.source.ISourceViewer sourceViewer)
|
String |
getConfiguredDocumentPartitioning(org.eclipse.jface.text.source.ISourceViewer sourceViewer)
|
int[] |
getConfiguredTextHoverStateMasks(org.eclipse.jface.text.source.ISourceViewer sourceViewer,
String contentType)
|
org.eclipse.jface.text.contentassist.IContentAssistant |
getContentAssistant(org.eclipse.jface.text.source.ISourceViewer sourceViewer)
|
org.eclipse.jface.text.formatter.IContentFormatter |
getContentFormatter(org.eclipse.jface.text.source.ISourceViewer sourceViewer)
|
String[] |
getDefaultPrefixes(org.eclipse.jface.text.source.ISourceViewer sourceViewer,
String contentType)
|
org.eclipse.jface.text.ITextDoubleClickStrategy |
getDoubleClickStrategy(org.eclipse.jface.text.source.ISourceViewer sourceViewer,
String contentType)
|
protected org.eclipse.ui.texteditor.ITextEditor |
getEditor()
Returns the editor in which the configured viewer(s) will reside. |
org.eclipse.jface.text.information.IInformationPresenter |
getHierarchyPresenter(org.eclipse.jface.text.source.ISourceViewer sourceViewer,
boolean doCodeResolve)
Returns the hierarchy presenter which will determine and shown type hierarchy information requested for the current cursor position. |
String[] |
getIndentPrefixes(org.eclipse.jface.text.source.ISourceViewer sourceViewer,
String contentType)
|
org.eclipse.jface.text.IInformationControlCreator |
getInformationControlCreator(org.eclipse.jface.text.source.ISourceViewer sourceViewer)
|
org.eclipse.jface.text.information.IInformationPresenter |
getInformationPresenter(org.eclipse.jface.text.source.ISourceViewer sourceViewer)
|
protected org.eclipse.jface.text.rules.RuleBasedScanner |
getJavaDocScanner()
Returns the JavaDoc scanner for this configuration. |
protected org.eclipse.jface.text.rules.RuleBasedScanner |
getMultilineCommentScanner()
Returns the Java multi-line comment scanner for this configuration. |
org.eclipse.jface.text.information.IInformationPresenter |
getOutlinePresenter(org.eclipse.jface.text.source.ISourceViewer sourceViewer,
boolean doCodeResolve)
Returns the outline presenter which will determine and shown information requested for the current cursor position. |
org.eclipse.jface.text.source.IAnnotationHover |
getOverviewRulerAnnotationHover(org.eclipse.jface.text.source.ISourceViewer sourceViewer)
|
protected org.eclipse.jface.preference.IPreferenceStore |
getPreferenceStore()
Deprecated. As of 3.0 |
org.eclipse.jface.text.presentation.IPresentationReconciler |
getPresentationReconciler(org.eclipse.jface.text.source.ISourceViewer sourceViewer)
|
org.eclipse.jface.text.reconciler.IReconciler |
getReconciler(org.eclipse.jface.text.source.ISourceViewer sourceViewer)
|
protected org.eclipse.jface.text.rules.RuleBasedScanner |
getSinglelineCommentScanner()
Returns the Java single-line comment scanner for this configuration. |
protected org.eclipse.jface.text.rules.RuleBasedScanner |
getStringScanner()
Returns the Java string scanner for this configuration. |
int |
getTabWidth(org.eclipse.jface.text.source.ISourceViewer sourceViewer)
|
org.eclipse.jface.text.ITextHover |
getTextHover(org.eclipse.jface.text.source.ISourceViewer sourceViewer,
String contentType)
|
org.eclipse.jface.text.ITextHover |
getTextHover(org.eclipse.jface.text.source.ISourceViewer sourceViewer,
String contentType,
int stateMask)
|
void |
handlePropertyChangeEvent(org.eclipse.jface.util.PropertyChangeEvent event)
Adapts the behavior of the contained components to the change encoded in the given event. |
Methods inherited from class org.eclipse.jface.text.source.SourceViewerConfiguration |
getUndoManager |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final String PREFERENCE_TAB_WIDTH
AbstractDecoratedTextEditorPreferenceConstants.EDITOR_TAB_WIDTH
public static final String SPACES_FOR_TABS
Constructor Detail |
public JavaSourceViewerConfiguration(IColorManager colorManager, org.eclipse.jface.preference.IPreferenceStore preferenceStore, org.eclipse.ui.texteditor.ITextEditor editor, String partitioning)
Creates a Java source viewer configuration in the new setup without text tools. Clients are
allowed to call handlePropertyChangeEvent(PropertyChangeEvent)
and disallowed to call getPreferenceStore()
on the resulting
Java source viewer configuration.
colorManager
- the color managerpreferenceStore
- the preference store, can be read-onlyeditor
- the editor in which the configured viewer(s) will residepartitioning
- the document partitioning for this configurationpublic JavaSourceViewerConfiguration(JavaTextTools tools, org.eclipse.ui.texteditor.ITextEditor editor)
JavaSourceViewerConfiguration(IColorManager, IPreferenceStore, ITextEditor, String)
tools
- the Java text tools to be usededitor
- the editor in which the configured viewer(s) will resideJavaTextTools
Method Detail |
protected org.eclipse.jface.text.rules.RuleBasedScanner getCodeScanner()
protected org.eclipse.jface.text.rules.RuleBasedScanner getMultilineCommentScanner()
protected org.eclipse.jface.text.rules.RuleBasedScanner getSinglelineCommentScanner()
protected org.eclipse.jface.text.rules.RuleBasedScanner getStringScanner()
protected org.eclipse.jface.text.rules.RuleBasedScanner getJavaDocScanner()
protected IColorManager getColorManager()
protected org.eclipse.ui.texteditor.ITextEditor getEditor()
protected org.eclipse.jface.preference.IPreferenceStore getPreferenceStore()
Clients are not allowed to call this method if the new setup without text tools is in use.
public org.eclipse.jface.text.presentation.IPresentationReconciler getPresentationReconciler(org.eclipse.jface.text.source.ISourceViewer sourceViewer)
public org.eclipse.jface.text.contentassist.IContentAssistant getContentAssistant(org.eclipse.jface.text.source.ISourceViewer sourceViewer)
public org.eclipse.jface.text.reconciler.IReconciler getReconciler(org.eclipse.jface.text.source.ISourceViewer sourceViewer)
public org.eclipse.jface.text.IAutoIndentStrategy getAutoIndentStrategy(org.eclipse.jface.text.source.ISourceViewer sourceViewer, String contentType)
public org.eclipse.jface.text.ITextDoubleClickStrategy getDoubleClickStrategy(org.eclipse.jface.text.source.ISourceViewer sourceViewer, String contentType)
public String[] getDefaultPrefixes(org.eclipse.jface.text.source.ISourceViewer sourceViewer, String contentType)
public String[] getIndentPrefixes(org.eclipse.jface.text.source.ISourceViewer sourceViewer, String contentType)
public int getTabWidth(org.eclipse.jface.text.source.ISourceViewer sourceViewer)
public org.eclipse.jface.text.source.IAnnotationHover getAnnotationHover(org.eclipse.jface.text.source.ISourceViewer sourceViewer)
public org.eclipse.jface.text.source.IAnnotationHover getOverviewRulerAnnotationHover(org.eclipse.jface.text.source.ISourceViewer sourceViewer)
public int[] getConfiguredTextHoverStateMasks(org.eclipse.jface.text.source.ISourceViewer sourceViewer, String contentType)
public org.eclipse.jface.text.ITextHover getTextHover(org.eclipse.jface.text.source.ISourceViewer sourceViewer, String contentType, int stateMask)
public org.eclipse.jface.text.ITextHover getTextHover(org.eclipse.jface.text.source.ISourceViewer sourceViewer, String contentType)
public String[] getConfiguredContentTypes(org.eclipse.jface.text.source.ISourceViewer sourceViewer)
public String getConfiguredDocumentPartitioning(org.eclipse.jface.text.source.ISourceViewer sourceViewer)
public org.eclipse.jface.text.formatter.IContentFormatter getContentFormatter(org.eclipse.jface.text.source.ISourceViewer sourceViewer)
public org.eclipse.jface.text.IInformationControlCreator getInformationControlCreator(org.eclipse.jface.text.source.ISourceViewer sourceViewer)
public org.eclipse.jface.text.information.IInformationPresenter getInformationPresenter(org.eclipse.jface.text.source.ISourceViewer sourceViewer)
public org.eclipse.jface.text.information.IInformationPresenter getOutlinePresenter(org.eclipse.jface.text.source.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 Java element
public org.eclipse.jface.text.information.IInformationPresenter getHierarchyPresenter(org.eclipse.jface.text.source.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 Java element
public boolean affectsTextPresentation(org.eclipse.jface.util.PropertyChangeEvent event)
event
- the event to be investigated
true
if event causes a behavioral changepublic void handlePropertyChangeEvent(org.eclipse.jface.util.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 adaptJavaSourceViewerConfiguration(IColorManager, IPreferenceStore, ITextEditor, String)
|
Eclipse JDT Release 3.0 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |