Examples of FastPartitioner


Examples of at.bestsolution.efxclipse.text.jface.rules.FastPartitioner

   * convenience method.
   *
   * @return a newly created Java document partitioner
   */
  public IDocumentPartitioner createDocumentPartitioner() {
    return new FastPartitioner(getPartitionScanner(), LEGAL_CONTENT_TYPES);
  }
View Full Code Here

Examples of org.eclipse.jface.text.rules.FastPartitioner

  protected IDocument createDocument(Object element) throws CoreException {
    IDocument document = super.createDocument(element);
    if (document != null) {
      IDocumentPartitioner partitioner =
        new FastPartitioner(
          new DroolsPartitionScanner(),
          new String[] {
            DroolsPartitionScanner.TAG,
            DroolsPartitionScanner.COMMENT });
      partitioner.connect(document);
      document.setDocumentPartitioner(partitioner);
    }
    return document;
  }
View Full Code Here

Examples of org.eclipse.jface.text.rules.FastPartitioner

  @Override
  protected IDocument createDocument(Object element) throws CoreException {
    IDocument document = super.createDocument(element);
    if (document != null) {
      IDocumentPartitioner partitioner =
        new FastPartitioner(
          new RSPartitionScanner(),
          new String[] {
            RSPartitionScanner.COMMENT });
      partitioner.connect(document);
      document.setDocumentPartitioner(partitioner);
    }
    return document;
  }
View Full Code Here

Examples of org.eclipse.jface.text.rules.FastPartitioner

                       "   then\n" + //
                       "       " +//
                       "end\n\n" ;

        IDocument doc = new Document( input );
        IDocumentPartitioner partitioner = new FastPartitioner( new DRLPartionScanner(),
                                                                DRLPartionScanner.LEGAL_CONTENT_TYPES );
        partitioner.connect( doc );
        doc.setDocumentPartitioner( partitioner );
        return doc;
    }
View Full Code Here

Examples of org.eclipse.jface.text.rules.FastPartitioner

        assertThat(shell, is(not(nullValue())));
        this.shell = shell;
        shell.addListener(this);
        changed(new BackendShellEvent(0, 0, get()));
        final IDocumentPartitioner partitioner = new FastPartitioner(createScanner(),
                LEGAL_CONTENT_TYPES);
        partitioner.connect(this);
        setDocumentPartitioner(partitioner);
    }
View Full Code Here

Examples of org.eclipse.jface.text.rules.FastPartitioner

        }
        partitioner.connect(document);
    }

    public static IDocumentPartitioner createDocumentPartitioner() {
        return new FastPartitioner(new ErlangPartitionScanner(),
                IErlangPartitions.LEGAL_PARTITIONS);
    }
View Full Code Here

Examples of org.eclipse.jface.text.rules.FastPartitioner

      document.setDocumentPartitioner(partitioner);
    }
    return document;
  }
  private FastPartitioner createPartitioner() {
    return new FastPartitioner( new DjangoPartitionScanner(), IDjangoPartitions.CONFIGURED_CONTENT_TYPES);
  }
View Full Code Here

Examples of org.eclipse.jface.text.rules.FastPartitioner

                       "   then\n" + //
                       "       " +//
                       "end\n\n" ;

        IDocument doc = new Document( input );
        IDocumentPartitioner partitioner = new FastPartitioner( new DRLPartionScanner(),
                                                                DRLPartionScanner.LEGAL_CONTENT_TYPES );
        partitioner.connect( doc );
        doc.setDocumentPartitioner( partitioner );
        return doc;
    }
View Full Code Here

Examples of org.eclipse.jface.text.rules.FastPartitioner

            value = "";
        }
        IDocument document = new Document(value);
        actionViewer.setDocument(document);
        IDocumentPartitioner partitioner =
            new FastPartitioner(
                new DRLPartionScanner(),
                DRLPartionScanner.LEGAL_CONTENT_TYPES);
        partitioner.connect(document);
        document.setDocumentPartitioner(partitioner);
        actionViewer.getControl().addKeyListener(new KeyListener() {
            public void keyPressed(KeyEvent e) {
                if (e.character == ' ' && e.stateMask == SWT.CTRL) {
                    actionViewer.doOperation(ISourceViewer.CONTENTASSIST_PROPOSALS);
View Full Code Here

Examples of org.eclipse.jface.text.rules.FastPartitioner

            value = "";
        }
        IDocument document = new Document(value);
        actionViewer.setDocument(document);
        IDocumentPartitioner partitioner =
            new FastPartitioner(
                new DRLPartionScanner(),
                DRLPartionScanner.LEGAL_CONTENT_TYPES);
        partitioner.connect(document);
        document.setDocumentPartitioner(partitioner);
        actionViewer.getControl().addKeyListener(new KeyListener() {
            public void keyPressed(KeyEvent e) {
                if (e.character == ' ' && e.stateMask == SWT.CTRL) {
                    actionViewer.doOperation(ISourceViewer.CONTENTASSIST_PROPOSALS);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.