本文整理汇总了Java中org.eclipse.jface.text.rules.IPartitionTokenScanner类的典型用法代码示例。如果您正苦于以下问题:Java IPartitionTokenScanner类的具体用法?Java IPartitionTokenScanner怎么用?Java IPartitionTokenScanner使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
IPartitionTokenScanner类属于org.eclipse.jface.text.rules包,在下文中一共展示了IPartitionTokenScanner类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的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;
}
开发者ID:sebez,项目名称:vertigo-chroma-kspplugin,代码行数:12,代码来源:KspDocumentSetupParticipant.java
示例2: getTLAPartitionScanner
import org.eclipse.jface.text.rules.IPartitionTokenScanner; //导入依赖的package包/类
/**
* @return
*/
public IPartitionTokenScanner getTLAPartitionScanner()
{
if (partitionTokenScanner == null)
{
partitionTokenScanner = new TLAPartitionScanner();
}
return partitionTokenScanner;
}
开发者ID:tlaplus,项目名称:tlaplus,代码行数:12,代码来源:TLAEditorActivator.java
示例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;
}
开发者ID:Johnnei,项目名称:GLSL-Eclipse,代码行数:10,代码来源:GlslDocumentProvider.java
示例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);
}
}
开发者ID:apicloudcom,项目名称:APICloud-Studio,代码行数:12,代码来源:ExtendedFastPartitioner.java
示例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;
}
开发者ID:fabioz,项目名称:Pydev,代码行数:10,代码来源:PartitionCodeReaderTest.java
示例6: bindIPartitionTokenScanner
import org.eclipse.jface.text.rules.IPartitionTokenScanner; //导入依赖的package包/类
@Override
public Class<? extends IPartitionTokenScanner> bindIPartitionTokenScanner() {
return TemplateAwarePartitionTokenScanner.class;
}
开发者ID:eclipse,项目名称:n4js,代码行数:5,代码来源:N4JSUiModule.java
示例7: JenkinsPartitioner
import org.eclipse.jface.text.rules.IPartitionTokenScanner; //导入依赖的package包/类
public JenkinsPartitioner(IPartitionTokenScanner scanner, String[] legalContentTypes) {
super(scanner, legalContentTypes);
}
开发者ID:de-jcup,项目名称:eclipse-jenkins-editor,代码行数:4,代码来源:JenkinsPartitioner.java
示例8: BatchPartitioner
import org.eclipse.jface.text.rules.IPartitionTokenScanner; //导入依赖的package包/类
public BatchPartitioner(IPartitionTokenScanner scanner, String[] legalContentTypes) {
super(scanner, legalContentTypes);
}
开发者ID:de-jcup,项目名称:eclipse-batch-editor,代码行数:4,代码来源:BatchPartitioner.java
示例9: BashPartitioner
import org.eclipse.jface.text.rules.IPartitionTokenScanner; //导入依赖的package包/类
public BashPartitioner(IPartitionTokenScanner scanner, String[] legalContentTypes) {
super(scanner, legalContentTypes);
}
开发者ID:de-jcup,项目名称:eclipse-bash-editor,代码行数:4,代码来源:BashPartitioner.java
示例10: GradlePartitioner
import org.eclipse.jface.text.rules.IPartitionTokenScanner; //导入依赖的package包/类
public GradlePartitioner(IPartitionTokenScanner scanner, String[] legalContentTypes) {
super(scanner, legalContentTypes);
}
开发者ID:de-jcup,项目名称:egradle,代码行数:4,代码来源:GradlePartitioner.java
示例11: XMLPartitioner
import org.eclipse.jface.text.rules.IPartitionTokenScanner; //导入依赖的package包/类
public XMLPartitioner( IPartitionTokenScanner scanner, String[] legalContentTypes) {
super(scanner, legalContentTypes);
}
开发者ID:nextinterfaces,项目名称:http4e,代码行数:4,代码来源:XMLPartitioner.java
示例12: XMLPartitioner
import org.eclipse.jface.text.rules.IPartitionTokenScanner; //导入依赖的package包/类
public XMLPartitioner(IPartitionTokenScanner scanner,
String[] legalContentTypes) {
super(scanner, legalContentTypes);
}
开发者ID:ncleclipse,项目名称:ncl30-eclipse,代码行数:5,代码来源:XMLPartitioner.java
示例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);
}
开发者ID:grosenberg,项目名称:fluentmark,代码行数:7,代码来源:FluentMkTextTools.java
示例14: createPartitionScanner
import org.eclipse.jface.text.rules.IPartitionTokenScanner; //导入依赖的package包/类
public IPartitionTokenScanner createPartitionScanner() {
if (partitionScanner == null) {
partitionScanner = new PartitionScanner();
}
return partitionScanner;
}
开发者ID:grosenberg,项目名称:fluentmark,代码行数:7,代码来源:FluentMkTextTools.java
示例15: getPartitionScanner
import org.eclipse.jface.text.rules.IPartitionTokenScanner; //导入依赖的package包/类
@Override
public IPartitionTokenScanner getPartitionScanner() {
return new FastTypeScriptPartitionScanner();
}
开发者ID:angelozerr,项目名称:typescript.java,代码行数:5,代码来源:TypeScriptTextTools.java
示例16: bindIPartitionTokenScanner
import org.eclipse.jface.text.rules.IPartitionTokenScanner; //导入依赖的package包/类
public Class<? extends IPartitionTokenScanner> bindIPartitionTokenScanner() {
return PartitionTokenScanner.class;
}
开发者ID:cplutte,项目名称:bts,代码行数:4,代码来源:DefaultUiModule.java
示例17: DocumentPartitioner
import org.eclipse.jface.text.rules.IPartitionTokenScanner; //导入依赖的package包/类
@Inject
public DocumentPartitioner(IPartitionTokenScanner scanner, ITokenTypeToPartitionTypeMapper mapper) {
this(scanner, mapper.getSupportedPartitionTypes());
}
开发者ID:cplutte,项目名称:bts,代码行数:5,代码来源:DocumentPartitioner.java
示例18: getPartitionScanner
import org.eclipse.jface.text.rules.IPartitionTokenScanner; //导入依赖的package包/类
public IPartitionTokenScanner getPartitionScanner() {
return partitionScanner;
}
开发者ID:JuliaComputing,项目名称:JuliaDT,代码行数:4,代码来源:JuliaTextTools.java
示例19: CompositePartitionScanner
import org.eclipse.jface.text.rules.IPartitionTokenScanner; //导入依赖的package包/类
public CompositePartitionScanner(IPartitionTokenScanner javaScanner,
IPartitionTokenScanner jsniScanner) {
this.javaScanner = javaScanner;
this.jsniScanner = jsniScanner;
}
开发者ID:gwt-plugins,项目名称:gwt-eclipse-plugin,代码行数:6,代码来源:CompositePartitionScanner.java
示例20: XMLPartitioner
import org.eclipse.jface.text.rules.IPartitionTokenScanner; //导入依赖的package包/类
public XMLPartitioner(IPartitionTokenScanner scanner, String[] legalContentTypes) {
super(scanner, legalContentTypes);
}
开发者ID:OpenSoftwareSolutions,项目名称:PDFReporter-Studio,代码行数:4,代码来源:XMLPartitioner.java
注:本文中的org.eclipse.jface.text.rules.IPartitionTokenScanner类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论