Changeset 1952 for trunk/autoquest-ui-core/src/main/java
- Timestamp:
- 05/29/15 12:08:20 (10 years ago)
- File:
-
- 1 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
Note: See TracChangeset
for help on using the changeset viewer.