com.aptana.ide.editor.css.formatting
Class CSSAutoIndentStrategy

java.lang.Object
  extended by com.aptana.ide.editors.unified.UnifiedAutoIndentStrategy
      extended by com.aptana.ide.editor.css.formatting.CSSAutoIndentStrategy
All Implemented Interfaces:
IPreferenceClient, org.eclipse.jface.text.IAutoEditStrategy

public class CSSAutoIndentStrategy
extends UnifiedAutoIndentStrategy

Handles the indenting of lines in the CSS editor

Author:
Ingo Muschenetz

Field Summary
 
Fields inherited from class com.aptana.ide.editors.unified.UnifiedAutoIndentStrategy
configuration, context, sourceViewer
 
Constructor Summary
CSSAutoIndentStrategy(EditorFileContext context, org.eclipse.jface.text.source.SourceViewerConfiguration configuration, org.eclipse.jface.text.source.ISourceViewer sourceViewer)
          CSSAutoIndentStrategy
 
Method Summary
 void customizeDocumentCommand(org.eclipse.jface.text.IDocument document, org.eclipse.jface.text.DocumentCommand command)
           
protected  char[] getAutoInsertCharacters()
          getAutoInsertCharacters
protected  LexemeList getLexemeList()
          Creates a lexeme list
 org.eclipse.jface.preference.IPreferenceStore getPreferenceStore()
          Returns the current preference store
 
Methods inherited from class com.aptana.ide.editors.unified.UnifiedAutoIndentStrategy
autoTriggerAssist, canCloseBracket, canOverwriteBracket, closeBracket, findEndOfWhiteSpace, getAutoOverwriteCharacters, getIndentationAtOffset, getIndentationString, getIndentForCurrentLine, getIndentString, hideContentAssistPopup, indentAfterNewLine, indentAfterOpenBrace, isAutoInsertEnabled, isValidAutoInsertLocation, overwriteBracket, triggerContentAssistPopup, triggerContextAssistPopup
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CSSAutoIndentStrategy

public CSSAutoIndentStrategy(EditorFileContext context,
                             org.eclipse.jface.text.source.SourceViewerConfiguration configuration,
                             org.eclipse.jface.text.source.ISourceViewer sourceViewer)
CSSAutoIndentStrategy

Parameters:
context -
configuration -
sourceViewer -
Method Detail

customizeDocumentCommand

public void customizeDocumentCommand(org.eclipse.jface.text.IDocument document,
                                     org.eclipse.jface.text.DocumentCommand command)
Specified by:
customizeDocumentCommand in interface org.eclipse.jface.text.IAutoEditStrategy
Overrides:
customizeDocumentCommand in class UnifiedAutoIndentStrategy
See Also:
IAutoEditStrategy.customizeDocumentCommand(org.eclipse.jface.text.IDocument, org.eclipse.jface.text.DocumentCommand)

getPreferenceStore

public org.eclipse.jface.preference.IPreferenceStore getPreferenceStore()
Description copied from class: UnifiedAutoIndentStrategy
Returns the current preference store

Specified by:
getPreferenceStore in interface IPreferenceClient
Specified by:
getPreferenceStore in class UnifiedAutoIndentStrategy
Returns:
The current preference store, or null if not found
See Also:
UnifiedAutoIndentStrategy.getPreferenceStore()

getLexemeList

protected LexemeList getLexemeList()
Description copied from class: UnifiedAutoIndentStrategy
Creates a lexeme list

Specified by:
getLexemeList in class UnifiedAutoIndentStrategy
Returns:
LexemeList
See Also:
UnifiedAutoIndentStrategy.getLexemeList()

getAutoInsertCharacters

protected char[] getAutoInsertCharacters()
getAutoInsertCharacters

Overrides:
getAutoInsertCharacters in class UnifiedAutoIndentStrategy
Returns:
char[]