Changeset 1952 for trunk/autoquest-ui-core/src/main
- Timestamp:
- 05/29/15 12:08:20 (10 years ago)
- Location:
- trunk/autoquest-ui-core/src/main
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/autoquest-ui-core/src/main/java/de/ugoe/cs/autoquest/commands/usability/CMDmergeSimilarTasks.java
r1889 r1952 41 41 @Override 42 42 public String help() { 43 return "mergeSimilarTasks <inputTaskTree> {<outputTaskTree>}";43 return "mergeSimilarTasks <inputTaskTree>"; 44 44 } 45 45 … … 52 52 public void run(List<Object> parameters) { 53 53 String inputTaskTreeName; 54 String outputTaskTreeName;55 54 try { 56 55 inputTaskTreeName = (String) parameters.get(0); 57 if (parameters.size() > 1) {58 outputTaskTreeName = (String) parameters.get(1);59 }60 else {61 outputTaskTreeName = inputTaskTreeName;62 }63 56 } 64 57 catch (Exception e) { … … 79 72 inputTaskModel = (ITaskModel) dataObject; 80 73 81 inputTaskModel = inputTaskModel.clone();82 83 74 ITaskModel taskModel = new TaskTreeManager().mergeSimilarTasks(inputTaskModel); 84 75 85 if (GlobalDataContainer.getInstance().addData( outputTaskTreeName, taskModel)) {86 CommandHelpers.dataOverwritten( outputTaskTreeName);76 if (GlobalDataContainer.getInstance().addData(inputTaskTreeName, taskModel)) { 77 CommandHelpers.dataOverwritten(inputTaskTreeName); 87 78 } 88 79 -
trunk/autoquest-ui-core/src/main/resources/manuals/mergeSimilarTasks
r1889 r1952 1 Merges similar tasks in a given task model. 1 Merges similar tasks in a given task model. The result of the merge is stored in the task model. Hence, this command changes the provided task model. 2 2 3 3 $USAGE$ 4 4 <inputTaskTree> name of the task model in which similar tasks shall be merged 5 <outputTaskTree> name of the object to store the resulting task model in (defaults to the input task tree)6 5 7 6 Example(s) 8 mergeSimilarTasks tasktree tasktree27 mergeSimilarTasks tasktree
Note: See TracChangeset
for help on using the changeset viewer.