Java 类org.eclipse.jface.text.rules.IPartitionTokenScanner 实例源码

项目:vertigo-chroma-kspplugin    文件:KspDocumentSetupParticipant.java   
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;
}
项目:tlaplus    文件:TLAEditorActivator.java   
/**
 * @return
 */
public IPartitionTokenScanner getTLAPartitionScanner()
{
    if (partitionTokenScanner == null) 
    {
        partitionTokenScanner = new TLAPartitionScanner();
    }
    return partitionTokenScanner; 
}
项目:GLSL-Eclipse    文件:GlslDocumentProvider.java   
private IDocumentPartitioner createPartitioner() {
    IPartitionTokenScanner scanner = new GlslPartitionScanner();
    IDocumentPartitioner partioner = new GlslDebugPartitioner(
        scanner,
        GlslPartitionScanner.CONTENT_TYPES
    );

    return partioner;
}
项目:APICloud-Studio    文件:ExtendedFastPartitioner.java   
/**
 * @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);
    }
}
项目:Pydev    文件:PartitionCodeReaderTest.java   
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;
}
项目:n4js    文件:N4JSUiModule.java   
@Override
public Class<? extends IPartitionTokenScanner> bindIPartitionTokenScanner() {
    return TemplateAwarePartitionTokenScanner.class;
}
项目:eclipse-jenkins-editor    文件:JenkinsPartitioner.java   
public JenkinsPartitioner(IPartitionTokenScanner scanner, String[] legalContentTypes) {
    super(scanner, legalContentTypes);
}
项目:eclipse-batch-editor    文件:BatchPartitioner.java   
public BatchPartitioner(IPartitionTokenScanner scanner, String[] legalContentTypes) {
    super(scanner, legalContentTypes);
}
项目:eclipse-bash-editor    文件:BashPartitioner.java   
public BashPartitioner(IPartitionTokenScanner scanner, String[] legalContentTypes) {
    super(scanner, legalContentTypes);
}
项目:egradle    文件:GradlePartitioner.java   
public GradlePartitioner(IPartitionTokenScanner scanner, String[] legalContentTypes) {
    super(scanner, legalContentTypes);
}
项目:http4e    文件:XMLPartitioner.java   
public XMLPartitioner( IPartitionTokenScanner scanner, String[] legalContentTypes) {
   super(scanner, legalContentTypes);
}
项目:ncl30-eclipse    文件:XMLPartitioner.java   
public XMLPartitioner(IPartitionTokenScanner scanner,
        String[] legalContentTypes) {
    super(scanner, legalContentTypes);
}
项目:fluentmark    文件:FluentMkTextTools.java   
/** 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);
}
项目:fluentmark    文件:FluentMkTextTools.java   
public IPartitionTokenScanner createPartitionScanner() {
    if (partitionScanner == null) {
        partitionScanner = new PartitionScanner();
    }
    return partitionScanner;
}
项目:typescript.java    文件:TypeScriptTextTools.java   
@Override
public IPartitionTokenScanner getPartitionScanner() {
    return new FastTypeScriptPartitionScanner();
}
项目:bts    文件:DefaultUiModule.java   
public Class<? extends IPartitionTokenScanner> bindIPartitionTokenScanner() {
    return PartitionTokenScanner.class;
}
项目:bts    文件:DocumentPartitioner.java   
@Inject
public DocumentPartitioner(IPartitionTokenScanner scanner, ITokenTypeToPartitionTypeMapper mapper) {
    this(scanner, mapper.getSupportedPartitionTypes());
}
项目:JuliaDT    文件:JuliaTextTools.java   
public IPartitionTokenScanner getPartitionScanner() {
  return partitionScanner;
}
项目:gwt-eclipse-plugin    文件:CompositePartitionScanner.java   
public CompositePartitionScanner(IPartitionTokenScanner javaScanner,
    IPartitionTokenScanner jsniScanner) {
  this.javaScanner = javaScanner;
  this.jsniScanner = jsniScanner;
}
项目:PDFReporter-Studio    文件:XMLPartitioner.java   
public XMLPartitioner(IPartitionTokenScanner scanner, String[] legalContentTypes) {
    super(scanner, legalContentTypes);
}
项目:GLSL-Eclipse    文件:GlslDebugPartitioner.java   
public GlslDebugPartitioner(IPartitionTokenScanner scanner,
        String[] legalContentTypes) {
    super(scanner, legalContentTypes);
}
项目:APICloud-Studio    文件:JSDocumentProvider.java   
@Override
public IPartitionTokenScanner createPartitionScanner()
{
    return new JSSourcePartitionScannerJFlex();
}
项目:APICloud-Studio    文件:DTDDocumentProvider.java   
@Override
public IPartitionTokenScanner createPartitionScanner()
{
    return new DTDPartitionScanner();
}
项目:APICloud-Studio    文件:CSSDocumentProvider.java   
@Override
public IPartitionTokenScanner createPartitionScanner()
{
    return new CSSSourcePartitionScannerJFlex();
}
项目:rustyeclipse    文件:ScannerFactory.java   
public IPartitionTokenScanner rustPartitionScanner() {
    return new RustPartitionScanner();                         
}
项目:eclipse-gn    文件:GnTextTools.java   
@Override
public IPartitionTokenScanner createPartitionScanner() {
  return partitionScanner;
}
项目:Pydev    文件:PyPartitioner.java   
public IPartitionTokenScanner getScanner() {
    return fScanner;
}
项目:goclipse    文件:Scanner_BaseTest.java   
public static FastPartitioner setupPartitioner(Document document, IPartitionTokenScanner partitionScanner,
        String partitioning, String[] legalContentTypes) {
    FastPartitioner fp = new FastPartitioner(partitionScanner, legalContentTypes);
    EclipseUtils.setupDocumentPartitioner(document, partitioning, fp);
    return fp;
}
项目:goclipse    文件:LangDocumentPartitionerSetup.java   
public FastPartitioner createDocumentPartitioner() {
    IPartitionTokenScanner scanner = LangUIPlugin_Actual.createPartitionScanner();
    return new FastPartitioner(scanner, LEGAL_CONTENT_TYPES);
}
项目:goclipse    文件:LangUIPlugin_Actual.java   
public static IPartitionTokenScanner createPartitionScanner() {
    return new GoPartitionScanner();
}
项目:tlaplus    文件:TLAFastPartitioner.java   
/**
 * Creates a new partitioner that uses the given scanner and may return
 * partitions of the given legal content types.
 *
 * @param scanner the scanner this partitioner is supposed to use
 * @param legalContentTypes the legal content types of this partitioner
 */
