1
0
Fork 0
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:
Marc Khouzam 2011-03-04 19:03:30 +00:00
parent 5bfffca532
commit bf034bfc41

View file

@ -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.IResumedDMEvent;
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.mi.service.IMIContainerDMContext;
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
public void handleEvent(final IExitedDMEvent event) {
doHandleEvent(event, IPinModelListener.EXITED);
@ -383,6 +390,12 @@ public class GdbPinProvider implements IPinProvider {
}
continue;
}
// If we got a shutdown event
if (eventDmc instanceof ICommandControlDMContext) {
fireModleChangeEvent(listener, notificationId);
continue;
}
}
}
}