Examples of JDISourceViewer


Examples of org.eclipse.jdt.internal.debug.ui.JDISourceViewer

  protected ISourceViewer createSourceViewer(Composite parent,
      IVerticalRuler ruler, int styles) {
    fAnnotationAccess = getAnnotationAccess();
    fOverviewRuler = createOverviewRuler(getSharedColors());

    ISourceViewer viewer = new JDISourceViewer(parent, ruler,
        getOverviewRuler(), isOverviewRulerVisible(), styles
            | SWT.LEFT_TO_RIGHT);

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

Examples of org.eclipse.jdt.internal.debug.ui.JDISourceViewer

   * @see
   * org.eclipse.ui.texteditor.AbstractTextEditor#handlePreferenceStoreChanged
   * (org.eclipse.jface.util.PropertyChangeEvent)
   */
  protected void handlePreferenceStoreChanged(PropertyChangeEvent event) {
    JDISourceViewer isv = (JDISourceViewer) getSourceViewer();
    if (isv != null) {
      IContentAssistant assistant = isv.getContentAssistant();
      if (assistant instanceof ContentAssistant) {
        JDIContentAssistPreference.changeConfiguration(
            (ContentAssistant) assistant, event);
      }
      SourceViewerConfiguration configuration = getSourceViewerConfiguration();
      if (configuration instanceof JavaSourceViewerConfiguration) {
        JavaSourceViewerConfiguration jsv = (JavaSourceViewerConfiguration) configuration;
        if (jsv.affectsTextPresentation(event)) {
          jsv.handlePropertyChangeEvent(event);
          isv.invalidateTextPresentation();
        }
      }
      super.handlePreferenceStoreChanged(event);
    }
  }
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.