Search in sources :

Example 1 with OpenAction

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);
}
Also used : OpenAction(org.erlide.ui.actions.OpenAction) Action(org.eclipse.jface.action.Action) SendToConsoleAction(org.erlide.ui.editors.erl.actions.SendToConsoleAction) ContentAssistAction(org.eclipse.ui.texteditor.ContentAssistAction) OpenAction(org.erlide.ui.actions.OpenAction) ContentAssistAction(org.eclipse.ui.texteditor.ContentAssistAction) ResourceBundle(java.util.ResourceBundle) SendToConsoleAction(org.erlide.ui.editors.erl.actions.SendToConsoleAction)

Aggregations

ResourceBundle (java.util.ResourceBundle)1 Action (org.eclipse.jface.action.Action)1 ContentAssistAction (org.eclipse.ui.texteditor.ContentAssistAction)1 OpenAction (org.erlide.ui.actions.OpenAction)1 SendToConsoleAction (org.erlide.ui.editors.erl.actions.SendToConsoleAction)1