commit | b0f71808cf01fc4023075fe907175a033812d2b6 | [log] [tgz] |
---|---|---|
author | kchong <kchong> | Wed May 03 19:22:10 2006 +0000 |
committer | kchong <kchong> | Wed May 03 19:22:10 2006 +0000 |
tree | 0949ab45ed7cd03424de52fe5343a9d4319ff728 | |
parent | 011d4a2f3ae16935caf1fb8d4e99c46d926b6388 [diff] |
[139090] Use component reference edit manager for element and attribute types in the property sheet. Remove listeners
diff --git a/bundles/org.eclipse.wst.xsd.ui/src-common/org/eclipse/wst/xsd/ui/internal/common/properties/sections/XSDAttributeDeclarationSection.java b/bundles/org.eclipse.wst.xsd.ui/src-common/org/eclipse/wst/xsd/ui/internal/common/properties/sections/XSDAttributeDeclarationSection.java index 9149470..776116f 100644 --- a/bundles/org.eclipse.wst.xsd.ui/src-common/org/eclipse/wst/xsd/ui/internal/common/properties/sections/XSDAttributeDeclarationSection.java +++ b/bundles/org.eclipse.wst.xsd.ui/src-common/org/eclipse/wst/xsd/ui/internal/common/properties/sections/XSDAttributeDeclarationSection.java
@@ -317,5 +317,14 @@ return true; } + + public void dispose() + { + if (nameText != null && !nameText.isDisposed()) + removeListeners(nameText); + if (typeCombo != null && !typeCombo.isDisposed()) + typeCombo.removeSelectionListener(this); + super.dispose(); + } }
diff --git a/bundles/org.eclipse.wst.xsd.ui/src-common/org/eclipse/wst/xsd/ui/internal/common/properties/sections/XSDElementDeclarationSection.java b/bundles/org.eclipse.wst.xsd.ui/src-common/org/eclipse/wst/xsd/ui/internal/common/properties/sections/XSDElementDeclarationSection.java index c9fba73..edfc7a1 100644 --- a/bundles/org.eclipse.wst.xsd.ui/src-common/org/eclipse/wst/xsd/ui/internal/common/properties/sections/XSDElementDeclarationSection.java +++ b/bundles/org.eclipse.wst.xsd.ui/src-common/org/eclipse/wst/xsd/ui/internal/common/properties/sections/XSDElementDeclarationSection.java
@@ -488,6 +488,10 @@ minCombo.removeSelectionListener(this); if (maxCombo != null && !maxCombo.isDisposed()) maxCombo.removeSelectionListener(this); + if (typeCombo != null && !typeCombo.isDisposed()) + typeCombo.removeSelectionListener(this); + if (nameText != null && !nameText.isDisposed()) + removeListeners(nameText); super.dispose(); }