1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-07-28 11:25:35 +02:00

[225193] Simplified AbstractVMContext constructor.

This commit is contained in:
Pawel Piech 2008-04-01 20:09:43 +00:00
parent 7fe354ae79
commit cb02c10c78

View file

@ -67,8 +67,8 @@ public class PDAProgramVMNode extends AbstractDMVMNode
// VM node object, such that two terminated program contexts // VM node object, such that two terminated program contexts
// from the same instance of VM node will be equal. // from the same instance of VM node will be equal.
private static class TerminatedProgramVMContext extends AbstractVMContext { private static class TerminatedProgramVMContext extends AbstractVMContext {
TerminatedProgramVMContext(IVMAdapter adapter, IVMNode node) { TerminatedProgramVMContext(IVMNode node) {
super(adapter, node); super(node);
} }
@Override @Override
@ -123,7 +123,7 @@ public class PDAProgramVMNode extends AbstractDMVMNode
if (launch != null && launch.isInitialized() && launch.isShutDown()) { if (launch != null && launch.isInitialized() && launch.isShutDown()) {
// If the debug session has been shut down, add a dummy // If the debug session has been shut down, add a dummy
// VM context representing the PDA thread. // VM context representing the PDA thread.
update.setChild(new TerminatedProgramVMContext(getVMProvider().getVMAdapter(), this), 0); update.setChild(new TerminatedProgramVMContext(this), 0);
update.done(); update.done();
} else { } else {
super.update(new IChildrenUpdate[] { update }); super.update(new IChildrenUpdate[] { update });