Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarc Khouzam2010-03-04 18:13:17 +0000
committerMarc Khouzam2010-03-04 18:13:17 +0000
commit6226996c98810f946bb63d1c630329157552be4d (patch)
tree7cacf499af28c856d49338b09061ad5d0974fb35 /dsf-gdb
parentcaa20b4d376cad914de08e8a73b27becef3dcd39 (diff)
downloadorg.eclipse.cdt-6226996c98810f946bb63d1c630329157552be4d.tar.gz
org.eclipse.cdt-6226996c98810f946bb63d1c630329157552be4d.tar.xz
org.eclipse.cdt-6226996c98810f946bb63d1c630329157552be4d.zip
[304146] Use the command factory in AbstractMIControl
Diffstat (limited to 'dsf-gdb')
-rw-r--r--dsf-gdb/org.eclipse.cdt.dsf.gdb/src/org/eclipse/cdt/dsf/mi/service/command/AbstractMIControl.java10
1 files changed, 5 insertions, 5 deletions
diff --git a/dsf-gdb/org.eclipse.cdt.dsf.gdb/src/org/eclipse/cdt/dsf/mi/service/command/AbstractMIControl.java b/dsf-gdb/org.eclipse.cdt.dsf.gdb/src/org/eclipse/cdt/dsf/mi/service/command/AbstractMIControl.java
index fa4824e4bda..550a6b499b6 100644
--- a/dsf-gdb/org.eclipse.cdt.dsf.gdb/src/org/eclipse/cdt/dsf/mi/service/command/AbstractMIControl.java
+++ b/dsf-gdb/org.eclipse.cdt.dsf.gdb/src/org/eclipse/cdt/dsf/mi/service/command/AbstractMIControl.java
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2006, 2008 Wind River Systems and others.
+ * Copyright (c) 2006, 2010 Wind River Systems and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
@@ -41,8 +41,6 @@ import org.eclipse.cdt.dsf.gdb.internal.GdbPlugin;
import org.eclipse.cdt.dsf.mi.service.IMICommandControl;
import org.eclipse.cdt.dsf.mi.service.IMIExecutionDMContext;
import org.eclipse.cdt.dsf.mi.service.command.commands.MICommand;
-import org.eclipse.cdt.dsf.mi.service.command.commands.MIStackSelectFrame;
-import org.eclipse.cdt.dsf.mi.service.command.commands.MIThreadSelect;
import org.eclipse.cdt.dsf.mi.service.command.commands.RawCommand;
import org.eclipse.cdt.dsf.mi.service.command.output.MIConst;
import org.eclipse.cdt.dsf.mi.service.command.output.MIInfo;
@@ -315,7 +313,8 @@ public abstract class AbstractMIControl extends AbstractDsfService
if (targetThread != null && !targetThread.equals("0") && !targetThread.equals(fCurrentThreadId)) { //$NON-NLS-1$
fCurrentThreadId = targetThread;
resetCurrentStackLevel();
- CommandHandle cmdHandle = new CommandHandle(new MIThreadSelect(targetContext, targetThread), null);
+ CommandHandle cmdHandle = new CommandHandle(
+ (MICommand<MIInfo>)getCommandFactory().createMIThreadSelect(targetContext, targetThread), null);
cmdHandle.generateTokenId();
fTxCommands.add(cmdHandle);
}
@@ -324,7 +323,8 @@ public abstract class AbstractMIControl extends AbstractDsfService
// the queue only if the level has been changed.
if (targetFrame >= 0 && targetFrame != fCurrentStackLevel) {
fCurrentStackLevel = targetFrame;
- CommandHandle cmdHandle = new CommandHandle(new MIStackSelectFrame(targetContext, targetFrame), null);
+ CommandHandle cmdHandle = new CommandHandle(
+ (MICommand<MIInfo>)getCommandFactory().createMIStackSelectFrame(targetContext, targetFrame), null);
cmdHandle.generateTokenId();
fTxCommands.add(cmdHandle);
}

Back to the top