use of org.eclipse.che.ide.api.machine.ActiveRuntime in project che by eclipse.
the class AppContextImpl method setWorkspace.
@Override
public void setWorkspace(Workspace workspace) {
if (workspace != null) {
usersWorkspace = workspace;
if (workspace.getRuntime() != null) {
runtime = new ActiveRuntime(workspace.getRuntime());
}
} else {
usersWorkspace = null;
runtime = null;
}
}
use of org.eclipse.che.ide.api.machine.ActiveRuntime in project che by eclipse.
the class CommandProducerActionManager method start.
@Override
public void start(final Callback<Component, Exception> callback) {
ActiveRuntime activeRuntime = appContext.getActiveRuntime();
if (activeRuntime != null) {
machines.addAll(activeRuntime.getMachines());
}
callback.onSuccess(this);
}
Aggregations