org.eclipse.jface.text.source.DefaultCharacterPairMatcher Java Examples
The following examples show how to use
org.eclipse.jface.text.source.DefaultCharacterPairMatcher.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: LanguageConfigurationCharacterPairMatcher.java From tm4e with Eclipse Public License 1.0 | 5 votes |
@Override public boolean isRecomputationOfEnclosingPairRequired(IDocument document, IRegion currentSelection, IRegion previousSelection) { DefaultCharacterPairMatcher matcher = getMatcher(document); return matcher != null ? matcher.isRecomputationOfEnclosingPairRequired(document, currentSelection, previousSelection) : false; }
Example #2
Source File: LanguageConfigurationCharacterPairMatcher.java From tm4e with Eclipse Public License 1.0 | 4 votes |
@Override public IRegion match(IDocument document, int offset) { DefaultCharacterPairMatcher matcher = getMatcher(document); return matcher != null ? matcher.match(document, offset) : null; }
Example #3
Source File: LanguageConfigurationCharacterPairMatcher.java From tm4e with Eclipse Public License 1.0 | 4 votes |
@Override public IRegion match(IDocument document, int offset, int length) { DefaultCharacterPairMatcher matcher = getMatcher(document); return matcher != null ? matcher.match(document, offset, length) : null; }
Example #4
Source File: LanguageConfigurationCharacterPairMatcher.java From tm4e with Eclipse Public License 1.0 | 4 votes |
@Override public IRegion findEnclosingPeerCharacters(IDocument document, int offset, int length) { DefaultCharacterPairMatcher matcher = getMatcher(document); return matcher != null ? matcher.findEnclosingPeerCharacters(document, offset, length) : null; }
Example #5
Source File: LanguageConfigurationCharacterPairMatcher.java From tm4e with Eclipse Public License 1.0 | 4 votes |
@Override public boolean isMatchedChar(char ch) { DefaultCharacterPairMatcher matcher = getMatcher(document); return matcher != null ? matcher.isMatchedChar(ch) : false; }
Example #6
Source File: LanguageConfigurationCharacterPairMatcher.java From tm4e with Eclipse Public License 1.0 | 4 votes |
@Override public boolean isMatchedChar(char ch, IDocument document, int offset) { DefaultCharacterPairMatcher matcher = getMatcher(document); return matcher != null ? matcher.isMatchedChar(ch, document, offset) : false; }
Example #7
Source File: XtextUiModule.java From xtext-eclipse with Eclipse Public License 2.0 | 4 votes |
@Override public ICharacterPairMatcher bindICharacterPairMatcher() { return new DefaultCharacterPairMatcher(new char[] { ':', ';', '{', '}', '(', ')', '[', ']' }); }
Example #8
Source File: BracePairMatcher.java From xtext-eclipse with Eclipse Public License 2.0 | 4 votes |
@Inject public void setBracePairProvider(IBracePairProvider bracePairProvider) { List<Character> chars = getChars(bracePairProvider); characterPairMatcher = new DefaultCharacterPairMatcher(((char[])Conversions.unwrapArray(chars, char.class))); }