|
||||||||||
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.ui.editors.text.TextSourceViewerConfiguration
org.eclipse.cdt.internal.ui.text.CSourceViewerConfiguration
public class CSourceViewerConfiguration
Configuration for an SourceViewer
which shows C/C++ code.
Constructor Summary | |
---|---|
CSourceViewerConfiguration(IColorManager colorManager,
org.eclipse.jface.preference.IPreferenceStore preferenceStore,
org.eclipse.ui.texteditor.ITextEditor editor,
java.lang.String partitioning)
Creates a new C source viewer configuration for viewers in the given editor using the given preference store, the color manager and the specified document partitioning. |
Method Summary | |
---|---|
void |
adaptToPreferenceChange(org.eclipse.jface.util.PropertyChangeEvent event)
Adapts the behavior of the contained components to the change encoded in the given event. |
boolean |
affectsBehavior(org.eclipse.jface.util.PropertyChangeEvent event)
|
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.IAutoEditStrategy[] |
getAutoEditStrategies(org.eclipse.jface.text.source.ISourceViewer sourceViewer,
java.lang.String contentType)
|
java.lang.String[] |
getConfiguredContentTypes(org.eclipse.jface.text.source.ISourceViewer sourceViewer)
|
java.lang.String |
getConfiguredDocumentPartitioning(org.eclipse.jface.text.source.ISourceViewer sourceViewer)
|
int[] |
getConfiguredTextHoverStateMasks(org.eclipse.jface.text.source.ISourceViewer sourceViewer,
java.lang.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)
|
java.lang.String[] |
getDefaultPrefixes(org.eclipse.jface.text.source.ISourceViewer sourceViewer,
java.lang.String contentType)
|
org.eclipse.jface.text.ITextDoubleClickStrategy |
getDoubleClickStrategy(org.eclipse.jface.text.source.ISourceViewer sourceViewer,
java.lang.String contentType)
|
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)
Creates outline presenter. |
org.eclipse.jface.text.hyperlink.IHyperlinkDetector[] |
getHyperlinkDetectors(org.eclipse.jface.text.source.ISourceViewer sourceViewer)
|
java.lang.String[] |
getIndentPrefixes(org.eclipse.jface.text.source.ISourceViewer sourceViewer,
java.lang.String contentType)
|
org.eclipse.jface.text.IInformationControlCreator |
getInformationControlCreator(org.eclipse.jface.text.source.ISourceViewer sourceViewer)
|
org.eclipse.jface.text.IInformationControlCreator |
getInformationControlCreator(org.eclipse.jface.text.source.ISourceViewer sourceViewer,
boolean cutDown)
|
org.eclipse.jface.text.information.IInformationPresenter |
getInformationPresenter(org.eclipse.jface.text.source.ISourceViewer sourceViewer)
|
org.eclipse.jface.text.information.IInformationPresenter |
getOutlinePresenter(org.eclipse.jface.text.source.ISourceViewer sourceViewer)
Creates outline presenter. |
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)
|
int |
getTabWidth(org.eclipse.jface.text.source.ISourceViewer sourceViewer)
|
org.eclipse.jface.text.ITextHover |
getTextHover(org.eclipse.jface.text.source.ISourceViewer sourceViewer,
java.lang.String contentType)
|
org.eclipse.jface.text.ITextHover |
getTextHover(org.eclipse.jface.text.source.ISourceViewer sourceViewer,
java.lang.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. |
void |
resetScanners()
Reset cached language dependent scanners. |
Methods inherited from class org.eclipse.ui.editors.text.TextSourceViewerConfiguration |
---|
getHyperlinkPresenter, getHyperlinkStateMask, getOverviewRulerAnnotationHover, getUndoManager |
Methods inherited from class org.eclipse.jface.text.source.SourceViewerConfiguration |
---|
getAutoIndentStrategy, getQuickAssistAssistant |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public CSourceViewerConfiguration(IColorManager colorManager, org.eclipse.jface.preference.IPreferenceStore preferenceStore, org.eclipse.ui.texteditor.ITextEditor editor, java.lang.String partitioning)
Creates a C 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
C 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 org.eclipse.ui.texteditor.ITextEditor getEditor()
public org.eclipse.jface.text.information.IInformationPresenter getOutlinePresenter(org.eclipse.jface.text.source.ISourceViewer sourceViewer)
public org.eclipse.jface.text.information.IInformationPresenter getHierarchyPresenter(org.eclipse.jface.text.source.ISourceViewer sourceViewer)
public org.eclipse.jface.text.presentation.IPresentationReconciler getPresentationReconciler(org.eclipse.jface.text.source.ISourceViewer sourceViewer)
getPresentationReconciler
in class org.eclipse.jface.text.source.SourceViewerConfiguration
SourceViewerConfiguration.getPresentationReconciler(org.eclipse.jface.text.source.ISourceViewer)
public org.eclipse.jface.text.contentassist.IContentAssistant getContentAssistant(org.eclipse.jface.text.source.ISourceViewer sourceViewer)
getContentAssistant
in class org.eclipse.jface.text.source.SourceViewerConfiguration
public org.eclipse.jface.text.reconciler.IReconciler getReconciler(org.eclipse.jface.text.source.ISourceViewer sourceViewer)
getReconciler
in class org.eclipse.jface.text.source.SourceViewerConfiguration
public org.eclipse.jface.text.IAutoEditStrategy[] getAutoEditStrategies(org.eclipse.jface.text.source.ISourceViewer sourceViewer, java.lang.String contentType)
getAutoEditStrategies
in class org.eclipse.jface.text.source.SourceViewerConfiguration
public org.eclipse.jface.text.ITextDoubleClickStrategy getDoubleClickStrategy(org.eclipse.jface.text.source.ISourceViewer sourceViewer, java.lang.String contentType)
getDoubleClickStrategy
in class org.eclipse.jface.text.source.SourceViewerConfiguration
SourceViewerConfiguration.getDoubleClickStrategy(ISourceViewer, String)
public java.lang.String[] getDefaultPrefixes(org.eclipse.jface.text.source.ISourceViewer sourceViewer, java.lang.String contentType)
getDefaultPrefixes
in class org.eclipse.jface.text.source.SourceViewerConfiguration
SourceViewerConfiguration.getDefaultPrefixes(ISourceViewer, String)
public java.lang.String[] getIndentPrefixes(org.eclipse.jface.text.source.ISourceViewer sourceViewer, java.lang.String contentType)
getIndentPrefixes
in class org.eclipse.jface.text.source.SourceViewerConfiguration
public int getTabWidth(org.eclipse.jface.text.source.ISourceViewer sourceViewer)
getTabWidth
in class org.eclipse.ui.editors.text.TextSourceViewerConfiguration
public org.eclipse.jface.text.source.IAnnotationHover getAnnotationHover(org.eclipse.jface.text.source.ISourceViewer sourceViewer)
getAnnotationHover
in class org.eclipse.ui.editors.text.TextSourceViewerConfiguration
SourceViewerConfiguration.getAnnotationHover(ISourceViewer)
public int[] getConfiguredTextHoverStateMasks(org.eclipse.jface.text.source.ISourceViewer sourceViewer, java.lang.String contentType)
getConfiguredTextHoverStateMasks
in class org.eclipse.ui.editors.text.TextSourceViewerConfiguration
public org.eclipse.jface.text.ITextHover getTextHover(org.eclipse.jface.text.source.ISourceViewer sourceViewer, java.lang.String contentType, int stateMask)
getTextHover
in class org.eclipse.jface.text.source.SourceViewerConfiguration
public org.eclipse.jface.text.ITextHover getTextHover(org.eclipse.jface.text.source.ISourceViewer sourceViewer, java.lang.String contentType)
getTextHover
in class org.eclipse.ui.editors.text.TextSourceViewerConfiguration
public java.lang.String[] getConfiguredContentTypes(org.eclipse.jface.text.source.ISourceViewer sourceViewer)
getConfiguredContentTypes
in class org.eclipse.jface.text.source.SourceViewerConfiguration
SourceViewerConfiguration.getConfiguredContentTypes(ISourceViewer)
public org.eclipse.jface.text.formatter.IContentFormatter getContentFormatter(org.eclipse.jface.text.source.ISourceViewer sourceViewer)
getContentFormatter
in class org.eclipse.jface.text.source.SourceViewerConfiguration
SourceViewerConfiguration.getContentFormatter(ISourceViewer)
public boolean affectsBehavior(org.eclipse.jface.util.PropertyChangeEvent event)
public void adaptToPreferenceChange(org.eclipse.jface.util.PropertyChangeEvent event)
event
- the event to whch to adaptpublic org.eclipse.jface.text.IInformationControlCreator getInformationControlCreator(org.eclipse.jface.text.source.ISourceViewer sourceViewer)
getInformationControlCreator
in class org.eclipse.jface.text.source.SourceViewerConfiguration
public org.eclipse.jface.text.IInformationControlCreator getInformationControlCreator(org.eclipse.jface.text.source.ISourceViewer sourceViewer, boolean cutDown)
public org.eclipse.jface.text.information.IInformationPresenter getInformationPresenter(org.eclipse.jface.text.source.ISourceViewer sourceViewer)
getInformationPresenter
in class org.eclipse.jface.text.source.SourceViewerConfiguration
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 adaptCSourceViewerConfiguration(IColorManager, IPreferenceStore, ITextEditor, String)
public org.eclipse.jface.text.hyperlink.IHyperlinkDetector[] getHyperlinkDetectors(org.eclipse.jface.text.source.ISourceViewer sourceViewer)
getHyperlinkDetectors
in class org.eclipse.ui.editors.text.TextSourceViewerConfiguration
public java.lang.String getConfiguredDocumentPartitioning(org.eclipse.jface.text.source.ISourceViewer sourceViewer)
getConfiguredDocumentPartitioning
in class org.eclipse.jface.text.source.SourceViewerConfiguration
public void resetScanners()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |