Changeset 2031


Ignore:
Timestamp:
07/30/15 14:27:03 (9 years ago)
Author:
pharms
Message:
  • added getting an exception if any
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/autoquest-ui-core/src/main/java/de/ugoe/cs/autoquest/commands/usability/CMDmergeSimilarTasks.java

    r1952 r2031  
    2121import de.ugoe.cs.autoquest.tasktrees.treeifc.ITaskModel; 
    2222import de.ugoe.cs.util.console.Command; 
     23import de.ugoe.cs.util.console.Console; 
    2324import de.ugoe.cs.util.console.GlobalDataContainer; 
    2425 
     
    7273        inputTaskModel = (ITaskModel) dataObject; 
    7374         
    74         ITaskModel taskModel = new TaskTreeManager().mergeSimilarTasks(inputTaskModel); 
    75          
    76         if (GlobalDataContainer.getInstance().addData(inputTaskTreeName, taskModel)) { 
    77             CommandHelpers.dataOverwritten(inputTaskTreeName); 
     75        try { 
     76            ITaskModel taskModel = new TaskTreeManager().mergeSimilarTasks(inputTaskModel); 
     77             
     78            if (GlobalDataContainer.getInstance().addData(inputTaskTreeName, taskModel)) { 
     79                CommandHelpers.dataOverwritten(inputTaskTreeName); 
     80            } 
     81        } 
     82        catch (Exception e) { 
     83            Console.logException(e); 
    7884        } 
    7985         
Note: See TracChangeset for help on using the changeset viewer.