コード例 #1
0
  @Override
  public void createPartControl(Composite parent) {
    setSourceViewerConfiguration(new Configuration(colorManager, this, getPreferenceStore()));

    super.createPartControl(parent);

    ISourceViewer sourceViewer = getSourceViewer();
    if (sourceViewer instanceof ITextViewerExtension) {
      bracketInserter.setSourceViewer(sourceViewer);
      bracketInserter.addBrackets('{', '}');
      ((ITextViewerExtension) sourceViewer).prependVerifyKeyListener(bracketInserter);
    }
  }
コード例 #2
0
  @Override
  public void createPartControl(Composite parent) {
    super.createPartControl(parent);

    installCodeColoring();
    if (isMarkingOccurrences()) uninstallOccurrencesFinder();

    // InlineProjectionJavaViewer viewer = (InlineProjectionJavaViewer)
    // getViewer();
    //
    // InlineProjectionSupport projectionSupport = new
    // InlineProjectionSupport(
    // viewer, getAnnotationAccess(), getSharedColors());
    // projectionSupport.install();TODO: disabled inline projection
    // viewer.doOperation(ProjectionViewer.TOGGLE);
    //
    // viewer.disableProjection();
    // viewer.enableInlineProjection();

    editorExtension.createErrorPanel(parent);
    editorExtension.alignErrorPanel(parent);
    editorExtension.initKeepColorManager();
    // editorExtension.installAlternativeAnnotations();
  }