Package org.eclipse.jface.text.source.projection

Examples of org.eclipse.jface.text.source.projection.ProjectionViewer.configure()


  protected ProjectionViewer createPreviewViewer(Composite parent, boolean showAnnotationsOverview,
      int styles, IPreferenceStore store) {
    ProjectionViewer sourceViewer = new ProjectionViewer(parent, null, null,
      showAnnotationsOverview, styles);
    AbstractLangSourceViewerConfiguration configuration = createSimpleSourceViewerConfiguration(store);
    sourceViewer.configure(configuration);
    sourceViewer.getTextWidget().setFont(JFaceResources.getFont(JFaceResources.TEXT_FONT));
    configuration.setupViewerForTextPresentationPrefChanges(sourceViewer);
    return sourceViewer;
  }
 
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.