Class DSLLexerTokenAndCharacterPairAwareStrategy
java.lang.Object
org.eclipse.jface.text.DefaultTextDoubleClickStrategy
org.eclipse.xtext.ui.editor.doubleClicking.AbstractWordAwareDoubleClickStrategy
org.eclipse.xtext.ui.editor.doubleClicking.LexerTokenAndCharacterPairAwareStrategy
de.gebit.integrity.ui.highlighting.DSLLexerTokenAndCharacterPairAwareStrategy
- All Implemented Interfaces:
org.eclipse.jface.text.ITextDoubleClickStrategy
public class DSLLexerTokenAndCharacterPairAwareStrategy
extends org.eclipse.xtext.ui.editor.doubleClicking.LexerTokenAndCharacterPairAwareStrategy
Custom implementation of
ITextDoubleClickStrategy. This strategy is basically a copy of the parent classes'
findWord method and the parents' parent findWord. The latter was copied as-is, because access to it is not possible
from a subclass of a subclass. The former was changed in one specific place to exclude documentation comments from
the "double-click selects the entire token content" rule that is usually used for non-comment stuff.- Author:
- Rene Schneider - initial API and implementation
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected org.eclipse.jface.text.IRegionfindWord(org.eclipse.jface.text.IDocument aDocument, int anOffset) Methods inherited from class org.eclipse.xtext.ui.editor.doubleClicking.LexerTokenAndCharacterPairAwareStrategy
findExtendedDoubleClickSelection, getCharacterPairMatcherMethods inherited from class org.eclipse.xtext.ui.editor.doubleClicking.AbstractWordAwareDoubleClickStrategy
createBreakIteratorMethods inherited from class org.eclipse.jface.text.DefaultTextDoubleClickStrategy
doubleClicked
-
Constructor Details
-
DSLLexerTokenAndCharacterPairAwareStrategy
public DSLLexerTokenAndCharacterPairAwareStrategy()
-
-
Method Details
-
findWord
protected org.eclipse.jface.text.IRegion findWord(org.eclipse.jface.text.IDocument aDocument, int anOffset) - Overrides:
findWordin classorg.eclipse.xtext.ui.editor.doubleClicking.LexerTokenAndCharacterPairAwareStrategy
-