- Timestamp:
- 09/26/14 10:42:53 (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/autoquest-core-tasktrees/src/main/java/de/ugoe/cs/autoquest/tasktrees/treeimpl/Selection.java
r1404 r1764 46 46 47 47 /* (non-Javadoc) 48 * @see de.ugoe.cs.autoquest.tasktrees.treeimpl.StructuringTemporalRelationship#clone()48 * @see StructuringTemporalRelationship#clone() 49 49 */ 50 50 @Override … … 54 54 55 55 /* (non-Javadoc) 56 * @see de.ugoe.cs.autoquest.tasktrees.treeimpl.StructuringTemporalRelationship#addChild(ITask)56 * @see StructuringTemporalRelationship#addChild(ITask) 57 57 */ 58 58 @Override 59 59 void addChild(ITask newChild) { 60 if (newChild instanceof ISelection) { 61 throw new IllegalArgumentException("the child of a selection must not be a selection"); 62 } 63 60 64 super.addChild(newChild); 61 65 } 62 66 63 67 /* (non-Javadoc) 64 * @see de.ugoe.cs.autoquest.tasktrees.treeimpl.StructuringTemporalRelationship#addChild(int,ITask)68 * @see StructuringTemporalRelationship#addChild(int,ITask) 65 69 */ 66 70 @Override 67 71 void addChild(int index, ITask newChild) { 72 if (newChild instanceof ISelection) { 73 throw new IllegalArgumentException("the child of a selection must not be a selection"); 74 } 75 68 76 super.addChild(index, newChild); 69 77 }
Note: See TracChangeset
for help on using the changeset viewer.