com.aptana.ide.editor.html.formatting
Class HTMLBracketInserter
java.lang.Object
com.aptana.ide.editors.formatting.UnifiedBracketInserterBase
com.aptana.ide.editors.formatting.UnifiedBracketInserter
com.aptana.ide.editor.html.formatting.HTMLBracketInserter
- 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 HTMLBracketInserter
- extends UnifiedBracketInserter
HTMLBracketInserter
| Fields inherited from interface org.eclipse.jface.text.link.ILinkedModeListener |
EXIT_ALL, EXTERNAL_MODIFICATION, NONE, SELECT, UPDATE_CARET |
|
Constructor Summary |
HTMLBracketInserter(org.eclipse.jface.text.source.ISourceViewer sourceViewer,
IFileService context)
Controls the insertion and deletion of quotes in HTML. |
| Methods inherited from class com.aptana.ide.editors.formatting.UnifiedBracketInserterBase |
doEvent, getInsertMode, getPeerCharacter, hasPeerCharacter, isAngularIntroducer, isStringBalanced, left, resume, setCloseAngularBracketsEnabled, setCloseBracketsEnabled, setCloseStringsEnabled, suspend, 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 |
HTMLBracketInserter
public HTMLBracketInserter(org.eclipse.jface.text.source.ISourceViewer sourceViewer,
IFileService context)
- Controls the insertion and deletion of quotes in HTML.
- Parameters:
sourceViewer - context - configuration -
getLanguageService
protected IFileLanguageService getLanguageService()
getPreferenceStore
protected org.eclipse.jface.preference.IPreferenceStore getPreferenceStore()
- getPreferenceStore
- Specified by:
getPreferenceStore in class UnifiedBracketInserter
- Returns:
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 insertedprevious - The previous lexemenext - The next lexeme
- Returns:
- See Also:
UnifiedBracketInserter.isValidAutoInsertLocation(char, int, int)
getAutoInsertCharacters
protected char[] getAutoInsertCharacters()
- getAutoInsertCharacters
- Overrides:
getAutoInsertCharacters in class UnifiedBracketInserterBase
- Returns:
- char[]
triggerAssistPopup
protected void triggerAssistPopup(org.eclipse.swt.events.VerifyEvent event)
- triggerAssistPopup
- Overrides:
triggerAssistPopup in class UnifiedBracketInserterBase