mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-06-06 17:26:01 +02:00
Defect 268629
This commit is contained in:
parent
2fc98aa21d
commit
25b0ee6d2e
4 changed files with 41 additions and 1 deletions
|
@ -469,6 +469,16 @@ public class RegisterBitFieldVMNode extends AbstractExpressionVMNode
|
||||||
update.setProperty(IRegisterVMConstants.PROP_CURRENT_MNEMONIC_LONG_NAME, mnemonic.getLongName());
|
update.setProperty(IRegisterVMConstants.PROP_CURRENT_MNEMONIC_LONG_NAME, mnemonic.getLongName());
|
||||||
update.setProperty(IRegisterVMConstants.PROP_CURRENT_MNEMONIC_SHORT_NAME, mnemonic.getShortName());
|
update.setProperty(IRegisterVMConstants.PROP_CURRENT_MNEMONIC_SHORT_NAME, mnemonic.getShortName());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/*
|
||||||
|
* If this node has an expression then it has already been filled in by the higher
|
||||||
|
* level logic. If not then we need to supply something. In the previous version
|
||||||
|
* ( pre-property based ) we supplied the name. So we will do that here also.
|
||||||
|
*/
|
||||||
|
IExpression expression = (IExpression)DebugPlugin.getAdapter(update.getElement(), IExpression.class);
|
||||||
|
if (expression == null) {
|
||||||
|
update.setProperty(AbstractExpressionVMNode.PROP_ELEMENT_EXPRESSION, data.getName());
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|
|
@ -320,7 +320,17 @@ public class RegisterGroupVMNode extends AbstractExpressionVMNode
|
||||||
@ConfinedToDsfExecutor("getSession().getExecutor()")
|
@ConfinedToDsfExecutor("getSession().getExecutor()")
|
||||||
protected void fillRegisterGroupDataProperties(IPropertiesUpdate update, IRegisterGroupDMData data) {
|
protected void fillRegisterGroupDataProperties(IPropertiesUpdate update, IRegisterGroupDMData data) {
|
||||||
update.setProperty(PROP_NAME, data.getName());
|
update.setProperty(PROP_NAME, data.getName());
|
||||||
update.setProperty(PROP_REGISTER_GROUP_DESCRIPTION, data.getName());
|
update.setProperty(PROP_REGISTER_GROUP_DESCRIPTION, data.getDescription());
|
||||||
|
|
||||||
|
/*
|
||||||
|
* If this node has an expression then it has already been filled in by the higher
|
||||||
|
* level logic. If not then we need to supply something. In the previous version
|
||||||
|
* ( pre-property based ) we supplied the name. So we will do that here also.
|
||||||
|
*/
|
||||||
|
IExpression expression = (IExpression)DebugPlugin.getAdapter(update.getElement(), IExpression.class);
|
||||||
|
if (expression == null) {
|
||||||
|
update.setProperty(AbstractExpressionVMNode.PROP_ELEMENT_EXPRESSION, data.getName());
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public int getDeltaFlags(Object e) {
|
public int getDeltaFlags(Object e) {
|
||||||
|
|
|
@ -448,6 +448,16 @@ public class RegisterVMNode extends AbstractExpressionVMNode
|
||||||
update.setProperty(IRegisterVMConstants.PROP_IS_READONCE, data.isReadOnce());
|
update.setProperty(IRegisterVMConstants.PROP_IS_READONCE, data.isReadOnce());
|
||||||
update.setProperty(IRegisterVMConstants.PROP_IS_WRITEABLE, data.isWriteable());
|
update.setProperty(IRegisterVMConstants.PROP_IS_WRITEABLE, data.isWriteable());
|
||||||
update.setProperty(IRegisterVMConstants.PROP_IS_WRITEONCE, data.isWriteOnce());
|
update.setProperty(IRegisterVMConstants.PROP_IS_WRITEONCE, data.isWriteOnce());
|
||||||
|
|
||||||
|
/*
|
||||||
|
* If this node has an expression then it has already been filled in by the higher
|
||||||
|
* level logic. If not then we need to supply something. In the previous version
|
||||||
|
* ( pre-property based ) we supplied the name. So we will do that here also.
|
||||||
|
*/
|
||||||
|
IExpression expression = (IExpression)DebugPlugin.getAdapter(update.getElement(), IExpression.class);
|
||||||
|
if (expression == null) {
|
||||||
|
update.setProperty(AbstractExpressionVMNode.PROP_ELEMENT_EXPRESSION, data.getName());
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|
|
@ -598,6 +598,16 @@ public class VariableVMNode extends AbstractExpressionVMNode
|
||||||
if (type != null) {
|
if (type != null) {
|
||||||
update.setProperty(PROP_VARIABLE_BASIC_TYPE, type.name());
|
update.setProperty(PROP_VARIABLE_BASIC_TYPE, type.name());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/*
|
||||||
|
* If this node has an expression then it has already been filled in by the higher
|
||||||
|
* level logic. If not then we need to supply something. In the previous version
|
||||||
|
* ( pre-property based ) we supplied the name. So we will do that here also.
|
||||||
|
*/
|
||||||
|
IExpression expression = (IExpression)DebugPlugin.getAdapter(update.getElement(), IExpression.class);
|
||||||
|
if (expression == null) {
|
||||||
|
update.setProperty(AbstractExpressionVMNode.PROP_ELEMENT_EXPRESSION, data.getName());
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Add table
Reference in a new issue