Ignore:
Timestamp:
05/29/15 12:08:20 (10 years ago)
Author:
pharms
Message:
  • changed command back to change input task tree as cloning a full task model does not work and its correct implementation would take too long
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  
    4141    @Override 
    4242    public String help() { 
    43         return "mergeSimilarTasks <inputTaskTree> {<outputTaskTree>}"; 
     43        return "mergeSimilarTasks <inputTaskTree>"; 
    4444    } 
    4545 
     
    5252    public void run(List<Object> parameters) { 
    5353        String inputTaskTreeName; 
    54         String outputTaskTreeName; 
    5554        try { 
    5655            inputTaskTreeName = (String) parameters.get(0); 
    57             if (parameters.size() > 1) { 
    58                 outputTaskTreeName = (String) parameters.get(1); 
    59             } 
    60             else { 
    61                 outputTaskTreeName = inputTaskTreeName; 
    62             } 
    6356        } 
    6457        catch (Exception e) { 
     
    7972        inputTaskModel = (ITaskModel) dataObject; 
    8073         
    81         inputTaskModel = inputTaskModel.clone(); 
    82          
    8374        ITaskModel taskModel = new TaskTreeManager().mergeSimilarTasks(inputTaskModel); 
    8475         
    85         if (GlobalDataContainer.getInstance().addData(outputTaskTreeName, taskModel)) { 
    86             CommandHelpers.dataOverwritten(outputTaskTreeName); 
     76        if (GlobalDataContainer.getInstance().addData(inputTaskTreeName, taskModel)) { 
     77            CommandHelpers.dataOverwritten(inputTaskTreeName); 
    8778        } 
    8879         
  • trunk/autoquest-ui-core/src/main/resources/manuals/mergeSimilarTasks

    r1889 r1952  
    1 Merges similar tasks in a given task model. 
     1Merges 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. 
    22 
    33$USAGE$ 
    44<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) 
    65 
    76Example(s) 
    8 mergeSimilarTasks tasktree tasktree2 
     7mergeSimilarTasks tasktree 
Note: See TracChangeset for help on using the changeset viewer.