use of edu.cmu.cs.hcii.cogtool.util.GlobalAttributed in project cogtool by cogtool.
the class AScriptStep method overrideAttribute.
public void overrideAttribute(IAttributed attributed, String attrName, Object value) {
IAttributed override;
if (attributed == getStepFocus()) {
override = this;
} else {
if (overrides == null) {
overrides = new HashMap<IAttributed, IAttributed>();
}
override = overrides.get(attributed);
if (override == null) {
override = new GlobalAttributed();
overrides.put(attributed, override);
}
}
override.setAttribute(attrName, value);
attributed.raiseAlert(new OverrideChange(this, attrName, true));
}
Aggregations