use of org.erlide.ui.actions.OpenAction in project erlide_eclipse by erlang.
the class AbstractErlangEditor method createCommonActions.
protected void createCommonActions() {
openAction = new OpenAction(this);
openAction.setActionDefinitionId(IErlangEditorActionDefinitionIds.OPEN_EDITOR);
setAction(IErlangEditorActionDefinitionIds.OPEN, openAction);
final ResourceBundle keyBundle = ErlangEditorMessages.getBundleForConstructedKeys();
if (getProject() != null) {
sendToConsole = new SendToConsoleAction(getSite(), keyBundle, "SendToConsole.", this, false, getProject().getWorkspaceProject());
sendToConsole.setActionDefinitionId(IErlangEditorActionDefinitionIds.SEND_TO_CONSOLE);
setAction("SendToConsole", sendToConsole);
markAsStateDependentAction("sendToConsole", true);
markAsSelectionDependentAction("sendToConsole", true);
sendToConsoleWithResult = new SendToConsoleAction(getSite(), keyBundle, "SendToConsoleWithResult.", this, true, getProject().getWorkspaceProject());
sendToConsoleWithResult.setActionDefinitionId(IErlangEditorActionDefinitionIds.SEND_TO_CONSOLE_WITH_RESULT);
setAction("SendToConsoleWithResult", sendToConsoleWithResult);
markAsStateDependentAction("sendToConsoleWithResult", true);
markAsSelectionDependentAction("sendToConsoleWithResult", true);
}
final Action contentAssistAction = new ContentAssistAction(keyBundle, "ContentAssistProposal.", this);
contentAssistAction.setActionDefinitionId(ITextEditorActionDefinitionIds.CONTENT_ASSIST_PROPOSALS);
setAction("ContentAssistProposal", contentAssistAction);
markAsStateDependentAction("ContentAssistProposal", true);
}
Aggregations