Search in sources :

Example 1 with ActiveRuntime

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;
    }
}
Also used : ActiveRuntime(org.eclipse.che.ide.api.machine.ActiveRuntime)

Example 2 with ActiveRuntime

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);
}
Also used : ActiveRuntime(org.eclipse.che.ide.api.machine.ActiveRuntime)

Aggregations

ActiveRuntime (org.eclipse.che.ide.api.machine.ActiveRuntime)2