Search in sources :

Example 1 with ErlangDebuggerBackendListener

use of org.erlide.debug.ui.model.ErlangDebuggerBackendListener 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();
}
Also used : UIMessageReporter(org.erlide.ui.UIMessageReporter) ErlangDebuggerBackendListener(org.erlide.debug.ui.model.ErlangDebuggerBackendListener) NoRuntimeHandler(org.erlide.ui.util.NoRuntimeHandler) ErlConsoleManager(org.erlide.ui.console.ErlConsoleManager)

Aggregations

ErlangDebuggerBackendListener (org.erlide.debug.ui.model.ErlangDebuggerBackendListener)1 UIMessageReporter (org.erlide.ui.UIMessageReporter)1 ErlConsoleManager (org.erlide.ui.console.ErlConsoleManager)1 NoRuntimeHandler (org.erlide.ui.util.NoRuntimeHandler)1