mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-04-29 19:45:01 +02:00
Bug 338472: Pinned view should blank out when session terminated
This commit is contained in:
parent
5bfffca532
commit
bf034bfc41
1 changed files with 13 additions and 0 deletions
|
@ -34,6 +34,8 @@ import org.eclipse.cdt.dsf.debug.service.IProcesses.IThreadDMData;
|
||||||
import org.eclipse.cdt.dsf.debug.service.IRunControl.IExitedDMEvent;
|
import org.eclipse.cdt.dsf.debug.service.IRunControl.IExitedDMEvent;
|
||||||
import org.eclipse.cdt.dsf.debug.service.IRunControl.IResumedDMEvent;
|
import org.eclipse.cdt.dsf.debug.service.IRunControl.IResumedDMEvent;
|
||||||
import org.eclipse.cdt.dsf.debug.service.IRunControl.IStartedDMEvent;
|
import org.eclipse.cdt.dsf.debug.service.IRunControl.IStartedDMEvent;
|
||||||
|
import org.eclipse.cdt.dsf.debug.service.command.ICommandControlService.ICommandControlDMContext;
|
||||||
|
import org.eclipse.cdt.dsf.debug.service.command.ICommandControlService.ICommandControlShutdownDMEvent;
|
||||||
import org.eclipse.cdt.dsf.debug.ui.viewmodel.launch.StateChangedEvent;
|
import org.eclipse.cdt.dsf.debug.ui.viewmodel.launch.StateChangedEvent;
|
||||||
import org.eclipse.cdt.dsf.mi.service.IMIContainerDMContext;
|
import org.eclipse.cdt.dsf.mi.service.IMIContainerDMContext;
|
||||||
import org.eclipse.cdt.dsf.mi.service.IMIExecutionDMContext;
|
import org.eclipse.cdt.dsf.mi.service.IMIExecutionDMContext;
|
||||||
|
@ -337,6 +339,11 @@ public class GdbPinProvider implements IPinProvider {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@DsfServiceEventHandler
|
||||||
|
public void handleEvent(final ICommandControlShutdownDMEvent event) {
|
||||||
|
doHandleEvent(event, IPinModelListener.EXITED);
|
||||||
|
}
|
||||||
|
|
||||||
@DsfServiceEventHandler
|
@DsfServiceEventHandler
|
||||||
public void handleEvent(final IExitedDMEvent event) {
|
public void handleEvent(final IExitedDMEvent event) {
|
||||||
doHandleEvent(event, IPinModelListener.EXITED);
|
doHandleEvent(event, IPinModelListener.EXITED);
|
||||||
|
@ -383,6 +390,12 @@ public class GdbPinProvider implements IPinProvider {
|
||||||
}
|
}
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// If we got a shutdown event
|
||||||
|
if (eventDmc instanceof ICommandControlDMContext) {
|
||||||
|
fireModleChangeEvent(listener, notificationId);
|
||||||
|
continue;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue