Search in sources :

Example 1 with ErlangConsole

use of org.erlide.ui.console.ErlangConsole in project erlide_eclipse by erlang.

the class ConsoleRemoveLaunchAction method getLaunch.

protected ILaunch getLaunch() {
    if (fConsoleView == null) {
        return fLaunch;
    }
    // else get dynamically, as this action was created via plug-in XML view
    // contribution
    final IConsole console = fConsoleView.getConsole();
    if (console instanceof ErlangConsole) {
        final ErlangConsole pconsole = (ErlangConsole) console;
        final IBackend backend = pconsole.getBackend();
        return backend.getData().getLaunch();
    }
    return null;
}
Also used : ErlangConsole(org.erlide.ui.console.ErlangConsole) IBackend(org.erlide.backend.api.IBackend) IConsole(org.eclipse.ui.console.IConsole)

Aggregations

IConsole (org.eclipse.ui.console.IConsole)1 IBackend (org.erlide.backend.api.IBackend)1 ErlangConsole (org.erlide.ui.console.ErlangConsole)1