use of org.erlide.backend.api.ICodeBundle 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());
}
use of org.erlide.backend.api.ICodeBundle in project erlide_eclipse by erlang.
the class BackendManager method addBundle.
private void addBundle(final Bundle b, final RuntimeVersion version, final Multimap<CodeContext, String> paths, final Collection<Pair<String, String>> inits) {
final ICodeBundle p = codeBundles.get(b);
if (p != null) {
return;
}
final CodeBundle pp = new CodeBundle(b, version, paths, inits);
codeBundles.put(b, pp);
}
Aggregations