use of org.erlide.ui.console.ErlConsoleManager in project erlide_eclipse by erlang.
the class SendToConsoleAction method getConsole.
private IErlangConsole getConsole(@NonNull final IProject aproject) {
final IBackendManager backendManager = BackendCore.getBackendManager();
final Set<IBackend> executionBackends = backendManager.getExecutionBackends(aproject);
final ErlConsoleManager erlConsoleManager = ErlideUIPlugin.getDefault().getErlConsoleManager();
IErlangConsole result = null;
for (final IBackend backend : executionBackends) {
result = erlConsoleManager.getConsole(backend);
if (result != null) {
break;
}
}
return result;
}
use of org.erlide.ui.console.ErlConsoleManager in project erlide_eclipse by erlang.
the class ErlideUIPlugin method start.
@Override
public void start(final BundleContext context) throws Exception {
ErlLogger.info("Starting UI " + Thread.currentThread());
super.start(context);
final String workspace = ResourcesPlugin.getWorkspace().getRoot().getLocation().toPortableString();
if (!ErlangEngine.getInstance().isAvailable()) {
notifyNoRuntimeAndRestart(workspace);
} else if (HostnameChecker.getInstance().getErlangHostName(true) == null && HostnameChecker.getInstance().getErlangHostName(false) == null) {
notifyBadHostname(workspace);
}
ErlideEventBus.register(new NoRuntimeHandler());
ErlideEventBus.register(new UIMessageReporter());
if (SystemConfiguration.getInstance().isDeveloper()) {
BackendManagerPopup.init();
}
ErlLogger.info("Started UI");
erlConsoleManager = new ErlConsoleManager();
ConsolePlugin.getDefault().getConsoleManager().addConsoleListener(erlConsoleManager);
erlangDebuggerBackendListener = new ErlangDebuggerBackendListener();
BackendCore.getBackendManager().addBackendListener(erlangDebuggerBackendListener);
startPeriodicCacheCleaner();
checkNavigatorView();
}
Aggregations