Changeset 1283 for trunk/autoquest-core-events/src
- Timestamp:
- 07/30/13 09:41:12 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/autoquest-core-events/src/main/java/de/ugoe/cs/autoquest/eventcore/guimodel/GUIModel.java
r1260 r1283 428 428 // check if both nodes have the same parent 429 429 IGUIElement parentElement = guiElement1.getParent(); 430 if (parentElement != null && !parentElement.equals(guiElement2.getParent())) { 430 boolean sameParent = (parentElement != null) ? 431 parentElement.equals(guiElement2.getParent()) : (guiElement2.getParent() == null); 432 433 if (!sameParent) { 431 434 throw new IllegalArgumentException("can only merge nodes with the same parent"); 432 435 } … … 434 437 // get the TreeNode of the parent of the GUI elements 435 438 TreeNode parent = findNode(parentElement); 439 440 if ((parent == null) && (parentElement == null)) { 441 // merging root nodes. The parent is the root node of the GUI element tree 442 parent = root; 443 } 436 444 437 445 // get the TreeNodes for both GUI elements
Note: See TracChangeset
for help on using the changeset viewer.