use of org.erlide.ui.editors.erl.actions.CallHierarchyAction 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);
}
Aggregations