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

java.lang.Object
  extended by com.aptana.ide.editors.formatting.UnifiedBracketInserterBase
      extended by com.aptana.ide.editors.formatting.UnifiedBracketInserter
          extended by com.aptana.ide.editor.css.formatting.CSSBracketInserter
All Implemented Interfaces:
IUnifiedBracketInserter, java.util.EventListener, org.eclipse.jface.text.link.ILinkedModeListener, org.eclipse.swt.custom.VerifyKeyListener, org.eclipse.swt.internal.SWTEventListener

public class CSSBracketInserter
extends UnifiedBracketInserter
implements org.eclipse.swt.custom.VerifyKeyListener

HTMLBracketInserter


Field Summary
 
Fields inherited from class com.aptana.ide.editors.formatting.UnifiedBracketInserter
context, sourceViewer
 
Fields inherited from class com.aptana.ide.editors.formatting.UnifiedBracketInserterBase
fCloseAngularBrackets, fCloseBrackets, fCloseStrings
 
Fields inherited from interface org.eclipse.jface.text.link.ILinkedModeListener
EXIT_ALL, EXTERNAL_MODIFICATION, NONE, SELECT, UPDATE_CARET
 
Constructor Summary
CSSBracketInserter(org.eclipse.jface.text.source.ISourceViewer sourceViewer, IFileService context)
          Controls the insertion and deletion of quotes in CSS.
 
Method Summary
protected  char[] getAutoInsertCharacters()
          getAutoInsertCharacters
protected  org.eclipse.jface.preference.IPreferenceStore getPreferenceStore()
          getPreferenceStore
protected  boolean isValidAutoInsertLocation(char character, Lexeme previous, Lexeme next)
          Is this location a valid place to inserts the specified character?
 
Methods inherited from class com.aptana.ide.editors.formatting.UnifiedBracketInserter
autoTriggerAssist, getLexemeList, isAutoInsertEnabled, isValidAutoInsertLocation, triggerAssistClose, triggerContentAssistPopup, triggerContextAssistPopup
 
Methods inherited from class com.aptana.ide.editors.formatting.UnifiedBracketInserterBase
doEvent, getInsertMode, getPeerCharacter, hasPeerCharacter, isAngularIntroducer, isStringBalanced, left, resume, setCloseAngularBracketsEnabled, setCloseBracketsEnabled, setCloseStringsEnabled, suspend, triggerAssistPopup, verifyKey
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.eclipse.swt.custom.VerifyKeyListener
verifyKey
 

Constructor Detail

CSSBracketInserter

public CSSBracketInserter(org.eclipse.jface.text.source.ISourceViewer sourceViewer,
                          IFileService context)
Controls the insertion and deletion of quotes in CSS.

Parameters:
sourceViewer -
context -
Method Detail

isValidAutoInsertLocation

protected boolean isValidAutoInsertLocation(char character,
                                            Lexeme previous,
                                            Lexeme next)
Description copied from class: UnifiedBracketInserter
Is this location a valid place to inserts the specified character?

Overrides:
isValidAutoInsertLocation in class UnifiedBracketInserter
Parameters:
character - The character inserted
previous - The previous lexeme
next - The next lexeme
Returns:
See Also:
UnifiedBracketInserterBase.isValidAutoInsertLocation(char, int, int)

getPreferenceStore

protected org.eclipse.jface.preference.IPreferenceStore getPreferenceStore()
getPreferenceStore

Specified by:
getPreferenceStore in class UnifiedBracketInserter
Returns:

getAutoInsertCharacters

protected char[] getAutoInsertCharacters()
getAutoInsertCharacters

Overrides:
getAutoInsertCharacters in class UnifiedBracketInserterBase
Returns:
char[]