mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-08-02 05:45:58 +02:00
rename of CDIExpressionManager to VariableManager
This commit is contained in:
parent
c8b6bb301b
commit
53ea3f20c4
4 changed files with 18 additions and 18 deletions
|
@ -59,7 +59,7 @@ public interface ICDISession
|
||||||
*
|
*
|
||||||
* @return the expression manager
|
* @return the expression manager
|
||||||
*/
|
*/
|
||||||
ICDIVariableManager getExpressionManager();
|
ICDIVariableManager getVariableManager();
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Returns the memory manager of this debug session.
|
* Returns the memory manager of this debug session.
|
||||||
|
|
|
@ -12,7 +12,7 @@ import org.eclipse.cdt.debug.core.cdi.CDIException;
|
||||||
import org.eclipse.cdt.debug.core.cdi.ICDIBreakpointManager;
|
import org.eclipse.cdt.debug.core.cdi.ICDIBreakpointManager;
|
||||||
import org.eclipse.cdt.debug.core.cdi.ICDIDebugConfiguration;
|
import org.eclipse.cdt.debug.core.cdi.ICDIDebugConfiguration;
|
||||||
import org.eclipse.cdt.debug.core.cdi.ICDIEventManager;
|
import org.eclipse.cdt.debug.core.cdi.ICDIEventManager;
|
||||||
import org.eclipse.cdt.debug.core.cdi.ICDIExpressionManager;
|
import org.eclipse.cdt.debug.core.cdi.ICDIVariableManager;
|
||||||
import org.eclipse.cdt.debug.core.cdi.ICDIMemoryManager;
|
import org.eclipse.cdt.debug.core.cdi.ICDIMemoryManager;
|
||||||
import org.eclipse.cdt.debug.core.cdi.ICDIRuntimeOptions;
|
import org.eclipse.cdt.debug.core.cdi.ICDIRuntimeOptions;
|
||||||
import org.eclipse.cdt.debug.core.cdi.ICDISession;
|
import org.eclipse.cdt.debug.core.cdi.ICDISession;
|
||||||
|
@ -31,7 +31,7 @@ public class CSession implements ICDISession, ICDISessionObject {
|
||||||
MISession session;
|
MISession session;
|
||||||
BreakpointManager breakpointManager;
|
BreakpointManager breakpointManager;
|
||||||
EventManager eventManager;
|
EventManager eventManager;
|
||||||
ExpressionManager expressionManager;
|
VariableManager expressionManager;
|
||||||
MemoryManager memoryManager;
|
MemoryManager memoryManager;
|
||||||
SignalManager signalManager;
|
SignalManager signalManager;
|
||||||
SourceManager sourceManager;
|
SourceManager sourceManager;
|
||||||
|
@ -43,7 +43,7 @@ public class CSession implements ICDISession, ICDISessionObject {
|
||||||
breakpointManager = new BreakpointManager(this);
|
breakpointManager = new BreakpointManager(this);
|
||||||
eventManager = new EventManager(this);
|
eventManager = new EventManager(this);
|
||||||
s.addObserver(eventManager);
|
s.addObserver(eventManager);
|
||||||
expressionManager = new ExpressionManager(this);
|
expressionManager = new VariableManager(this);
|
||||||
memoryManager = new MemoryManager(this);
|
memoryManager = new MemoryManager(this);
|
||||||
signalManager = new SignalManager(this);
|
signalManager = new SignalManager(this);
|
||||||
sourceManager = new SourceManager(this);
|
sourceManager = new SourceManager(this);
|
||||||
|
@ -84,9 +84,9 @@ public class CSession implements ICDISession, ICDISessionObject {
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @see org.eclipse.cdt.debug.core.cdi.ICDISession#getExpressionManager()
|
* @see org.eclipse.cdt.debug.core.cdi.ICDISession#getVariableManager()
|
||||||
*/
|
*/
|
||||||
public ICDIExpressionManager getExpressionManager() {
|
public ICDIVariableManager getVariableManager() {
|
||||||
return expressionManager;
|
return expressionManager;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -9,7 +9,7 @@ import java.util.ArrayList;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
import org.eclipse.cdt.debug.core.cdi.CDIException;
|
import org.eclipse.cdt.debug.core.cdi.CDIException;
|
||||||
import org.eclipse.cdt.debug.core.cdi.ICDIExpressionManager;
|
import org.eclipse.cdt.debug.core.cdi.ICDIVariableManager;
|
||||||
import org.eclipse.cdt.debug.core.cdi.ICDISession;
|
import org.eclipse.cdt.debug.core.cdi.ICDISession;
|
||||||
import org.eclipse.cdt.debug.core.cdi.model.ICDIExpression;
|
import org.eclipse.cdt.debug.core.cdi.model.ICDIExpression;
|
||||||
import org.eclipse.cdt.debug.core.cdi.model.ICDIGlobalVariable;
|
import org.eclipse.cdt.debug.core.cdi.model.ICDIGlobalVariable;
|
||||||
|
@ -393,7 +393,7 @@ public class CTarget implements ICDITarget {
|
||||||
*/
|
*/
|
||||||
public ICDIValue evaluateExpressionToValue(String expressionText)
|
public ICDIValue evaluateExpressionToValue(String expressionText)
|
||||||
throws CDIException {
|
throws CDIException {
|
||||||
ICDIExpressionManager mgr = session.getExpressionManager();
|
ICDIVariableManager mgr = session.getVariableManager();
|
||||||
ICDIExpression cexp = mgr.createExpression(expressionText);
|
ICDIExpression cexp = mgr.createExpression(expressionText);
|
||||||
ICDIValue value = cexp.getValue();
|
ICDIValue value = cexp.getValue();
|
||||||
mgr.removeExpression(cexp);
|
mgr.removeExpression(cexp);
|
||||||
|
|
|
@ -10,7 +10,7 @@ import java.util.List;
|
||||||
|
|
||||||
import org.eclipse.cdt.debug.core.cdi.CDIException;
|
import org.eclipse.cdt.debug.core.cdi.CDIException;
|
||||||
import org.eclipse.cdt.debug.core.cdi.ICDICondition;
|
import org.eclipse.cdt.debug.core.cdi.ICDICondition;
|
||||||
import org.eclipse.cdt.debug.core.cdi.ICDIExpressionManager;
|
import org.eclipse.cdt.debug.core.cdi.ICDIVariableManager;
|
||||||
import org.eclipse.cdt.debug.core.cdi.model.ICDIExpression;
|
import org.eclipse.cdt.debug.core.cdi.model.ICDIExpression;
|
||||||
import org.eclipse.cdt.debug.mi.core.MIException;
|
import org.eclipse.cdt.debug.mi.core.MIException;
|
||||||
import org.eclipse.cdt.debug.mi.core.MISession;
|
import org.eclipse.cdt.debug.mi.core.MISession;
|
||||||
|
@ -28,18 +28,18 @@ import org.eclipse.cdt.debug.mi.core.output.MIVarCreateInfo;
|
||||||
* To enable and disable the creation of type comments go to
|
* To enable and disable the creation of type comments go to
|
||||||
* Window>Preferences>Java>Code Generation.
|
* Window>Preferences>Java>Code Generation.
|
||||||
*/
|
*/
|
||||||
public class ExpressionManager
|
public class VariableManager
|
||||||
extends SessionObject
|
extends SessionObject
|
||||||
implements ICDIExpressionManager {
|
implements ICDIVariableManager {
|
||||||
|
|
||||||
List expList;
|
List expList;
|
||||||
public ExpressionManager(CSession session) {
|
public VariableManager(CSession session) {
|
||||||
super(session);
|
super(session);
|
||||||
expList = new ArrayList();
|
expList = new ArrayList();
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @see org.eclipse.cdt.debug.core.cdi.ICDIExpressionManager#getExpression(String)
|
* @see org.eclipse.cdt.debug.core.cdi.ICDIVariableManager#getExpression(String)
|
||||||
*/
|
*/
|
||||||
public ICDIExpression getExpression(String expressionId)
|
public ICDIExpression getExpression(String expressionId)
|
||||||
throws CDIException {
|
throws CDIException {
|
||||||
|
@ -53,14 +53,14 @@ public class ExpressionManager
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @see org.eclipse.cdt.debug.core.cdi.ICDIExpressionManager#getExpressions()
|
* @see org.eclipse.cdt.debug.core.cdi.ICDIVariableManager#getExpressions()
|
||||||
*/
|
*/
|
||||||
public ICDIExpression[] getExpressions() throws CDIException {
|
public ICDIExpression[] getExpressions() throws CDIException {
|
||||||
return (ICDIExpression[]) expList.toArray(new ICDIExpression[0]);
|
return (ICDIExpression[]) expList.toArray(new ICDIExpression[0]);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @see org.eclipse.cdt.debug.core.cdi.ICDIExpressionManager#removeExpression(ICDIExpression)
|
* @see org.eclipse.cdt.debug.core.cdi.ICDIVariableManager#removeExpression(ICDIExpression)
|
||||||
*/
|
*/
|
||||||
public void removeExpression(ICDIExpression expression)
|
public void removeExpression(ICDIExpression expression)
|
||||||
throws CDIException {
|
throws CDIException {
|
||||||
|
@ -80,7 +80,7 @@ public class ExpressionManager
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @see org.eclipse.cdt.debug.core.cdi.ICDIExpressionManager#removeExpressions(ICDIExpression[])
|
* @see org.eclipse.cdt.debug.core.cdi.ICDIVariableManager#removeExpressions(ICDIExpression[])
|
||||||
*/
|
*/
|
||||||
public void removeExpressions(ICDIExpression[] expressions)
|
public void removeExpressions(ICDIExpression[] expressions)
|
||||||
throws CDIException {
|
throws CDIException {
|
||||||
|
@ -90,7 +90,7 @@ public class ExpressionManager
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @see org.eclipse.cdt.debug.core.cdi.ICDIExpressionManager#createExpression(String)
|
* @see org.eclipse.cdt.debug.core.cdi.ICDIVariableManager#createExpression(String)
|
||||||
*/
|
*/
|
||||||
public ICDIExpression createExpression(String expressionId)
|
public ICDIExpression createExpression(String expressionId)
|
||||||
throws CDIException {
|
throws CDIException {
|
||||||
|
@ -113,7 +113,7 @@ public class ExpressionManager
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @see org.eclipse.cdt.debug.core.cdi.ICDIExpressionManager#createCondition(int, String)
|
* @see org.eclipse.cdt.debug.core.cdi.ICDIVariableManager#createCondition(int, String)
|
||||||
*/
|
*/
|
||||||
public ICDICondition createCondition(int ignoreCount, String expression) {
|
public ICDICondition createCondition(int ignoreCount, String expression) {
|
||||||
return new Condition(ignoreCount, expression);
|
return new Condition(ignoreCount, expression);
|
Loading…
Add table
Reference in a new issue