Examples of IStatusField


Examples of org.eclipse.ui.texteditor.IStatusField

  /**
   * Updates the status line.
   */
  private void updateStatusLineModeItem() {
    // TODO: refactore this
    IStatusField statusField = getStatusField(AnnotationEditorActionContributor.ID);

    // can be null directly after doSetInput()
    if (statusField != null) {
      statusField.setText(getAnnotationMode().getShortName());
    }
  }
View Full Code Here

Examples of org.eclipse.ui.texteditor.IStatusField

  /**
   * Updates the status line.
   */
  private void updateStatusLineModeItem() {
    // TODO: refactore this
    IStatusField statusField = getStatusField(AnnotationEditorActionContributor.ID);

    // can be null directly after doSetInput()
    if (statusField != null) {
      statusField.setText(getAnnotationMode().getShortName());
    }
  }
View Full Code Here

Examples of org.eclipse.ui.texteditor.IStatusField

  /**
   * Updates the status line.
   */
  private void updateStatusLineModeItem() {
    // TODO: refactore this
    IStatusField statusField = getStatusField(AnnotationEditorActionContributor.ID);

    // can be null directly after doSetInput()
    if (statusField != null) {
      statusField.setText(getAnnotationMode().getShortName());
    }
  }
View Full Code Here

Examples of org.eclipse.ui.texteditor.IStatusField

  /**
   * Updates the status line.
   */
  private void updateStatusLineModeItem() {
    // TODO: refactore this
    IStatusField statusField = getStatusField(AnnotationEditorActionContributor.ID);

    // can be null directly after doSetInput()
    if (statusField != null) {
      statusField.setText(getAnnotationMode().getShortName());
    }
  }
View Full Code Here

Examples of org.eclipse.ui.texteditor.IStatusField

    if (category == null)
      return;

    if (StructuredTextEditorActionConstants.STATUS_CATEGORY_OFFSET.equals(category)) {
      IStatusField field = getStatusField(category);
      ISourceViewer sourceViewer = getSourceViewer();
      if (field != null && sourceViewer != null) {
        Point selection = sourceViewer.getTextWidget().getSelection();
        int offset1 = widgetOffset2ModelOffset(sourceViewer, selection.x);
        int offset2 = widgetOffset2ModelOffset(sourceViewer, selection.y);
        String text = null;
        if (offset1 != offset2)
          text = "[" + offset1 + "-" + offset2 + "]"; //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$
        else
          text = "[ " + offset1 + " ]"; //$NON-NLS-1$ //$NON-NLS-2$
        field.setText(text == null ? fErrorLabel : text);
      }
    }
  }
View Full Code Here

Examples of org.eclipse.ui.texteditor.IStatusField

    if (category == null)
      return;

    if (StructuredTextEditorActionConstants.STATUS_CATEGORY_OFFSET.equals(category)) {
      IStatusField field = getStatusField(category);
      ISourceViewer sourceViewer = getSourceViewer();
      if (field != null && sourceViewer != null) {
        Point selection = sourceViewer.getTextWidget().getSelection();
        int offset1 = widgetOffset2ModelOffset(sourceViewer, selection.x);
        int offset2 = widgetOffset2ModelOffset(sourceViewer, selection.y);
        String text = null;
        if (offset1 != offset2)
          text = "[" + offset1 + "-" + offset2 + "]"; //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$
        else
          text = "[ " + offset1 + " ]"; //$NON-NLS-1$ //$NON-NLS-2$
        field.setText(text == null ? fErrorLabel : text);
      }
    }
  }
View Full Code Here

Examples of org.eclipse.ui.texteditor.IStatusField

  /**
   * Updates the status line.
   */
  private void updateStatusLineModeItem() {
    // TODO: refactore this
    IStatusField statusField = getStatusField(AnnotationEditorActionContributor.ID);

    // can be null directly after doSetInput()
    if (statusField != null) {
      statusField.setText(getAnnotationMode().getShortName());
    }
  }
View Full Code Here

Examples of org.eclipse.ui.texteditor.IStatusField

    }

    protected void updateStatusField(String category) {
        if (category == null) return;
        if (category.equals(EditorPlugin.STATUS_CATEGORY_MODE)) {
            IStatusField field = getStatusField(category);
            if (field != null) {
                field.setImage(EditorPlugin.getImage("box"));
                Mode mode = ((ColoringSourceViewerConfiguration) getSourceViewerConfiguration()).getMode();
                String text = mode == null ? "No mode" : mode.getDisplayName();
                field.setText(text);
                return;
            }
        }
        super.updateStatusField(category);
    }
View Full Code Here

Examples of org.eclipse.ui.texteditor.IStatusField

  /**
   * Updates the status line.
   */
  private void updateStatusLineModeItem() {
    // TODO: refactore this
    IStatusField statusField = getStatusField(AnnotationEditorActionContributor.ID);

    // can be null directly after doSetInput()
    if (statusField != null) {
      statusField.setText(getAnnotationMode().getShortName());
    }
  }
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.