org.eclipse.jface.text.rules.RuleBasedPartitionScanner Java Examples
The following examples show how to use
org.eclipse.jface.text.rules.RuleBasedPartitionScanner.
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: GroovyExpressionPartitioner.java From bonita-studio with GNU General Public License v2.0 | 5 votes |
private static IPartitionTokenScanner createDefaultScanner() { final IToken string = new Token(PatternExpressionViewer.GROOVY_EXPRESSION_CONTENT_TYPE); final RuleBasedPartitionScanner scanner = new RuleBasedPartitionScanner(); scanner.setPredicateRules(new IPredicateRule[] { new MultiLineRule(GROOVY_START_TAG, GROOVY_END_TAG, string) }); return scanner; }
Example #2
Source File: N4JSStackTraceConsole.java From n4js with Eclipse Public License 1.0 | 4 votes |
public N4JSStackTraceConsolePartitioner() { super(new RuleBasedPartitionScanner(), null); getDocument().setDocumentPartitioner(this); }