openAction.setActionDefinitionId(IErlangEditorActionDefinitionIds.OPEN_EDITOR);
setAction(IErlangEditorActionDefinitionIds.OPEN, openAction);
final ResourceBundle keyBundle = ErlangEditorMessages
.getBundleForConstructedKeys();
sendToConsole = new SendToConsoleAction(getSite(), keyBundle, "SendToConsole.",
this, false, getProject());
sendToConsole
.setActionDefinitionId(IErlangEditorActionDefinitionIds.SEND_TO_CONSOLE);
setAction("SendToConsole", sendToConsole);
markAsStateDependentAction("sendToConsole", true);
markAsSelectionDependentAction("sendToConsole", true);
sendToConsoleWithResult = new SendToConsoleAction(getSite(), keyBundle,
"SendToConsoleWithResult.", this, true, getProject());
sendToConsoleWithResult
.setActionDefinitionId(IErlangEditorActionDefinitionIds.SEND_TO_CONSOLE_WITH_RESULT);
setAction("SendToConsoleWithResult", sendToConsoleWithResult);
markAsStateDependentAction("sendToConsoleWithResult", true);