Package org.eclipse.jface.text

Examples of org.eclipse.jface.text.IDocumentPartitioner.connect()


        fViewer.setInput(parent);

        IDocument document = new Document();
        IDocumentPartitioner partitioner = new PyPartitioner(new PyPartitionScanner(), IPythonPartitions.types);
        document.setDocumentPartitioner(partitioner);
        partitioner.connect(document);
        /*
        fViewer.configure(new DisplayViewerConfiguration() {
            public IContentAssistProcessor getContentAssistantProcessor() {
                    return getCompletionProcessor();
            }
View Full Code Here


        new FastPartitioner(
          new XMLPartitionScanner(),
          new String[] {
            XMLPartitionScanner.XML_TAG,
            XMLPartitionScanner.XML_COMMENT });
      partitioner.connect(document);
      document.setDocumentPartitioner(partitioner);
    }
    return document;
  }
}
View Full Code Here

        if (document instanceof IDocumentExtension3) {
            IDocumentExtension3 extension3 = (IDocumentExtension3) document;
            IDocumentPartitioner partitioner =
                new FastPartitioner(apexPartitionScanner, ApexPartitionScanner.APEX_PARTITION_TYPES);
            extension3.setDocumentPartitioner(ApexSourceViewerConfiguration.APEX_PARTITIONING, partitioner);
            partitioner.connect(document);
        }
    }
}
View Full Code Here

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

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

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

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

    if (document != null) {
      IDocumentPartitioner partitioner =
        new GherkinPartitioner(
          new RuleBasedPartitionScanner(),
          new String[] { IDocument.DEFAULT_CONTENT_TYPE });
      partitioner.connect(document);
      document.setDocumentPartitioner(partitioner);
    }
    return document;
  }
}
View Full Code Here

        new FastPartitioner(
          new JSXPartitionScanner(),
          new String[] {
            JSXPartitionScanner.JSX_COMMENT
          });
      partitioner.connect(document);
      document.setDocumentPartitioner(partitioner);
    }
    return document;
  }
}
View Full Code Here

          new PartitionScanner(),
          new String[] {           
            PartitionScanner.COMMENT,
            PartitionScanner.QUOTES,
            PartitionScanner.DIRECTIVE});
      partitioner.connect(document);
      document.setDocumentPartitioner(partitioner);
    }
    return document;
  }
}
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.