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

Examples of org.eclipse.jface.text.source.projection.ProjectionSupport


        fAnnotationAccess = createAnnotationAccess();
        fOverviewRuler = createOverviewRuler(getSharedColors());
        ProjectionViewer viewer =
                new ProjectionViewer(parent, ruler, getOverviewRuler(), isOverviewRulerVisible(), styles);

        fProjectionSupport = new ProjectionSupport(viewer, getAnnotationAccess(), getSharedColors());
        fProjectionSupport.addSummarizableAnnotationType(ANNOTATION_TYPE_APEX_ERROR); //$NON-NLS-1$
        fProjectionSupport.addSummarizableAnnotationType(ANNOTATION_TYPE_APEX_WARNING); //$NON-NLS-1$
        fProjectionSupport.install();
        //        viewer.doOperation(ProjectionViewer.TOGGLE);
        setTitleToolTip(EDITOR_NAME);
View Full Code Here


  @Override
  public void createPartControl(Composite parent) {
    super.createPartControl(parent);
    ProjectionViewer viewer = (ProjectionViewer) getSourceViewer();

    projectionSupport = new ProjectionSupport(viewer,
        getAnnotationAccess(), getSharedColors());
    projectionSupport.install();

    // turn projection mode on
    viewer.doOperation(ProjectionViewer.TOGGLE);
View Full Code Here

    this.setBackgroundColor();
//    this.fSourceViewerDecorationSupport.install(getPreferenceStore());

    ProjectionViewer projectionViewer = (ProjectionViewer) getSourceViewer();

    this.fProjectionSupport = new ProjectionSupport(projectionViewer,
        getAnnotationAccess(), getSharedColors());
    this.fProjectionSupport
        .addSummarizableAnnotationType("org.eclipse.ui.workbench.texteditor.error");
    this.fProjectionSupport
        .addSummarizableAnnotationType("org.eclipse.ui.workbench.texteditor.task");
View Full Code Here

        editorComposite.setLayoutData( data );
        super.createPartControl( editorComposite );
        control.setContent( editorComposite );

        ProjectionViewer projectionViewer = ( ProjectionViewer ) getSourceViewer();
        projectionSupport = new ProjectionSupport( projectionViewer, getAnnotationAccess(), getSharedColors() );
        projectionSupport.install();
        projectionViewer.doOperation( ProjectionViewer.TOGGLE );

    }
View Full Code Here

  public void createPartControl(Composite parent) {
    // Over-ride to add code-folding support
    super.createPartControl(parent);
    if (getSourceViewer() instanceof ProjectionViewer) {
        ProjectionViewer viewer =(ProjectionViewer)getSourceViewer();
        projectionSupport = new ProjectionSupport(viewer,getAnnotationAccess(),getSharedColors());
        projectionSupport.install();
        //turn projection mode on
        viewer.doOperation(ProjectionViewer.TOGGLE);
    }
  }
View Full Code Here

 
  /* @see org.eclipse.ui.texteditor.ExtendedTextEditor#createPartControl(org.eclipse.swt.widgets.Composite) */
  public void createPartControl(Composite parent) {
    super.createPartControl(parent);
    ProjectionViewer viewer= (ProjectionViewer) getSourceViewer();
    fProjectionSupport= new ProjectionSupport(viewer, getAnnotationAccess(), getSharedColors());
    fProjectionSupport.addSummarizableAnnotationType("org.eclipse.ui.workbench.texteditor.error"); //$NON-NLS-1$
    fProjectionSupport.addSummarizableAnnotationType("org.eclipse.ui.workbench.texteditor.warning"); //$NON-NLS-1$
    fProjectionSupport.install();
    viewer.doOperation(ProjectionViewer.TOGGLE);
  }
View Full Code Here

TOP

Related Classes of org.eclipse.jface.text.source.projection.ProjectionSupport

Copyright © 2018 www.massapicom. 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.