本文整理汇总了Java中org.eclipse.jface.text.rules.IPartitionTokenScanner类的典型用法代码示例。如果您正苦于以下问题:Java IPartitionTokenScanner类的具体用法?Java IPartitionTokenScanner怎么用?Java IPartitionTokenScanner使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
IPartitionTokenScanner类属于org.eclipse.jface.text.rules包,在下文中一共展示了IPartitionTokenScanner类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: createKspPartitionScanner
import org.eclipse.jface.text.rules.IPartitionTokenScanner; //导入依赖的package包/类
private IPartitionTokenScanner createKspPartitionScanner() {
RuleBasedPartitionScanner scanner = new RuleBasedPartitionScanner();
scanner.setPredicateRules(new IPredicateRule[] {
/* String entre double quote. */
new PatternRule("\"", "\"", new Token(KspRegionType.STRING.getContentType()), '\\', false),
/* Commentaire multi-lignes */
new PatternRule("/*", "*/", new Token(KspRegionType.COMMENT.getContentType()), '\\', false),
/* Commentaire fin de ligne */
new EndOfLineRule("//", new Token(KspRegionType.COMMENT.getContentType())) });
return scanner;
}
示例2: getTLAPartitionScanner
import org.eclipse.jface.text.rules.IPartitionTokenScanner; //导入依赖的package包/类
/**
* @return
*/
public IPartitionTokenScanner getTLAPartitionScanner()
{
if (partitionTokenScanner == null)
{
partitionTokenScanner = new TLAPartitionScanner();
}
return partitionTokenScanner;
}
示例3: createPartitioner
import org.eclipse.jface.text.rules.IPartitionTokenScanner; //导入依赖的package包/类
private IDocumentPartitioner createPartitioner() {
IPartitionTokenScanner scanner = new GlslPartitionScanner();
IDocumentPartitioner partioner = new GlslDebugPartitioner(
scanner,
GlslPartitionScanner.CONTENT_TYPES
);
return partioner;
}
示例4: ExtendedFastPartitioner
import org.eclipse.jface.text.rules.IPartitionTokenScanner; //导入依赖的package包/类
/**
* @param scanner
* @param legalContentTypes
*/
public ExtendedFastPartitioner(IPartitionTokenScanner scanner, String[] legalContentTypes) {
super(scanner, legalContentTypes);
this.legalContentTypes = new HashSet<String>(legalContentTypes.length);
for (String contentType : legalContentTypes) {
this.legalContentTypes.add(contentType);
}
}
示例5: setupDocument
import org.eclipse.jface.text.rules.IPartitionTokenScanner; //导入依赖的package包/类
public String setupDocument(Document document) {
IPartitionTokenScanner scanner = new RuleBasedPartitionScanner();
FastPartitioner partitioner = new FastPartitioner(scanner, new String[] { IDocument.DEFAULT_CONTENT_TYPE });
String[] managingPositionCategories = partitioner.getManagingPositionCategories();
String category = managingPositionCategories[0];
document.setDocumentPartitioner(partitioner);
document.addPositionCategory(category);
return category;
}
示例6: bindIPartitionTokenScanner
import org.eclipse.jface.text.rules.IPartitionTokenScanner; //导入依赖的package包/类
@Override
public Class<? extends IPartitionTokenScanner> bindIPartitionTokenScanner() {
return TemplateAwarePartitionTokenScanner.class;
}
示例7: JenkinsPartitioner
import org.eclipse.jface.text.rules.IPartitionTokenScanner; //导入依赖的package包/类
public JenkinsPartitioner(IPartitionTokenScanner scanner, String[] legalContentTypes) {
super(scanner, legalContentTypes);
}
示例8: BatchPartitioner
import org.eclipse.jface.text.rules.IPartitionTokenScanner; //导入依赖的package包/类
public BatchPartitioner(IPartitionTokenScanner scanner, String[] legalContentTypes) {
super(scanner, legalContentTypes);
}
示例9: BashPartitioner
import org.eclipse.jface.text.rules.IPartitionTokenScanner; //导入依赖的package包/类
public BashPartitioner(IPartitionTokenScanner scanner, String[] legalContentTypes) {
super(scanner, legalContentTypes);
}
示例10: GradlePartitioner
import org.eclipse.jface.text.rules.IPartitionTokenScanner; //导入依赖的package包/类
public GradlePartitioner(IPartitionTokenScanner scanner, String[] legalContentTypes) {
super(scanner, legalContentTypes);
}
示例11: XMLPartitioner
import org.eclipse.jface.text.rules.IPartitionTokenScanner; //导入依赖的package包/类
public XMLPartitioner( IPartitionTokenScanner scanner, String[] legalContentTypes) {
super(scanner, legalContentTypes);
}
示例12: XMLPartitioner
import org.eclipse.jface.text.rules.IPartitionTokenScanner; //导入依赖的package包/类
public XMLPartitioner(IPartitionTokenScanner scanner,
String[] legalContentTypes) {
super(scanner, legalContentTypes);
}
示例13: createDocumentPartitioner
import org.eclipse.jface.text.rules.IPartitionTokenScanner; //导入依赖的package包/类
/** Factory method for creating an dsl editor specific document partitioner */
public IDocumentPartitioner createDocumentPartitioner() {
IPartitionTokenScanner scanner = createPartitionScanner();
if (scanner == null) return null;
return new FastPartitioner(scanner, legalContentTypes);
}
示例14: createPartitionScanner
import org.eclipse.jface.text.rules.IPartitionTokenScanner; //导入依赖的package包/类
public IPartitionTokenScanner createPartitionScanner() {
if (partitionScanner == null) {
partitionScanner = new PartitionScanner();
}
return partitionScanner;
}
示例15: getPartitionScanner
import org.eclipse.jface.text.rules.IPartitionTokenScanner; //导入依赖的package包/类
@Override
public IPartitionTokenScanner getPartitionScanner() {
return new FastTypeScriptPartitionScanner();
}