summaryrefslogtreecommitdiffstats
path: root/bundles
diff options
context:
space:
mode:
authorSilenio Quarti <silenio>2008-08-08 04:49:50 +0000
committerSilenio Quarti <silenio>2008-08-08 04:49:50 +0000
commit511d352658587d6af56ea5fe5cdaa8a866077159 (patch)
tree67b8626957420239271c00b2430667f0c7561b7a /bundles
parent88a045fe5f6b15533f8048265628ff2db28e8681 (diff)
downloadeclipse.platform.swt-511d352658587d6af56ea5fe5cdaa8a866077159.tar.gz
eclipse.platform.swt-511d352658587d6af56ea5fe5cdaa8a866077159.tar.xz
eclipse.platform.swt-511d352658587d6af56ea5fe5cdaa8a866077159.zip
*** empty log message ***
Diffstat (limited to 'bundles')
-rw-r--r--bundles/org.eclipse.swt.tools/Mac Generation/org/eclipse/swt/tools/internal/MacGeneratorUI.java3
1 files changed, 1 insertions, 2 deletions
diff --git a/bundles/org.eclipse.swt.tools/Mac Generation/org/eclipse/swt/tools/internal/MacGeneratorUI.java b/bundles/org.eclipse.swt.tools/Mac Generation/org/eclipse/swt/tools/internal/MacGeneratorUI.java
index 06998f4a74..1a66cfe82b 100644
--- a/bundles/org.eclipse.swt.tools/Mac Generation/org/eclipse/swt/tools/internal/MacGeneratorUI.java
+++ b/bundles/org.eclipse.swt.tools/Mac Generation/org/eclipse/swt/tools/internal/MacGeneratorUI.java
@@ -38,7 +38,7 @@ public class MacGeneratorUI {
String name = node.getNodeName();
if (name.equals("#text")) return null;
TreeItem parentItem = null;
- if (lastParent != null && name.equals(lastParent.getData())) {
+ if (lastParent != null && lastParent.getParentItem() == superItem && name.equals(lastParent.getData())) {
parentItem = lastParent;
} else {
TreeItem[] items = superItem.getItems();
@@ -153,7 +153,6 @@ public class MacGeneratorUI {
TreeItem item = (TreeItem)event.item, dummy;
if (item.getItemCount() == 1 && (dummy = item.getItem(0)).getData() == null) {
dummy.dispose();
- lastParent = null;
Node node = (Node)item.getData();
NodeList childNodes = node.getChildNodes();
for (int i = 0, length = childNodes.getLength(); i < length; i++) {