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

Examples of org.eclipse.jface.text.source.projection.ProjectionViewer$ProjectionCommandQueue


        else
        {
            super.createPartControl( parent );
        }

        ProjectionViewer projectionViewer = ( ProjectionViewer ) getSourceViewer();
        projectionSupport = new ProjectionSupport( projectionViewer, getAnnotationAccess(), getSharedColors() );
        projectionSupport.install();
        projectionViewer.doOperation( ProjectionViewer.TOGGLE );
    }
View Full Code Here


     */
    protected ISourceViewer createSourceViewer( Composite parent, IVerticalRuler ruler, int styles )
    {
        getAnnotationAccess();
        getOverviewRuler();
        ISourceViewer viewer = new ProjectionViewer( parent, ruler, getOverviewRuler(), true, styles );
        getSourceViewerDecorationSupport( viewer );

        return viewer;
    }
View Full Code Here

        else
        {
            super.createPartControl( parent );
        }

        ProjectionViewer projectionViewer = ( ProjectionViewer ) getSourceViewer();
        projectionSupport = new ProjectionSupport( projectionViewer, getAnnotationAccess(), getSharedColors() );
        projectionSupport.install();
        projectionViewer.doOperation( ProjectionViewer.TOGGLE );
    }
View Full Code Here

     */
    protected ISourceViewer createSourceViewer( Composite parent, IVerticalRuler ruler, int styles )
    {
        getAnnotationAccess();
        getOverviewRuler();
        ISourceViewer viewer = new ProjectionViewer( parent, ruler, getOverviewRuler(), true, styles );
        getSourceViewerDecorationSupport( viewer );

        return viewer;
    }
View Full Code Here

 
  @Override
  public void createPartControl(Composite parent) {
    // TODO Auto-generated method stub
    super.createPartControl(parent);
    ProjectionViewer viewer =(ProjectionViewer)getSourceViewer();
       
        projectionSupport = new ProjectionSupport(viewer,getAnnotationAccess(),getSharedColors());
    projectionSupport.install();
   
    //turn projection mode on
    viewer.doOperation(ProjectionViewer.TOGGLE);
   
    annotationModel = viewer.getProjectionAnnotationModel();
   
    SourceViewerDecorationSupport support = getSourceViewerDecorationSupport(viewer);
    support.install(JsonEditorPlugin.getJsonPreferenceStore());
  }
View Full Code Here

  @Override
  protected ISourceViewer createSourceViewer(Composite parent,
      IVerticalRuler ruler, int styles) {

    ISourceViewer viewer = new ProjectionViewer(parent, ruler, getOverviewRuler(), isOverviewRulerVisible(), styles);

    // ensure decoration support has been created and configured.
    getSourceViewerDecorationSupport(viewer);
    return viewer;
  }
View Full Code Here

  private QVTContentOutlinePage fOutlinePage;

  protected ISourceViewer createSourceViewer(Composite parent,
      IVerticalRuler ruler, int styles) {
    ISourceViewer viewer = new ProjectionViewer(parent, ruler,
        getOverviewRuler(), isOverviewRulerVisible(), styles);
    // ensure decoration support has been created and configured (from
    // super.createSourceViewer)
    getSourceViewerDecorationSupport(viewer);
    return viewer;
View Full Code Here

    QVTOccurrencesUpdater fOccurrencesUpdater = new QVTOccurrencesUpdater();
    ((IPostSelectionProvider) this.getSelectionProvider())
        .addPostSelectionChangedListener(fOccurrencesUpdater);

    // Folding
    ProjectionViewer viewer = (ProjectionViewer) getSourceViewer();
    ProjectionSupport projectionSupport = new ProjectionSupport(viewer,
        getAnnotationAccess(), getSharedColors());

    projectionSupport
        .addSummarizableAnnotationType("org.eclipse.ui.workbench.texteditor.error");
    projectionSupport
        .addSummarizableAnnotationType("org.eclipse.ui.workbench.texteditor.warning");
    projectionSupport
        .setHoverControlCreator(new IInformationControlCreator() {
          public IInformationControl createInformationControl(
              Shell shell) {
            return new DefaultInformationControl(shell, SWT.TOOL
                | SWT.NO_TRIM | getOrientation(), SWT.NONE,
                null, EditorsUI.getTooltipAffordanceString());
          }
        });
    projectionSupport
        .setInformationPresenterControlCreator(new IInformationControlCreator() {
          public IInformationControl createInformationControl(
              Shell shell) {
            int shellStyle = SWT.RESIZE | SWT.TOOL
                | getOrientation();
            int style = SWT.V_SCROLL | SWT.H_SCROLL;
            return new DefaultInformationControl(shell, shellStyle,
                style, null);
          }
        });
    projectionSupport.install();
    viewer.doOperation(ProjectionViewer.TOGGLE);
  }
View Full Code Here

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

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

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

      viewer.doOperation(ProjectionViewer.TOGGLE);     
  }
 
  protected ISourceViewer createSourceViewer(Composite parent,
      IVerticalRuler ruler, int styles) {
    ISourceViewer viewer = new ProjectionViewer(parent, ruler,
        getOverviewRuler(), isOverviewRulerVisible(), styles);

    // ensure decoration support has been created and configured.
    getSourceViewerDecorationSupport(viewer);
   
View Full Code Here

TOP

Related Classes of org.eclipse.jface.text.source.projection.ProjectionViewer$ProjectionCommandQueue

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.