|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.aptana.ide.editors.unified.BaseContributor
public abstract class BaseContributor
BaseContributor
| Field Summary | |
|---|---|
protected IUnifiedEditorContributor |
parent
parent |
| Constructor Summary | |
|---|---|
protected |
BaseContributor(java.lang.String language)
Creates a new base contributor with a language type. |
| Method Summary | |
|---|---|
void |
configLocalPresentationReconciler(org.eclipse.jface.text.presentation.PresentationReconciler reconciler)
configLocalPresentationReconciler |
void |
configPresentationReconciler(org.eclipse.jface.text.presentation.PresentationReconciler reconciler)
Configures the PresentationReconcilers for all the various languages in the editor |
void |
dispose()
Disposes the contributor |
IUnifiedEditorContributor |
findChildContributor(java.lang.String contentType)
Gets the language contributors for the specified mime type |
org.eclipse.jface.text.IAutoEditStrategy[] |
getAutoEditStrategies(org.eclipse.jface.text.source.ISourceViewer sourceViewer,
java.lang.String contentType)
Gets the AutoEditStrategies for all the various languages in the editor |
IUnifiedBracketInserter |
getBracketInserter(org.eclipse.jface.text.source.ISourceViewer sourceViewer,
java.lang.String contentType)
Gets the bracket inserter for all the various languages in the editor |
IUnifiedEditorContributor[] |
getChildContributors()
Gets the language contributors for all the various languages in the editor |
org.eclipse.jface.text.contentassist.IContentAssistProcessor |
getContentAssistProcessor(org.eclipse.jface.text.source.ISourceViewer sourceViewer,
java.lang.String contentType)
Gets the ContentAssistProcessor for all the various languages in the editor |
java.lang.String[] |
getContentTypes()
Gets the MimeTypes for all the languages that exist in the editor |
org.eclipse.jface.text.ITextDoubleClickStrategy |
getDoubleClickStrategy(org.eclipse.jface.text.source.ISourceViewer sourceViewer,
java.lang.String contentType)
Sets the default double-click strategy |
EditorFileContext |
getFileContext()
Gets the FileContext for the editor |
java.lang.String[] |
getIndentPrefixes(org.eclipse.jface.text.source.ISourceViewer sourceViewer,
java.lang.String contentType)
This is for the way eclipse handles things like auto indent and multi line tabbing. |
java.lang.String |
getIndentString(org.eclipse.jface.text.source.ISourceViewer sourceViewer,
java.lang.String contentType)
A helper method that returns the indent string that should be used to prefix lines. |
org.eclipse.jface.text.IAutoEditStrategy[] |
getLocalAutoEditStrategies(org.eclipse.jface.text.source.ISourceViewer sourceViewer,
java.lang.String contentType)
Gets the AutoEditStrategies for the local language type |
IUnifiedBracketInserter |
getLocalBracketInserter(org.eclipse.jface.text.source.ISourceViewer sourceViewer,
java.lang.String contentType)
Gets the local bracket isnerter for all the various languages in the editor |
org.eclipse.jface.text.contentassist.IContentAssistProcessor |
getLocalContentAssistProcessor(org.eclipse.jface.text.source.ISourceViewer sourceViewer,
java.lang.String contentType)
Gets the ContentAssistProcessor for the local language type |
java.lang.String |
getLocalContentType()
Returns the language specified in the BaseContributor(String language) constructor. |
protected java.lang.String[] |
getLocalIndentPrefixes()
getLocalIndentPrefixes |
org.eclipse.jface.text.ITextHover |
getLocalTextHover(org.eclipse.jface.text.source.ISourceViewer sourceViewer,
java.lang.String contentType)
Returns an instance of the TextHover class for the specified content type |
org.eclipse.jface.text.source.SourceViewerConfiguration |
getParentConfiguration()
Gets the Parent SourceViewerConfiguration |
org.eclipse.jface.text.ITextHover |
getTextHover(org.eclipse.jface.text.source.ISourceViewer sourceViewer,
java.lang.String contentType)
Gets the text hover for the given content type |
boolean |
isAutoActivateContentAssist()
Should content assist auto activate |
boolean |
isValidActivationCharacter(char c,
int keyCode)
isValidActivationCharacter |
boolean |
isValidIdentifier(char c,
int keyCode)
isValidIdentifier |
void |
setAllIndentPrefixes(java.lang.String[] prefixes,
org.eclipse.jface.text.source.ISourceViewer sourceViewer)
Sets index prefixes for all lanugages, overriding any current settings |
void |
setFileContext(EditorFileContext fileContext)
Sets the current language service |
void |
setIndentPrefixes(java.lang.String[] prefixes,
org.eclipse.jface.text.source.ISourceViewer sourceViewer,
java.lang.String contentType)
The indent strings for a language, use this method to change the defaults at runtime for a specific language in an editor. |
protected void |
setLocalIndentPrefixes(java.lang.String[] prefixes)
setLocalIndentPrefixes |
void |
setParent(IUnifiedEditorContributor parent)
Sets the parent contributor |
void |
setParentConfiguration(org.eclipse.jface.text.source.SourceViewerConfiguration parentConfiguration)
Sets the parent configuration. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface com.aptana.ide.editors.unified.IUnifiedEditorContributor |
|---|
getReconcilingStrategy |
| Field Detail |
|---|
protected IUnifiedEditorContributor parent
| Constructor Detail |
|---|
protected BaseContributor(java.lang.String language)
language - -
mime type| Method Detail |
|---|
public void dispose()
IUnifiedEditorContributor
dispose in interface IUnifiedEditorContributorIUnifiedEditorContributor.dispose()public boolean isAutoActivateContentAssist()
IUnifiedEditorContributor
isAutoActivateContentAssist in interface IUnifiedEditorContributorIUnifiedEditorContributor.isAutoActivateContentAssist()public java.lang.String getLocalContentType()
getLocalContentType in interface IUnifiedEditorContributorIUnifiedEditorContributor.getLocalContentType()
public java.lang.String[] getIndentPrefixes(org.eclipse.jface.text.source.ISourceViewer sourceViewer,
java.lang.String contentType)
IUnifiedEditorContributor
getIndentPrefixes in interface IUnifiedEditorContributorIUnifiedEditorContributor.getIndentPrefixes(org.eclipse.jface.text.source.ISourceViewer,
java.lang.String)
public java.lang.String getIndentString(org.eclipse.jface.text.source.ISourceViewer sourceViewer,
java.lang.String contentType)
IUnifiedEditorContributor
getIndentString in interface IUnifiedEditorContributorIUnifiedEditorContributor.getIndentString(org.eclipse.jface.text.source.ISourceViewer,
java.lang.String)protected java.lang.String[] getLocalIndentPrefixes()
protected void setLocalIndentPrefixes(java.lang.String[] prefixes)
prefixes -
public void setIndentPrefixes(java.lang.String[] prefixes,
org.eclipse.jface.text.source.ISourceViewer sourceViewer,
java.lang.String contentType)
IUnifiedEditorContributor
setIndentPrefixes in interface IUnifiedEditorContributorIUnifiedEditorContributor.setIndentPrefixes(java.lang.String[],
org.eclipse.jface.text.source.ISourceViewer, java.lang.String)
public void setAllIndentPrefixes(java.lang.String[] prefixes,
org.eclipse.jface.text.source.ISourceViewer sourceViewer)
setAllIndentPrefixes in interface IUnifiedEditorContributorprefixes - sourceViewer - public IUnifiedEditorContributor[] getChildContributors()
IUnifiedEditorContributor
getChildContributors in interface IUnifiedEditorContributorIUnifiedEditorContributor.getChildContributors()public IUnifiedEditorContributor findChildContributor(java.lang.String contentType)
IUnifiedEditorContributor
findChildContributor in interface IUnifiedEditorContributorIUnifiedEditorContributor.findChildContributor(java.lang.String)public void configLocalPresentationReconciler(org.eclipse.jface.text.presentation.PresentationReconciler reconciler)
reconciler -
public org.eclipse.jface.text.IAutoEditStrategy[] getLocalAutoEditStrategies(org.eclipse.jface.text.source.ISourceViewer sourceViewer,
java.lang.String contentType)
IUnifiedEditorContributor
getLocalAutoEditStrategies in interface IUnifiedEditorContributorIUnifiedEditorContributor.getLocalAutoEditStrategies(org.eclipse.jface.text.source.ISourceViewer,
java.lang.String)
public org.eclipse.jface.text.contentassist.IContentAssistProcessor getLocalContentAssistProcessor(org.eclipse.jface.text.source.ISourceViewer sourceViewer,
java.lang.String contentType)
IUnifiedEditorContributor
getLocalContentAssistProcessor in interface IUnifiedEditorContributorIUnifiedEditorContributor.getLocalContentAssistProcessor(org.eclipse.jface.text.source.ISourceViewer,
java.lang.String)public final void configPresentationReconciler(org.eclipse.jface.text.presentation.PresentationReconciler reconciler)
IUnifiedEditorContributor
configPresentationReconciler in interface IUnifiedEditorContributorIUnifiedEditorContributor.configPresentationReconciler(org.eclipse.jface.text.presentation.PresentationReconciler)public final java.lang.String[] getContentTypes()
IUnifiedEditorContributor
getContentTypes in interface IUnifiedEditorContributorIUnifiedEditorContributor.getContentTypes()
public final org.eclipse.jface.text.contentassist.IContentAssistProcessor getContentAssistProcessor(org.eclipse.jface.text.source.ISourceViewer sourceViewer,
java.lang.String contentType)
IUnifiedEditorContributor
getContentAssistProcessor in interface IUnifiedEditorContributorIUnifiedEditorContributor.getContentAssistProcessor(org.eclipse.jface.text.source.ISourceViewer,
java.lang.String)
public final IUnifiedBracketInserter getBracketInserter(org.eclipse.jface.text.source.ISourceViewer sourceViewer,
java.lang.String contentType)
IUnifiedEditorContributor
getBracketInserter in interface IUnifiedEditorContributorIUnifiedEditorContributor.getBracketInserter(org.eclipse.jface.text.source.ISourceViewer,
java.lang.String)
public boolean isValidIdentifier(char c,
int keyCode)
isValidIdentifier in interface IUnifiedEditorContributorc - keyCode -
public boolean isValidActivationCharacter(char c,
int keyCode)
isValidActivationCharacter in interface IUnifiedEditorContributorc - keyCode -
public final org.eclipse.jface.text.ITextHover getTextHover(org.eclipse.jface.text.source.ISourceViewer sourceViewer,
java.lang.String contentType)
IUnifiedEditorContributor
getTextHover in interface IUnifiedEditorContributorIUnifiedEditorContributor.getTextHover(org.eclipse.jface.text.source.ISourceViewer,
java.lang.String)
public final org.eclipse.jface.text.IAutoEditStrategy[] getAutoEditStrategies(org.eclipse.jface.text.source.ISourceViewer sourceViewer,
java.lang.String contentType)
IUnifiedEditorContributor
getAutoEditStrategies in interface IUnifiedEditorContributorIUnifiedEditorContributor.getAutoEditStrategies(org.eclipse.jface.text.source.ISourceViewer,
java.lang.String)public final EditorFileContext getFileContext()
IUnifiedEditorContributor
getFileContext in interface IUnifiedEditorContributorIUnifiedEditorContributor.getFileContext()public void setFileContext(EditorFileContext fileContext)
setFileContext in interface IUnifiedEditorContributorfileContext - public final void setParent(IUnifiedEditorContributor parent)
IUnifiedEditorContributor
setParent in interface IUnifiedEditorContributorIUnifiedEditorContributor.setParent(com.aptana.ide.editors.unified.IUnifiedEditorContributor)
public org.eclipse.jface.text.ITextHover getLocalTextHover(org.eclipse.jface.text.source.ISourceViewer sourceViewer,
java.lang.String contentType)
getLocalTextHover in interface IUnifiedEditorContributorsourceViewer - The current ISourceViewercontentType - The current content type (generally a mine type such as text/html)
public org.eclipse.jface.text.source.SourceViewerConfiguration getParentConfiguration()
IUnifiedEditorContributor
getParentConfiguration in interface IUnifiedEditorContributorIUnifiedEditorContributor.getParentConfiguration()public void setParentConfiguration(org.eclipse.jface.text.source.SourceViewerConfiguration parentConfiguration)
IUnifiedEditorContributor
setParentConfiguration in interface IUnifiedEditorContributorIUnifiedEditorContributor.setParentConfiguration(org.eclipse.jface.text.source.SourceViewerConfiguration)
public org.eclipse.jface.text.ITextDoubleClickStrategy getDoubleClickStrategy(org.eclipse.jface.text.source.ISourceViewer sourceViewer,
java.lang.String contentType)
IUnifiedEditorContributor
getDoubleClickStrategy in interface IUnifiedEditorContributorIUnifiedEditorContributor.getDoubleClickStrategy(ISourceViewer, String)
public IUnifiedBracketInserter getLocalBracketInserter(org.eclipse.jface.text.source.ISourceViewer sourceViewer,
java.lang.String contentType)
IUnifiedEditorContributor
getLocalBracketInserter in interface IUnifiedEditorContributorIUnifiedEditorContributor.getLocalBracketInserter(ISourceViewer, String)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||