use of edu.cmu.cs.hcii.cogtool.util.EmptyIterator in project cogtool by cogtool.
the class ScriptViewerUIModel method getCurrentOverrides.
/**
* Enumerates values from the current override "backward" until the
* value defined by the attributed (which might be the default value).
*/
@Override
public Iterator<Object> getCurrentOverrides(IAttributed attributed, String attrName) {
Script s = scriptUIModel.getScript(currentOverride);
if (s == null) {
return new EmptyIterator<Object>();
}
TaskGroup group = (TaskGroup) taskDesign.getTask();
return new AttributeOverrideIterator(group.getUndertakings(), s, currentOverride, attributed, attrName);
}
Aggregations