|
||||||||||
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.m2m.atl.adt.ui.text.AtlSourceViewerConfiguration
public class AtlSourceViewerConfiguration
This class bundles the whole configuration space of a source viewer. Instances of this class are passed to the configure method of ISourceViewer.
Field Summary |
---|
Fields inherited from class org.eclipse.ui.editors.text.TextSourceViewerConfiguration |
---|
fPreferenceStore |
Constructor Summary | |
---|---|
AtlSourceViewerConfiguration(AtlTextTools tools,
org.eclipse.ui.texteditor.ITextEditor editor)
Creates a new instance of the configurator. |
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.IAutoEditStrategy[] |
getAutoEditStrategies(org.eclipse.jface.text.source.ISourceViewer sourceViewer,
java.lang.String contentType)
|
AtlColorManager |
getColorManager()
Gets the color manager stored in the text tools. |
org.eclipse.jface.text.contentassist.IContentAssistProcessor |
getCompletionProcessor()
|
org.eclipse.jface.text.contentassist.IContentAssistant |
getContentAssistant(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)
|
protected org.eclipse.ui.texteditor.ITextEditor |
getEditor()
Returns the editor in which the configured viewer(s) will reside. |
protected java.util.Map |
getHyperlinkDetectorTargets(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.preference.IPreferenceStore |
getPreferenceStore()
Gets the preference fPreferenceeStore stored in the text tools. |
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)
|
org.eclipse.jface.text.ITextHover |
getTextHover(org.eclipse.jface.text.source.ISourceViewer sourceViewer,
java.lang.String contentType)
|
AtlTextTools |
getTextTools()
Gets the text tools associated to this configurator. |
void |
handlePropertyChangeEvent(org.eclipse.jface.util.PropertyChangeEvent event)
Adapts the behavior of the contained components to the change encoded in the given event. |
void |
setNewPreferenceStore(org.eclipse.jface.preference.IPreferenceStore preferenceStore)
Sets the preference fPreferenceeStore used by this configuration to initialize the individual bits and pieces to the given preference fPreferenceeStore. |
Methods inherited from class org.eclipse.ui.editors.text.TextSourceViewerConfiguration |
---|
computeStateMask, findLocalizedModifier, getConfiguredTextHoverStateMasks, getHyperlinkDetectors, getHyperlinkPresenter, getHyperlinkStateMask, getOverviewRulerAnnotationHover, getQuickAssistAssistant, getRegisteredHyperlinkDetectors, getTabWidth, getUndoManager, isShowInOverviewRuler, isShowInVerticalRuler, isShownInText |
Methods inherited from class org.eclipse.jface.text.source.SourceViewerConfiguration |
---|
getAutoIndentStrategy, getConfiguredContentTypes, getConfiguredDocumentPartitioning, getContentFormatter, getIndentPrefixesForTab, getInformationControlCreator, getInformationPresenter, getTextHover |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public AtlSourceViewerConfiguration(AtlTextTools tools, org.eclipse.ui.texteditor.ITextEditor editor)
editor
- the editor in which the configured viewer(s) will resideMethod Detail |
---|
public boolean affectsTextPresentation(org.eclipse.jface.util.PropertyChangeEvent event)
event
- the event to be investigated
true
if event causes a behavioral changepublic 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
SourceViewerConfiguration.getAutoEditStrategies(org.eclipse.jface.text.source.ISourceViewer,
java.lang.String)
public AtlColorManager getColorManager()
public org.eclipse.jface.text.contentassist.IContentAssistant getContentAssistant(org.eclipse.jface.text.source.ISourceViewer sourceViewer)
getContentAssistant
in class org.eclipse.jface.text.source.SourceViewerConfiguration
SourceViewerConfiguration.getContentAssistant(org.eclipse.jface.text.source.ISourceViewer)
public org.eclipse.jface.text.contentassist.IContentAssistProcessor getCompletionProcessor()
protected org.eclipse.ui.texteditor.ITextEditor getEditor()
public java.lang.String[] getIndentPrefixes(org.eclipse.jface.text.source.ISourceViewer sourceViewer, java.lang.String contentType)
getIndentPrefixes
in class org.eclipse.ui.editors.text.TextSourceViewerConfiguration
TextSourceViewerConfiguration.getIndentPrefixes(org.eclipse.jface.text.source.ISourceViewer,
java.lang.String)
public org.eclipse.jface.preference.IPreferenceStore getPreferenceStore()
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 AtlTextTools getTextTools()
public void handlePropertyChangeEvent(org.eclipse.jface.util.PropertyChangeEvent event)
event
- the event to which to adaptpublic void setNewPreferenceStore(org.eclipse.jface.preference.IPreferenceStore preferenceStore)
preferenceStore
- the preference fPreferenceeStore to initialize this configurationpublic org.eclipse.jface.text.source.IAnnotationHover getAnnotationHover(org.eclipse.jface.text.source.ISourceViewer sourceViewer)
getAnnotationHover
in class org.eclipse.ui.editors.text.TextSourceViewerConfiguration
TextSourceViewerConfiguration.getAnnotationHover(org.eclipse.jface.text.source.ISourceViewer)
public org.eclipse.jface.text.reconciler.IReconciler getReconciler(org.eclipse.jface.text.source.ISourceViewer sourceViewer)
getReconciler
in class org.eclipse.ui.editors.text.TextSourceViewerConfiguration
SourceViewerConfiguration.getReconciler(org.eclipse.jface.text.source.ISourceViewer)
protected java.util.Map getHyperlinkDetectorTargets(org.eclipse.jface.text.source.ISourceViewer sourceViewer)
getHyperlinkDetectorTargets
in class org.eclipse.ui.editors.text.TextSourceViewerConfiguration
TextSourceViewerConfiguration.getHyperlinkDetectorTargets(org.eclipse.jface.text.source.ISourceViewer)
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(org.eclipse.jface.text.source.ISourceViewer,
java.lang.String)
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
TextSourceViewerConfiguration.getTextHover(org.eclipse.jface.text.source.ISourceViewer,
java.lang.String)
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
org.eclipse.ui.editors.text.SourceViewerConfiguration#getDoubleClickStrategy(org.eclipse.jface.text.source.ISourceViewer,
java.lang.String)
|
Copyright 2007 IBM Corporation and others. All Rights Reserved. |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |