Package at.bestsolution.efxclipse.text.jface.source

Examples of at.bestsolution.efxclipse.text.jface.source.SourceViewer.configure()


//    mainPane.setCenter(createSourceViewerPane(new File("/Users/tomschindl/git/e-fx-clipse/at.bestsolution.efxclipse.text.test.app/sample/Grid.java")));
   
    IDocument document = new Document(getFileContent(new File("/Users/tomschindl/git/e-fx-clipse/at.bestsolution.efxclipse.text.test.app/sample/Grid.java")));
    final SourceViewer viewer = new SourceViewer();
    JavaTextTools textTools = new JavaTextTools();
    viewer.configure(new JavaSourceViewerConfiguration(textTools));
   
    textTools.setupJavaDocumentPartitioner(document, IJavaPartitions.JAVA_PARTITIONING);
    viewer.setDocument(document);
    mainPane.setCenter(viewer.getLayoutNode());
   
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.