public TLAFastPartitioner(IPartitionTokenScanner scanner, String[] legalContentTypes) {
    fScanner= (TLAPartitionScanner) scanner;
    fLegalContentTypes= TextUtilities.copy(legalContentTypes);
    fPositionCategory= CONTENT_TYPES_CATEGORY + hashCode();
    fPositionUpdater= new DefaultPositionUpdater(fPositionCategory);
}
项目:bts    文件:DocumentPartitioner.java   
/**
 * Creates a new partitioner that uses the given scanner and may return partitions of the given legal content types.
 * 
 * @param scanner
 *            the scanner this partitioner is supposed to use
 * @param legalContentTypes
 *            the legal content types of this partitioner
 * @since 2.2
 */
public DocumentPartitioner(IPartitionTokenScanner scanner, String[] legalContentTypes) {
    fScanner = scanner;
    fLegalContentTypes = TextUtilities.copy(legalContentTypes);
    fPositionCategory = CONTENT_TYPES_CATEGORY + hashCode();
    fPositionUpdater = new DefaultPositionUpdater(fPositionCategory);
}
项目:APICloud-Studio    文件:SimpleDocumentProvider.java   
/**
 * Create a partition scanner for this editor's top-level language
 * 
 * @return
 */
public abstract IPartitionTokenScanner createPartitionScanner();
项目:Eclipse-Postfix-Code-Completion    文件:JavaTextTools.java   
/**
 * Returns a scanner which is configured to scan
 * Java-specific partitions, which are multi-line comments,
 * Javadoc comments, and regular Java source code.
 *
 * @return a Java partition scanner
 */
public IPartitionTokenScanner getPartitionScanner() {
    return new FastJavaPartitionScanner();
}
项目:Eclipse-Postfix-Code-Completion-Juno38    文件:JavaTextTools.java   
/**
 * Returns a scanner which is configured to scan
 * Java-specific partitions, which are multi-line comments,
 * Javadoc comments, and regular Java source code.
 *
 * @return a Java partition scanner
 */
public IPartitionTokenScanner getPartitionScanner() {
    return new FastJavaPartitionScanner();
}