summaryrefslogtreecommitdiffstats
path: root/bundles/org.eclipse.swt.tools/Mac Generation/org/eclipse/swt/tools/internal/MacGeneratorUI.java
diff options
context:
space:
mode:
Diffstat (limited to 'bundles/org.eclipse.swt.tools/Mac Generation/org/eclipse/swt/tools/internal/MacGeneratorUI.java')
-rw-r--r--bundles/org.eclipse.swt.tools/Mac Generation/org/eclipse/swt/tools/internal/MacGeneratorUI.java10
1 files changed, 9 insertions, 1 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 a544918754..fce8e98532 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
@@ -41,7 +41,7 @@ public class MacGeneratorUI {
if (node.getNodeType() == Node.TEXT_NODE) return null;
String name = node.getNodeName();
TreeItem parentItem = null;
- if (lastParent != null && lastParent.getParentItem() == superItem && name.equals(lastParent.getData())) {
+ if (lastParent != null && !lastParent.isDisposed() && lastParent.getParentItem() == superItem && name.equals(lastParent.getData())) {
parentItem = lastParent;
} else {
TreeItem[] items = superItem.getItems();
@@ -570,6 +570,14 @@ public class MacGeneratorUI {
}
}
+ public void refresh () {
+ if (nodesTree == null) return;
+ gen.setXmls(null);
+ nodesTree.removeAll();
+ attribTable.removeAll();
+ updateNodes();
+ }
+
public void setActionsVisible(boolean visible) {
this.actions = visible;
}