use of com.intellij.debugger.ui.HotSwapUI in project intellij-plugins by JetBrains.
the class BndLaunchState method startProcess.
@NotNull
@Override
protected OSProcessHandler startProcess() throws ExecutionException {
OSProcessHandler handler = super.startProcess();
MessageBusConnection connection = myProject.getMessageBus().connect();
connection.subscribe(CompilerTopics.COMPILATION_STATUS, this);
HotSwapUI hotSwapManager = HotSwapUI.getInstance(myProject);
hotSwapManager.addListener(this);
handler.addProcessListener(new ProcessAdapter() {
@Override
public void processTerminated(ProcessEvent event) {
connection.disconnect();
hotSwapManager.removeListener(BndLaunchState.this);
myLauncher.cleanup();
}
});
return handler;
}
Aggregations