mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-04-29 19:45:01 +02:00
Small cleanup
This commit is contained in:
parent
5ca73b2a53
commit
f81f76b7a0
1 changed files with 3 additions and 3 deletions
|
@ -922,11 +922,10 @@ public class MIVariableManager implements ICommandControl {
|
||||||
// which the value can change.
|
// which the value can change.
|
||||||
private Map<String, MIVariableObject> modifiableDescendants;
|
private Map<String, MIVariableObject> modifiableDescendants;
|
||||||
|
|
||||||
public MIRootVariableObject(VariableObjectId id, IExpressionDMContext exprCtx) {
|
public MIRootVariableObject(VariableObjectId id) {
|
||||||
super(id, null);
|
super(id, null);
|
||||||
currentState = STATE_NOT_CREATED;
|
currentState = STATE_NOT_CREATED;
|
||||||
modifiableDescendants = new HashMap<String, MIVariableObject>();
|
modifiableDescendants = new HashMap<String, MIVariableObject>();
|
||||||
fControlContext = DMContexts.getAncestorOfType(exprCtx, MIControlDMContext.class);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public MIControlDMContext getControlDMContext() { return fControlContext; }
|
public MIControlDMContext getControlDMContext() { return fControlContext; }
|
||||||
|
@ -955,6 +954,7 @@ public class MIVariableManager implements ICommandControl {
|
||||||
if (currentState == STATE_NOT_CREATED) {
|
if (currentState == STATE_NOT_CREATED) {
|
||||||
|
|
||||||
currentState = STATE_CREATING;
|
currentState = STATE_CREATING;
|
||||||
|
fControlContext = DMContexts.getAncestorOfType(exprCtx, MIControlDMContext.class);
|
||||||
|
|
||||||
fCommandControl.queueCommand(
|
fCommandControl.queueCommand(
|
||||||
new MIVarCreate(exprCtx, exprCtx.getExpression()),
|
new MIVarCreate(exprCtx, exprCtx.getExpression()),
|
||||||
|
@ -1439,7 +1439,7 @@ public class MIVariableManager implements ICommandControl {
|
||||||
|
|
||||||
// Variable objects that are created directly like this, are considered ROOT variable objects
|
// Variable objects that are created directly like this, are considered ROOT variable objects
|
||||||
// in comparison to variable objects that are children of other variable objects.
|
// in comparison to variable objects that are children of other variable objects.
|
||||||
final MIRootVariableObject newVarObj = new MIRootVariableObject(id, exprCtx);
|
final MIRootVariableObject newVarObj = new MIRootVariableObject(id);
|
||||||
|
|
||||||
// We must put this object in our map right away, in case it is
|
// We must put this object in our map right away, in case it is
|
||||||
// requested again, before it completes its creation.
|
// requested again, before it completes its creation.
|
||||||
|
|
Loading…
Add table
Reference in a new issue