Ignore:
Timestamp:
04/19/13 19:31:35 (12 years ago)
Author:
adeicke
Message:

Adjustments due to changed Visitor interface.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/autoquest-core-usability-evaluation/src/main/java/de/ugoe/cs/autoquest/usability/rules/patterns/UsagePatternVisitor.java

    r1152 r1160  
    2727import de.ugoe.cs.autoquest.tasktrees.treeifc.ISelection; 
    2828import de.ugoe.cs.autoquest.tasktrees.treeifc.ITask; 
    29 import de.ugoe.cs.autoquest.tasktrees.treeifc.ITaskModel; 
     29import de.ugoe.cs.autoquest.tasktrees.treeifc.ITaskVisitor; 
    3030import de.ugoe.cs.autoquest.usability.tasktree.filters.EventTypeFilter; 
    31 import de.ugoe.cs.autoquest.usability.util.PatternsVisitorUtil; 
    3231 
    3332/** 
     
    3837 * @author Alexander Deicke 
    3938 */ 
    40 public abstract class UsagePatternVisitor implements NodeVisitor { 
     39public abstract class UsagePatternVisitor implements ITaskVisitor { 
    4140     
    4241    protected EventTypeFilter eventType; 
     
    7776     
    7877    /* (non-Javadoc) 
     78     * @see de.ugoe.cs.autoquest.tasktrees.treeifc.TaskVisitor#accept(de.ugoe.cs.autoquest.tasktrees.treeifc.ITask) 
     79     */ 
     80    @Override 
     81    public void visit(ITask task) { 
     82        task.accept(this); 
     83         
     84    } 
     85     
     86    /* (non-Javadoc) 
    7987     * @see de.ugoe.cs.autoquest.tasktrees.treeifc.NodeVisitor#visit(de.ugoe.cs.autoquest.tasktrees.treeifc.ISelection) 
    8088     */ 
     
    8492            this.present = patternIsPresent(); 
    8593        } else { 
    86             ITaskModel taskModel = PatternsVisitorUtil.createTaskModelFromNode(selection); 
    87             this.present = containedPattern.containedIn(taskModel);   
     94            this.present = containedPattern.containedIn(selection);   
    8895        } 
    8996    } 
Note: See TracChangeset for help on using the changeset viewer.