Examples of doOperation()


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

        }

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


    /**
     * @see org.eclipse.ui.texteditor.AbstractDecoratedTextEditor#createSourceViewer(org.eclipse.swt.widgets.Composite, org.eclipse.jface.text.source.IVerticalRuler, int)
View Full Code Here

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

        }

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


    /**
     * @see org.eclipse.ui.texteditor.AbstractDecoratedTextEditor#createSourceViewer(org.eclipse.swt.widgets.Composite, org.eclipse.jface.text.source.IVerticalRuler, int)
View Full Code Here

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

       
        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

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

            return new DefaultInformationControl(shell, shellStyle,
                style, null);
          }
        });
    projectionSupport.install();
    viewer.doOperation(ProjectionViewer.TOGGLE);
  }

  protected void rulerContextMenuAboutToShow(IMenuManager menu) {
    super.rulerContextMenuAboutToShow(menu);
View Full Code Here

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

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

      //turn projection mode on
      viewer.doOperation(ProjectionViewer.TOGGLE);     
  }
 
  protected ISourceViewer createSourceViewer(Composite parent,
      IVerticalRuler ruler, int styles) {
    ISourceViewer viewer = new ProjectionViewer(parent, ruler,
View Full Code Here

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

    super.createPartControl(parent);
   
    ProjectionViewer viewer = (ProjectionViewer)getSourceViewer();
    fProjectionSupport = new ProjectionSupport(viewer, getAnnotationAccess(), getSharedColors());
    fProjectionSupport.install();
    viewer.doOperation(ProjectionViewer.TOGGLE);
    updateFolding();
   
    StyledText widget = viewer.getTextWidget();
    widget.setTabs(
        getPreferenceStore().getInt(
View Full Code Here

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

    super.createPartControl(parent);

    ProjectionViewer projectionViewer = (ProjectionViewer) getSourceViewer();
    fProjectionSupport = new ProjectionSupport(projectionViewer, getAnnotationAccess(), getSharedColors());
    fProjectionSupport.install();
    projectionViewer.doOperation(ProjectionViewer.TOGGLE);
    projectionViewer.getTextWidget().setTabs(getPreferenceStore().getInt(AbstractDecoratedTextEditorPreferenceConstants.EDITOR_TAB_WIDTH));

    //    projectionViewer.setHyperlinkDetectors(new IHyperlinkDetector[]{
    //        new URLHyperlinkDetector(projectionViewer),
    //        createHyperlinkSupport()
View Full Code Here

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

    super.createPartControl(parent);

    ProjectionViewer viewer = (ProjectionViewer) getSourceViewer();
    fProjectionSupport = new ProjectionSupport(viewer, getAnnotationAccess(), getSharedColors());
    fProjectionSupport.install();
    viewer.doOperation(ProjectionViewer.TOGGLE);
    updateFolding();

    StyledText widget = viewer.getTextWidget();
    widget.setTabs(getPreferenceStore().getInt(AbstractDecoratedTextEditorPreferenceConstants.EDITOR_TAB_WIDTH));
    widget.addVerifyListener(new SoftTabVerifyListener());
View Full Code Here

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

        ProjectionViewer viewer = (ProjectionViewer) getSourceViewer();
        ProjectionSupport projectionSupport = new ProjectionSupport(viewer,
            getAnnotationAccess(), getSharedColors());
        projectionSupport.install();
        // turn projection mode on
        viewer.doOperation(ProjectionViewer.TOGGLE);
        annotationModel = viewer.getProjectionAnnotationModel();
    }

    protected ISourceViewer createSourceViewer(Composite parent,
            IVerticalRuler ruler, int styles) {
View Full Code Here

Examples of org.eclipse.wst.sse.ui.internal.StructuredTextViewer.doOperation()

          + testFile.getFullPath() + "(" + testFile.getLocation()
          + ")");
    }
    StyledText textWidget = viewer.getTextWidget();
    textWidget.setCaretOffset(offset);
    viewer.doOperation(ISourceViewer.CONTENTASSIST_PROPOSALS);
    return fEditor.getDocument().get();
  }

  protected static void createFile(InputStream inputStream, String fileName)
      throws Exception {
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.