use of org.erlide.backend.console.BackendShellManager in project erlide_eclipse by erlang.
the class Backend method initialize.
@Override
public void initialize(final CodeContext context, final Collection<ICodeBundle> bundles) {
shellManager = new BackendShellManager(this);
runtime.addRuntimeListener(new Listener() {
@Override
public void terminated(final Service.State from) {
dispose();
getData().setLaunch(null);
}
@Override
public void failed(final State from, final Throwable failure) {
dispose();
getData().setLaunch(null);
}
@Override
public void running() {
codeManager = new CodeManager(getOtpRpc(), data.getRuntimeInfo().getName(), data.getRuntimeInfo().getVersion());
for (final ICodeBundle bb : bundles) {
registerCodeBundle(context, bb);
}
initErlang(data.isManaged());
try {
postLaunch();
} catch (final DebugException e) {
ErlLogger.error(e);
}
}
}, MoreExecutors.sameThreadExecutor());
}
Aggregations