Search in sources :

Example 1 with GotoMatchingBracketAction

use of org.erlide.ui.editors.erl.actions.GotoMatchingBracketAction in project erlide_eclipse by erlang.

the class ErlangEditor method createActions.

@Override
protected void createActions() {
    super.createActions();
    ActionGroup esg;
    fActionGroups = new CompositeActionGroup(new ActionGroup[] { esg = new ErlangSearchActionGroup(this) });
    fContextMenuGroup = new CompositeActionGroup(new ActionGroup[] { esg });
    createCommonActions();
    compileAction = new CompileAction(getSite());
    compileAction.setActionDefinitionId(IErlangEditorActionDefinitionIds.COMPILE);
    setAction("compileFile", compileAction);
    if (getModule() != null) {
        cleanUpAction = new CleanUpAction(getModule().getResource());
        cleanUpAction.setActionDefinitionId(IErlangEditorActionDefinitionIds.CLEAN_UP);
        setAction("cleanUp", cleanUpAction);
    }
    callhierarchy = new CallHierarchyAction(this, getModule());
    callhierarchy.setActionDefinitionId(IErlangEditorActionDefinitionIds.CALLHIERARCHY);
    setAction("callHierarchy", callhierarchy);
    markAsStateDependentAction("CallHierarchy", true);
    markAsSelectionDependentAction("CallHierarchy", true);
    if (SystemConfiguration.getInstance().isClearCacheAvailable()) {
        setupClearCacheActions();
    // PlatformUI.getWorkbench().getHelpSystem().setHelp(indentAction,
    // IErlangHelpContextIds.INDENT_ACTION);
    }
    fShowOutline = new ShowOutlineAction(ErlangEditorMessages.getBundleForConstructedKeys(), "ShowOutline.", this);
    fShowOutline.setActionDefinitionId(IErlangEditorActionDefinitionIds.SHOW_OUTLINE);
    setAction(IErlangEditorActionDefinitionIds.SHOW_OUTLINE, fShowOutline);
    markAsContentDependentAction(IErlangEditorActionDefinitionIds.SHOW_OUTLINE, true);
    final Action action = new GotoMatchingBracketAction(this);
    action.setActionDefinitionId(IErlangEditorActionDefinitionIds.GOTO_MATCHING_BRACKET);
    setAction(GotoMatchingBracketAction.GOTO_MATCHING_BRACKET, action);
}
Also used : GotoMatchingBracketAction(org.erlide.ui.editors.erl.actions.GotoMatchingBracketAction) CompositeActionGroup(org.erlide.ui.actions.CompositeActionGroup) ErlangSearchActionGroup(org.erlide.ui.actions.ErlangSearchActionGroup) CallHierarchyAction(org.erlide.ui.editors.erl.actions.CallHierarchyAction) ShowOutlineAction(org.erlide.ui.editors.erl.actions.ShowOutlineAction) CleanUpAction(org.erlide.ui.editors.erl.actions.CleanUpAction) CallHierarchyAction(org.erlide.ui.editors.erl.actions.CallHierarchyAction) CompileAction(org.erlide.ui.editors.erl.actions.CompileAction) ShowOutlineAction(org.erlide.ui.editors.erl.actions.ShowOutlineAction) ClearCacheAction(org.erlide.ui.editors.erl.actions.ClearCacheAction) ClearAllCachesAction(org.erlide.ui.editors.erl.actions.ClearAllCachesAction) GotoMatchingBracketAction(org.erlide.ui.editors.erl.actions.GotoMatchingBracketAction) Action(org.eclipse.jface.action.Action) CompileAction(org.erlide.ui.editors.erl.actions.CompileAction) ErlangSearchActionGroup(org.erlide.ui.actions.ErlangSearchActionGroup) CompositeActionGroup(org.erlide.ui.actions.CompositeActionGroup) ActionGroup(org.eclipse.ui.actions.ActionGroup) CleanUpAction(org.erlide.ui.editors.erl.actions.CleanUpAction)

Aggregations

Action (org.eclipse.jface.action.Action)1 ActionGroup (org.eclipse.ui.actions.ActionGroup)1 CompositeActionGroup (org.erlide.ui.actions.CompositeActionGroup)1 ErlangSearchActionGroup (org.erlide.ui.actions.ErlangSearchActionGroup)1 CallHierarchyAction (org.erlide.ui.editors.erl.actions.CallHierarchyAction)1 CleanUpAction (org.erlide.ui.editors.erl.actions.CleanUpAction)1 ClearAllCachesAction (org.erlide.ui.editors.erl.actions.ClearAllCachesAction)1 ClearCacheAction (org.erlide.ui.editors.erl.actions.ClearCacheAction)1 CompileAction (org.erlide.ui.editors.erl.actions.CompileAction)1 GotoMatchingBracketAction (org.erlide.ui.editors.erl.actions.GotoMatchingBracketAction)1 ShowOutlineAction (org.erlide.ui.editors.erl.actions.ShowOutlineAction)1