|
Eclipse JDT 2.0 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.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
Preference key used to look up display tab width. |
static String |
SPACES_FOR_TABS
Preference key for inserting spaces rather than tabs. |
Constructor Summary | |
JavaSourceViewerConfiguration(JavaTextTools tools,
ITextEditor editor)
Creates a new Java source viewer configuration for viewers in the given editor using the given Java tools. |
Method Summary | |
IAnnotationHover |
getAnnotationHover(ISourceViewer sourceViewer)
|
IAutoIndentStrategy |
getAutoIndentStrategy(ISourceViewer sourceViewer,
String contentType)
|
protected RuleBasedScanner |
getCodeScanner()
Returns the Java source code scanner for this configuration. |
protected IColorManager |
getColorManager()
Returns the color manager for this configuration. |
String[] |
getConfiguredContentTypes(ISourceViewer sourceViewer)
|
IContentAssistant |
getContentAssistant(ISourceViewer sourceViewer)
|
IContentFormatter |
getContentFormatter(ISourceViewer sourceViewer)
|
String[] |
getDefaultPrefixes(ISourceViewer sourceViewer,
String contentType)
|
ITextDoubleClickStrategy |
getDoubleClickStrategy(ISourceViewer sourceViewer,
String contentType)
|
protected ITextEditor |
getEditor()
Returns the editor in which the configured viewer(s) will reside. |
String[] |
getIndentPrefixes(ISourceViewer sourceViewer,
String contentType)
|
IInformationControlCreator |
getInformationControlCreator(ISourceViewer sourceViewer)
|
IInformationPresenter |
getInformationPresenter(ISourceViewer sourceViewer)
|
protected RuleBasedScanner |
getJavaDocScanner()
Returns the JavaDoc scanner for this configuration. |
protected RuleBasedScanner |
getMultilineCommentScanner()
Returns the Java multiline comment scanner for this configuration. |
protected IPreferenceStore |
getPreferenceStore()
Returns the preference store used by this configuration to initialize the individual bits and pieces. |
IPresentationReconciler |
getPresentationReconciler(ISourceViewer sourceViewer)
|
IReconciler |
getReconciler(ISourceViewer sourceViewer)
|
protected RuleBasedScanner |
getSinglelineCommentScanner()
Returns the Java singleline comment scanner for this configuration. |
protected RuleBasedScanner |
getStringScanner()
Returns the Java string scanner for this configuration. |
int |
getTabWidth(ISourceViewer sourceViewer)
|
ITextHover |
getTextHover(ISourceViewer sourceViewer,
String contentType)
|
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
public static final String SPACES_FOR_TABS
Constructor Detail |
public JavaSourceViewerConfiguration(JavaTextTools tools, ITextEditor editor)
tools
- the Java tools to be usededitor
- the editor in which the configured viewer(s) will resideMethod Detail |
protected RuleBasedScanner getCodeScanner()
protected RuleBasedScanner getMultilineCommentScanner()
protected RuleBasedScanner getSinglelineCommentScanner()
protected RuleBasedScanner getStringScanner()
protected RuleBasedScanner getJavaDocScanner()
protected IColorManager getColorManager()
protected ITextEditor getEditor()
protected IPreferenceStore getPreferenceStore()
public IPresentationReconciler getPresentationReconciler(ISourceViewer sourceViewer)
getPresentationReconciler
in class SourceViewerConfiguration
public IContentAssistant getContentAssistant(ISourceViewer sourceViewer)
getContentAssistant
in class SourceViewerConfiguration
public IReconciler getReconciler(ISourceViewer sourceViewer)
getReconciler
in class SourceViewerConfiguration
public IAutoIndentStrategy getAutoIndentStrategy(ISourceViewer sourceViewer, String contentType)
getAutoIndentStrategy
in class SourceViewerConfiguration
public ITextDoubleClickStrategy getDoubleClickStrategy(ISourceViewer sourceViewer, String contentType)
getDoubleClickStrategy
in class SourceViewerConfiguration
public String[] getDefaultPrefixes(ISourceViewer sourceViewer, String contentType)
getDefaultPrefixes
in class SourceViewerConfiguration
public String[] getIndentPrefixes(ISourceViewer sourceViewer, String contentType)
getIndentPrefixes
in class SourceViewerConfiguration
public int getTabWidth(ISourceViewer sourceViewer)
getTabWidth
in class SourceViewerConfiguration
public IAnnotationHover getAnnotationHover(ISourceViewer sourceViewer)
getAnnotationHover
in class SourceViewerConfiguration
public ITextHover getTextHover(ISourceViewer sourceViewer, String contentType)
getTextHover
in class SourceViewerConfiguration
public String[] getConfiguredContentTypes(ISourceViewer sourceViewer)
getConfiguredContentTypes
in class SourceViewerConfiguration
public IContentFormatter getContentFormatter(ISourceViewer sourceViewer)
getContentFormatter
in class SourceViewerConfiguration
public IInformationControlCreator getInformationControlCreator(ISourceViewer sourceViewer)
getInformationControlCreator
in class SourceViewerConfiguration
public IInformationPresenter getInformationPresenter(ISourceViewer sourceViewer)
getInformationPresenter
in class SourceViewerConfiguration
|
Eclipse JDT 2.0 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |