com.aptana.ide.editor.html
Class HTMLContributor

java.lang.Object
  extended by com.aptana.ide.editors.unified.BaseContributor
      extended by com.aptana.ide.editor.html.HTMLContributor
All Implemented Interfaces:
IUnifiedEditorContributor

public class HTMLContributor
extends BaseContributor

Author:
Robin Debreuil

Field Summary
protected  IUnifiedEditorContributor[] childContributors
          _childContributors
 
Fields inherited from class com.aptana.ide.editors.unified.BaseContributor
parent
 
Constructor Summary
HTMLContributor()
          HTMLContributor
HTMLContributor(java.lang.String mimeType)
          HTMLContributer
 
Method Summary
 void dispose()
          Disposes the contributor
 IUnifiedEditorContributor[] getChildContributors()
          Gets the language contributors for all the various languages in the editor
 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
 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
 UnifiedReconcilingStrategy getReconcilingStrategy()
          Gets the ReconcilingStrategy that is used by the various languages in the editor
 boolean isAutoActivateContentAssist()
          Should content assist auto activate
 
Methods inherited from class com.aptana.ide.editors.unified.BaseContributor
configLocalPresentationReconciler, configPresentationReconciler, findChildContributor, getAutoEditStrategies, getBracketInserter, getContentAssistProcessor, getContentTypes, getDoubleClickStrategy, getFileContext, getIndentPrefixes, getIndentString, getLocalContentType, getLocalIndentPrefixes, getParentConfiguration, getTextHover, isValidActivationCharacter, isValidIdentifier, setAllIndentPrefixes, setFileContext, setIndentPrefixes, setLocalIndentPrefixes, setParent, setParentConfiguration
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

childContributors

protected IUnifiedEditorContributor[] childContributors
_childContributors

Constructor Detail

HTMLContributor

public HTMLContributor()
HTMLContributor


HTMLContributor

public HTMLContributor(java.lang.String mimeType)
HTMLContributer

Parameters:
mimeType -
Method Detail

getChildContributors

public IUnifiedEditorContributor[] getChildContributors()
Description copied from interface: IUnifiedEditorContributor
Gets the language contributors for all the various languages in the editor

Specified by:
getChildContributors in interface IUnifiedEditorContributor
Overrides:
getChildContributors in class BaseContributor
Returns:
IUnifiedEditorContributor[]
See Also:
IUnifiedEditorContributor.getChildContributors()

getLocalTextHover

public 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

Specified by:
getLocalTextHover in interface IUnifiedEditorContributor
Overrides:
getLocalTextHover in class BaseContributor
Parameters:
sourceViewer - The current ISourceViewer
contentType - The current content type (generally a mine type such as text/html)
Returns:
A new TextHover class, or null if not relevant.

getLocalAutoEditStrategies

public org.eclipse.jface.text.IAutoEditStrategy[] getLocalAutoEditStrategies(org.eclipse.jface.text.source.ISourceViewer sourceViewer,
                                                                             java.lang.String contentType)
Description copied from interface: IUnifiedEditorContributor
Gets the AutoEditStrategies for the local language type

Specified by:
getLocalAutoEditStrategies in interface IUnifiedEditorContributor
Overrides:
getLocalAutoEditStrategies in class BaseContributor
Returns:
IAutoEditStrategy[]
See Also:
BaseContributor.getLocalAutoEditStrategies(org.eclipse.jface.text.source.ISourceViewer, java.lang.String)

getLocalContentAssistProcessor

public org.eclipse.jface.text.contentassist.IContentAssistProcessor getLocalContentAssistProcessor(org.eclipse.jface.text.source.ISourceViewer sourceViewer,
                                                                                                   java.lang.String contentType)
Description copied from interface: IUnifiedEditorContributor
Gets the ContentAssistProcessor for the local language type

Specified by:
getLocalContentAssistProcessor in interface IUnifiedEditorContributor
Overrides:
getLocalContentAssistProcessor in class BaseContributor
Returns:
IContentAssistProcessor
See Also:
IUnifiedEditorContributor.getLocalContentAssistProcessor(org.eclipse.jface.text.source.ISourceViewer, java.lang.String)

getReconcilingStrategy

public UnifiedReconcilingStrategy getReconcilingStrategy()
Description copied from interface: IUnifiedEditorContributor
Gets the ReconcilingStrategy that is used by the various languages in the editor

Returns:
UnifiedReconcilingStrategy
See Also:
IUnifiedEditorContributor.getReconcilingStrategy()

dispose

public void dispose()
Description copied from interface: IUnifiedEditorContributor
Disposes the contributor

Specified by:
dispose in interface IUnifiedEditorContributor
Overrides:
dispose in class BaseContributor
See Also:
IUnifiedEditorContributor.dispose()

isAutoActivateContentAssist

public boolean isAutoActivateContentAssist()
Description copied from interface: IUnifiedEditorContributor
Should content assist auto activate

Specified by:
isAutoActivateContentAssist in interface IUnifiedEditorContributor
Overrides:
isAutoActivateContentAssist in class BaseContributor
Returns:
true to show, false to not
See Also:
BaseContributor.isAutoActivateContentAssist()

getLocalBracketInserter

public IUnifiedBracketInserter getLocalBracketInserter(org.eclipse.jface.text.source.ISourceViewer sourceViewer,
                                                       java.lang.String contentType)
Description copied from interface: IUnifiedEditorContributor
Gets the local bracket isnerter for all the various languages in the editor

Specified by:
getLocalBracketInserter in interface IUnifiedEditorContributor
Overrides:
getLocalBracketInserter in class BaseContributor
Returns:
IUnifiedBracketInserter
See Also:
IUnifiedEditorContributor.getLocalBracketInserter(ISourceViewer, String)