Examples of ProjectionSupport


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

     *
         * TODO this is repeated in REPLView...surely we can make the source viewer self-sufficient here
     */
      viewer.propertyChange(null);
     
    fProjectionSupport= new ProjectionSupport(viewer, getAnnotationAccess(), getSharedColors());
   
    // TODO remove the 2 following lines ?
    fProjectionSupport.addSummarizableAnnotationType("org.eclipse.ui.workbench.texteditor.error"); //$NON-NLS-1$
    fProjectionSupport.addSummarizableAnnotationType("org.eclipse.ui.workbench.texteditor.warning"); //$NON-NLS-1$
   
View Full Code Here

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

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

  @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

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

    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

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

        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

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

  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

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

 
  /* @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
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.