|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.eclipse.jface.text.source.SourceViewerConfiguration
com.aptana.ide.editors.unified.UnifiedConfiguration
public class UnifiedConfiguration
UnifiedConfiguration
| Field Summary | |
|---|---|
static java.lang.String |
CLASS_ATTR
CLASS_ATTR |
protected org.eclipse.jface.preference.IPreferenceStore |
fPreferenceStore
The preference store used to initialize this configuration. |
static int |
HISTORY_BUFFER_SIZE
Default history buffer size if not set in preferences |
static java.lang.String |
NAME_ATTR
NAME_ATTR |
static java.lang.String |
UNIFIED_PARTITIONING
UNIFIED_PARTITIONING |
| Constructor Summary | |
|---|---|
UnifiedConfiguration(UnifiedEditor editor,
org.eclipse.jface.preference.IPreferenceStore preferenceStore)
Creates a text source viewer configuration and initializes it with the given preference store. |
|
| Method Summary | |
|---|---|
void |
dispose()
dispose |
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)
|
UnifiedBracketInserterManager |
getBracketInserterManager(org.eclipse.jface.text.source.ISourceViewer sourceViewer)
|
java.lang.String[] |
getConfiguredContentTypes(org.eclipse.jface.text.source.ISourceViewer sourceViewer)
|
java.lang.String |
getConfiguredDocumentPartitioning(org.eclipse.jface.text.source.ISourceViewer sourceViewer)
|
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)
|
org.eclipse.jface.text.hyperlink.IHyperlinkDetector[] |
getHyperlinkDetectors(org.eclipse.jface.text.source.ISourceViewer sourceViewer)
|
java.lang.String |
getIndent()
The current tab indent, expressed as spaces or a tab character |
java.lang.String[] |
getIndentPrefixes(org.eclipse.jface.text.source.ISourceViewer sourceViewer,
java.lang.String contentType)
this override sets the valid chars that can be at the start of an indent that will be tabbed to the right during a multiline tab indent |
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)
|
static org.eclipse.jface.text.IInformationControlCreator |
getInformationPresenterControlCreator()
getInformationPresenterControlCreator |
static java.lang.String |
getNewlineString()
getNewlineString |
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)
|
java.lang.String[] |
getSpacesIndexPrefix()
Returns the array of prefixes for use in indenting (where it is set to indent with spaces) |
UnifiedReconcilingStrategy |
getStrategy()
Gets the strategy for this configuration |
java.lang.String |
getTabAsSpaces()
The current tab indent, expressed as spaces |
java.lang.String[] |
getTabsIndexPrefix()
Returns the array of prefixes for use in indenting (where it is set to indent with tabs) |
int |
getTabWidth(org.eclipse.jface.text.source.ISourceViewer sourceViewer)
Returns the tab width for the particular source viewer |
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)
|
org.eclipse.jface.text.IUndoManager |
getUndoManager(org.eclipse.jface.text.source.ISourceViewer sourceViewer)
|
static boolean |
isNewlineString(java.lang.String string)
isNewlineString |
org.eclipse.jface.text.contentassist.IContentAssistant |
loadExtensionContentAssistant()
Loads and registers the first content assistnant contributed via extension point |
void |
setTabWidth(int tabWidth,
boolean useSpaces,
org.eclipse.jface.text.source.ISourceViewer sourceViewer)
Sets the current tab width, and whether to use tabs or space. |
boolean |
useSpacesAsTabs()
Use spaces instead of tabs |
| Methods inherited from class org.eclipse.jface.text.source.SourceViewerConfiguration |
|---|
getAutoIndentStrategy, getConfiguredTextHoverStateMasks, getContentFormatter, getHyperlinkPresenter, getHyperlinkStateMask, getIndentPrefixesForTab, getOverviewRulerAnnotationHover, getQuickAssistAssistant |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String CLASS_ATTR
public static final java.lang.String NAME_ATTR
public static final java.lang.String UNIFIED_PARTITIONING
public static final int HISTORY_BUFFER_SIZE
protected org.eclipse.jface.preference.IPreferenceStore fPreferenceStore
Note: protected since 3.1
| Constructor Detail |
|---|
public UnifiedConfiguration(UnifiedEditor editor,
org.eclipse.jface.preference.IPreferenceStore preferenceStore)
editor - preferenceStore - the preference store used to initialize this configuration| Method Detail |
|---|
public void dispose()
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.SourceViewerConfigurationSourceViewerConfiguration.getAutoEditStrategies(org.eclipse.jface.text.source.ISourceViewer,
java.lang.String)public java.lang.String[] getConfiguredContentTypes(org.eclipse.jface.text.source.ISourceViewer sourceViewer)
getConfiguredContentTypes in class org.eclipse.jface.text.source.SourceViewerConfigurationSourceViewerConfiguration.getConfiguredContentTypes(org.eclipse.jface.text.source.ISourceViewer)public java.lang.String getConfiguredDocumentPartitioning(org.eclipse.jface.text.source.ISourceViewer sourceViewer)
getConfiguredDocumentPartitioning in class org.eclipse.jface.text.source.SourceViewerConfigurationSourceViewerConfiguration.getConfiguredDocumentPartitioning(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.SourceViewerConfigurationSourceViewerConfiguration.getContentAssistant(org.eclipse.jface.text.source.ISourceViewer)public UnifiedBracketInserterManager getBracketInserterManager(org.eclipse.jface.text.source.ISourceViewer sourceViewer)
SourceViewerConfiguration.getContentAssistant(org.eclipse.jface.text.source.ISourceViewer)public org.eclipse.jface.text.IInformationControlCreator getInformationControlCreator(org.eclipse.jface.text.source.ISourceViewer sourceViewer)
getInformationControlCreator in class org.eclipse.jface.text.source.SourceViewerConfigurationSourceViewerConfiguration.getInformationControlCreator(org.eclipse.jface.text.source.ISourceViewer)public static org.eclipse.jface.text.IInformationControlCreator getInformationPresenterControlCreator()
public org.eclipse.jface.text.hyperlink.IHyperlinkDetector[] getHyperlinkDetectors(org.eclipse.jface.text.source.ISourceViewer sourceViewer)
getHyperlinkDetectors in class org.eclipse.jface.text.source.SourceViewerConfigurationSourceViewerConfiguration.getHyperlinkDetectors(org.eclipse.jface.text.source.ISourceViewer)public org.eclipse.jface.text.information.IInformationPresenter getInformationPresenter(org.eclipse.jface.text.source.ISourceViewer sourceViewer)
getInformationPresenter in class org.eclipse.jface.text.source.SourceViewerConfigurationSourceViewerConfiguration.getInformationPresenter(org.eclipse.jface.text.source.ISourceViewer)
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.SourceViewerConfigurationSourceViewerConfiguration.getDoubleClickStrategy(org.eclipse.jface.text.source.ISourceViewer,
java.lang.String)public org.eclipse.jface.text.presentation.IPresentationReconciler getPresentationReconciler(org.eclipse.jface.text.source.ISourceViewer sourceViewer)
getPresentationReconciler in class org.eclipse.jface.text.source.SourceViewerConfigurationSourceViewerConfiguration.getPresentationReconciler(org.eclipse.jface.text.source.ISourceViewer)
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.SourceViewerConfigurationSourceViewerConfiguration.getTextHover(org.eclipse.jface.text.source.ISourceViewer,
java.lang.String, int)
public org.eclipse.jface.text.ITextHover getTextHover(org.eclipse.jface.text.source.ISourceViewer sourceViewer,
java.lang.String contentType)
getTextHover in class org.eclipse.jface.text.source.SourceViewerConfigurationSourceViewerConfiguration.getTextHover(org.eclipse.jface.text.source.ISourceViewer,
java.lang.String)public org.eclipse.jface.text.source.IAnnotationHover getAnnotationHover(org.eclipse.jface.text.source.ISourceViewer sourceViewer)
getAnnotationHover in class org.eclipse.jface.text.source.SourceViewerConfigurationSourceViewerConfiguration.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.jface.text.source.SourceViewerConfigurationSourceViewerConfiguration.getReconciler(org.eclipse.jface.text.source.ISourceViewer)public static java.lang.String getNewlineString()
public static boolean isNewlineString(java.lang.String string)
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.SourceViewerConfigurationSourceViewerConfiguration.getDefaultPrefixes(org.eclipse.jface.text.source.ISourceViewer,
java.lang.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.SourceViewerConfigurationSourceViewerConfiguration.getIndentPrefixes(org.eclipse.jface.text.source.ISourceViewer,
java.lang.String)public java.lang.String[] getSpacesIndexPrefix()
public java.lang.String[] getTabsIndexPrefix()
public int getTabWidth(org.eclipse.jface.text.source.ISourceViewer sourceViewer)
getTabWidth in class org.eclipse.jface.text.source.SourceViewerConfigurationsourceViewer - The source viewer
public boolean useSpacesAsTabs()
public java.lang.String getTabAsSpaces()
public java.lang.String getIndent()
public void setTabWidth(int tabWidth,
boolean useSpaces,
org.eclipse.jface.text.source.ISourceViewer sourceViewer)
tabWidth - The number of "spaces" to use for a tab.useSpaces - Insert spaces instead of tabssourceViewer - The current source viewerpublic org.eclipse.jface.text.IUndoManager getUndoManager(org.eclipse.jface.text.source.ISourceViewer sourceViewer)
getUndoManager in class org.eclipse.jface.text.source.SourceViewerConfigurationSourceViewerConfiguration.getUndoManager(org.eclipse.jface.text.source.ISourceViewer)public UnifiedReconcilingStrategy getStrategy()
public org.eclipse.jface.text.contentassist.IContentAssistant loadExtensionContentAssistant()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||