summaryrefslogtreecommitdiffstats
path: root/bundles/org.eclipse.swt/Eclipse SWT/carbon/org/eclipse/swt/widgets/TableColumn.java
diff options
context:
space:
mode:
authorSilenio Quarti <silenio>2005-08-09 21:47:42 +0000
committerSilenio Quarti <silenio>2005-08-09 21:47:42 +0000
commit1bd4a6d238f246b1a33b1e165b82bcbcf963d2f9 (patch)
tree9154af8097c4b055540299cee6a46dd6b0d473c8 /bundles/org.eclipse.swt/Eclipse SWT/carbon/org/eclipse/swt/widgets/TableColumn.java
parent4e692e594829c957204f8759719ba27bd5c7bed5 (diff)
downloadeclipse.platform.swt-1bd4a6d238f246b1a33b1e165b82bcbcf963d2f9.tar.gz
eclipse.platform.swt-1bd4a6d238f246b1a33b1e165b82bcbcf963d2f9.tar.xz
eclipse.platform.swt-1bd4a6d238f246b1a33b1e165b82bcbcf963d2f9.zip
45708 & 4862 - recursive dispose
Diffstat (limited to 'bundles/org.eclipse.swt/Eclipse SWT/carbon/org/eclipse/swt/widgets/TableColumn.java')
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT/carbon/org/eclipse/swt/widgets/TableColumn.java13
1 files changed, 9 insertions, 4 deletions
diff --git a/bundles/org.eclipse.swt/Eclipse SWT/carbon/org/eclipse/swt/widgets/TableColumn.java b/bundles/org.eclipse.swt/Eclipse SWT/carbon/org/eclipse/swt/widgets/TableColumn.java
index e3b735a757..605816f412 100644
--- a/bundles/org.eclipse.swt/Eclipse SWT/carbon/org/eclipse/swt/widgets/TableColumn.java
+++ b/bundles/org.eclipse.swt/Eclipse SWT/carbon/org/eclipse/swt/widgets/TableColumn.java
@@ -183,6 +183,11 @@ protected void checkSubclass () {
if (!isValidSubclass ()) error (SWT.ERROR_INVALID_SUBCLASS);
}
+void destroyWidget () {
+ parent.destroyItem (this);
+ releaseHandle ();
+}
+
/**
* Returns a value which describes the position of the
* text or image in the receiver. The value will be one of
@@ -316,9 +321,10 @@ public void pack () {
setWidth (width + Table.EXTRA_WIDTH);
}
-void releaseChild () {
- super.releaseChild ();
- parent.destroyItem (this);
+void releaseHandle () {
+ super.releaseHandle ();
+ id = -1;
+ parent = null;
}
void releaseWidget () {
@@ -326,7 +332,6 @@ void releaseWidget () {
if (parent.sortColumn == this) {
parent.sortColumn = null;
}
- parent = null;
if (iconRef != 0) OS.ReleaseIconRef (iconRef);
iconRef = 0;
}