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

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


                }
            });
            fProjectionSupport.install();

            if (isFoldingEnabled()) {
                projectionViewer.doOperation(ProjectionViewer.TOGGLE);
            }
        } catch (Exception e) {
            Log.log(e);
        }
    }
View Full Code Here


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

    // turn projection mode on
    viewer.doOperation(ProjectionViewer.TOGGLE);

    annotationModel = viewer.getProjectionAnnotationModel();

    // register the editor scope context
    IContextService service = (IContextService) getSite().getService(IContextService.class);
View Full Code Here

      
        //four.setToolTipText("This is tab four");
   
   
   
    projectionViewer.doOperation(ProjectionViewer.TOGGLE);

    this.foldingSetter = new CodeFoldingSetter(this);
    this.foldingSetter.docChanged(true);

    // TODO: If we set this directly the projection fViewer loses track of the
View Full Code Here

        control.setContent( editorComposite );

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

    }


    /**
 
View Full Code Here

    if (getSourceViewer() instanceof ProjectionViewer) {
        ProjectionViewer viewer =(ProjectionViewer)getSourceViewer();
        projectionSupport = new ProjectionSupport(viewer,getAnnotationAccess(),getSharedColors());
        projectionSupport.install();
        //turn projection mode on
        viewer.doOperation(ProjectionViewer.TOGGLE);
    }
  }
 
  /**
   *  Returns the editor's source viewer. May return null before the editor's part has been created and after disposal.
View Full Code Here

    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);
  }
 
  /* @see org.eclipse.ui.texteditor.AbstractTextEditor#adjustHighlightRange(int, int) */
  protected void adjustHighlightRange(int offset, int length) {
    ISourceViewer viewer= getSourceViewer();
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.