Package org.eclipse.ui.texteditor

Examples of org.eclipse.ui.texteditor.StatusLineContributionItem


   */
  @Override
  public void contributeToStatusLine(IStatusLineManager statusLineManager) {
    super.contributeToStatusLine(statusLineManager);

    mStatusLineModeItem = new StatusLineContributionItem(ID);

    mStatusLineModeItem.setVisible(true);

    statusLineManager.add(mStatusLineModeItem);
  }
View Full Code Here


   */
  @Override
  public void contributeToStatusLine(IStatusLineManager statusLineManager) {
    super.contributeToStatusLine(statusLineManager);

    mStatusLineModeItem = new StatusLineContributionItem(ID);

    mStatusLineModeItem.setVisible(true);

    statusLineManager.add(mStatusLineModeItem);
  }
View Full Code Here

public class ColoringEditorContribution extends BasicTextEditorActionContributor {
  protected StatusLineContributionItem modeStatus;
 
  public ColoringEditorContribution() {
    super();
    modeStatus = new StatusLineContributionItem(EditorPlugin.STATUS_CATEGORY_MODE);
  }
View Full Code Here

        control.addListener(eventType, listener);
      }
    }
   
    public static StatusLineContributionItem createStructuralEditionModeStatusContributionItem() {
    return new StatusLineContributionItem(
        ClojureSourceViewer.STATUS_CATEGORY_STRUCTURAL_EDITION,
        true,
        STATUS_STRUCTURAL_EDITION_CHARS_WIDTH);
    }
View Full Code Here

  public void updateStructuralEditingModeStatusField() {
    if (this.statusLineHandler == null) {
      return;
    }
     
    StatusLineContributionItem field = this.statusLineHandler.getEditingModeStatusContributionItem();
    if (field != null) {
      field.setText((isStructuralEditingEnabled() ? "strict/paredit" : "unrestricted")
                    + " edit mode" + (inEscapeSequence ? " ESC" : ""));
      field.setToolTipText(
          (isStructuralEditingEnabled()
              ? "strict/paredit edit mode:\neditor does its best to prevent you from breaking the structure of the code (requires you to know shortcut commands well)."
                : "unrestricted edit mode:\nhelps you with edition, but does not get in your way."));
    }
  }
View Full Code Here

    gotoPreviousMember.setActionDefinitionId(IClojureEditorActionDefinitionIds.GOTO_PREVIOUS_MEMBER);

    fStatusFields= new HashMap(3);
    for (int i= 0; i < STATUS_FIELD_DEFS.length; i++) {
      StatusFieldDef fieldDef= STATUS_FIELD_DEFS[i];
      fStatusFields.put(fieldDef, new StatusLineContributionItem(fieldDef.category, fieldDef.visible, fieldDef.widthInChars));
    }
 
  }
View Full Code Here

    actionBars.setGlobalActionHandler(ITextEditorActionConstants.PREVIOUS, action);

 
    for (int i= 0; i < STATUS_FIELD_DEFS.length; i++) {
      if (fActiveEditorPart instanceof ITextEditorExtension) {
        StatusLineContributionItem statusField= (StatusLineContributionItem) fStatusFields.get(STATUS_FIELD_DEFS[i]);
        statusField.setActionHandler(getAction(textEditor, STATUS_FIELD_DEFS[i].actionId));
        ITextEditorExtension extension= (ITextEditorExtension) fActiveEditorPart;
        extension.setStatusField(statusField, STATUS_FIELD_DEFS[i].category);
      }
    }
  }
View Full Code Here

TOP

Related Classes of org.eclipse.ui.texteditor.StatusLineContributionItem

Copyright © 2018 www.massapicom. 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.