Search in sources :

Example 1 with EmptyIterator

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);
}
Also used : Script(edu.cmu.cs.hcii.cogtool.model.Script) EmptyIterator(edu.cmu.cs.hcii.cogtool.util.EmptyIterator) TaskGroup(edu.cmu.cs.hcii.cogtool.model.TaskGroup)

Aggregations

Script (edu.cmu.cs.hcii.cogtool.model.Script)1 TaskGroup (edu.cmu.cs.hcii.cogtool.model.TaskGroup)1 EmptyIterator (edu.cmu.cs.hcii.cogtool.util.EmptyIterator)1