Changeset 1261


Ignore:
Timestamp:
07/25/13 14:46:42 (11 years ago)
Author:
pharms
Message:
  • bugfix when mergin root nodes in GUI model
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/autoquest-ui-swt/src/main/java/de/ugoe/cs/autoquest/ui/swt/ShowGuiModelDialog.java

    r1088 r1261  
    191191         
    192192        // update visualization of the model 
    193         firstParent.removeAll(); 
    194         buildGuiTree(firstParent, model.getTraverser((IGUIElement) firstParent.getData())); 
    195         firstParent.setExpanded(true); 
     193        if (firstParent != null) { 
     194            firstParent.removeAll(); 
     195            buildGuiTree(firstParent, model.getTraverser((IGUIElement) firstParent.getData())); 
     196            firstParent.setExpanded(true); 
     197        } 
     198        else { 
     199            guiTree.removeAll(); 
     200            buildGuiTree(); 
     201        } 
    196202    } 
    197203 
Note: See TracChangeset for help on using the changeset viewer.