Package org.eclipse.jface.text.source

Examples of org.eclipse.jface.text.source.ISourceViewer.configure()


    for (String type: getTypes()) {
      if (event.getProperty().equals(getStylePref(type))) {
        ISourceViewer viewer= getSourceViewer();
        if (viewer instanceof ISourceViewerExtension2) {
          ((ISourceViewerExtension2)viewer).unconfigure();
          viewer.configure(getSourceViewerConfiguration());
        }
        return;
      }
    }
  }
View Full Code Here


      if (!(viewer instanceof ISourceViewerExtension2))
        return; // cannot unconfigure - do nothing

      // XXX: this is pretty heavy-weight
      ((ISourceViewerExtension2)viewer).unconfigure();
      viewer.configure(getSourceViewerConfiguration());
     
      if (Boolean.FALSE.equals(event.getNewValue()))
        SpellingProblem.removeAllInActiveEditor(this, null);
     
      IAction quickAssistAction= getAction(ITextEditorActionConstants.QUICK_ASSIST);
View Full Code Here

      getSourceViewerDecorationSupport(sourceViewer).uninstall();
      sourceViewerExt2.unconfigure();

      changePreferenceStore(createCombinedPreferenceStore(input));
     
      sourceViewer.configure(getSourceViewerConfiguration());
      getSourceViewerDecorationSupport(sourceViewer).install(getPreferenceStore());
    }
   
    internalDoSetInput(input);
  }
View Full Code Here

  protected ISourceViewer getSourceViewer(final IXtextDocument xtextDocument,
      XtextSourceViewerConfiguration configuration) {
    ISourceViewer sourceViewer = factory.createSourceViewer(new Shell(),
        null, null, false, 0);
    sourceViewer.configure(configuration);
    sourceViewer.setDocument(xtextDocument);
    return sourceViewer;
  }

  public IXtextDocument getDocument(final XtextResource xtextResource,
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.