Package de.innovationgate.eclipse.editors.actions

Examples of de.innovationgate.eclipse.editors.actions.SurroundWithAction


   
    String actionId ="de.innovationgate.eclipse.wgadesigner.editors.tml.actions.ContentAssistProposal";
    setAction(actionId, action);
    markAsStateDependentAction(actionId, true);

      setAction(SurroundWithAction.ID, new SurroundWithAction());
        if(Plugin.getDefault().getPreferenceStore().getBoolean(Preferences.DISPLAY_TMLEDITOR_TOOLBAR)){
            showToolbar();
        }
  }
View Full Code Here


  protected void editorContextMenuAboutToShow(IMenuManager menu) {
    super.editorContextMenuAboutToShow(menu);
   
    menu.appendToGroup(ITextEditorActionConstants.GROUP_EDIT, new CommandContributionItem(new CommandContributionItemParameter(getSite(), null, ToggleComment.ID, null, null, null, null, "Toggle comment", null, null, CommandContributionItem.STYLE_PUSH, null, true)));   
    menu.appendToGroup(ITextEditorActionConstants.GROUP_EDIT, new CommandContributionItem(new CommandContributionItemParameter(getSite(), null, CreateLabel.ID, null, null, null, null, "Create label", null, null, CommandContributionItem.STYLE_PUSH, null, true)));
    menu.appendToGroup(ITextEditorActionConstants.GROUP_EDIT, new SurroundWithAction());
    menu.appendToGroup(ITextEditorActionConstants.GROUP_EDIT, new CommandContributionItem(new CommandContributionItemParameter(getSite(), null, DisplayHelp.ID, null, null, null, null, "Display help", null, null, CommandContributionItem.STYLE_PUSH, null, true)));
  }
View Full Code Here

  @Override
  protected void editorContextMenuAboutToShow(IMenuManager menu) {
    super.editorContextMenuAboutToShow(menu);
    menu.appendToGroup(ITextEditorActionConstants.GROUP_EDIT, new CommandContributionItem(new CommandContributionItemParameter(getSite(), null, ToggleComment.ID, null, null, null, null, "Toggle comment", null, null, CommandContributionItem.STYLE_PUSH, null, true)));
    menu.appendToGroup(ITextEditorActionConstants.GROUP_EDIT, new SurroundWithAction());
  }
View Full Code Here


  @Override
  protected void createActions() {
    super.createActions();
    setAction(SurroundWithAction.ID, new SurroundWithAction());
  }
View Full Code Here

TOP

Related Classes of de.innovationgate.eclipse.editors.actions.SurroundWithAction

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.