Skip to content

Commit

Permalink
eclipse-che#3121 add workspace sopped event listener to disable maven…
Browse files Browse the repository at this point in the history
… project resolver (eclipse-che#3311)

Signed-off-by: Evgen Vidolob <[email protected]>
  • Loading branch information
Evgen Vidolob authored Dec 9, 2016
1 parent 24793e7 commit 1e49e26
Showing 1 changed file with 8 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,14 @@
import com.google.inject.Inject;
import com.google.inject.Singleton;
import com.google.web.bindery.event.shared.EventBus;

import org.eclipse.che.api.promises.client.Operation;
import org.eclipse.che.api.promises.client.OperationException;
import org.eclipse.che.ide.api.app.AppContext;
import org.eclipse.che.ide.api.machine.WsAgentStateController;
import org.eclipse.che.ide.api.machine.events.WsAgentStateEvent;
import org.eclipse.che.ide.api.machine.events.WsAgentStateHandler;
import org.eclipse.che.ide.api.resources.Container;
import org.eclipse.che.ide.api.workspace.event.WorkspaceStoppedEvent;
import org.eclipse.che.ide.collections.Jso;
import org.eclipse.che.ide.dto.DtoFactory;
import org.eclipse.che.ide.extension.machine.client.outputspanel.console.CommandConsoleFactory;
Expand Down Expand Up @@ -107,6 +107,13 @@ public void onWsAgentStopped(WsAgentStateEvent event) {
dependencyResolver.hide();
}
});

eventBus.addHandler(WorkspaceStoppedEvent.TYPE, new WorkspaceStoppedEvent.Handler() {
@Override
public void onWorkspaceStopped(WorkspaceStoppedEvent event) {
dependencyResolver.hide();
}
});
}


Expand Down

0 comments on commit 1e49e26

Please sign in to comment.