directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From pamarce...@apache.org
Subject svn commit: r638776 - in /directory/studio/trunk/schemaeditor/src/main/java/org/apache/directory/studio/schemaeditor/view/dialogs: AttributeTypeSelectionDialog.java ObjectClassSelectionDialog.java
Date Wed, 19 Mar 2008 10:21:06 GMT
Author: pamarcelot
Date: Wed Mar 19 03:21:02 2008
New Revision: 638776

URL: http://svn.apache.org/viewvc?rev=638776&view=rev
Log:
Fix for DIRSTUDIO-163 (Schema Editor keep leaking GDI Handles)

Modified:
    directory/studio/trunk/schemaeditor/src/main/java/org/apache/directory/studio/schemaeditor/view/dialogs/AttributeTypeSelectionDialog.java
    directory/studio/trunk/schemaeditor/src/main/java/org/apache/directory/studio/schemaeditor/view/dialogs/ObjectClassSelectionDialog.java

Modified: directory/studio/trunk/schemaeditor/src/main/java/org/apache/directory/studio/schemaeditor/view/dialogs/AttributeTypeSelectionDialog.java
URL: http://svn.apache.org/viewvc/directory/studio/trunk/schemaeditor/src/main/java/org/apache/directory/studio/schemaeditor/view/dialogs/AttributeTypeSelectionDialog.java?rev=638776&r1=638775&r2=638776&view=diff
==============================================================================
--- directory/studio/trunk/schemaeditor/src/main/java/org/apache/directory/studio/schemaeditor/view/dialogs/AttributeTypeSelectionDialog.java
(original)
+++ directory/studio/trunk/schemaeditor/src/main/java/org/apache/directory/studio/schemaeditor/view/dialogs/AttributeTypeSelectionDialog.java
Wed Mar 19 03:21:02 2008
@@ -316,4 +316,30 @@
             attributeTypesTableViewer.setSelection( new StructuredSelection( firstElement
), true );
         }
     }
+
+
+    /* (non-Javadoc)
+     * @see org.eclipse.jface.dialogs.Dialog#close()
+     */
+    public boolean close()
+    {
+        hiddenAttributeTypes.clear();
+        hiddenAttributeTypes = null;
+
+        attributeTypesTableViewer = null;
+
+        attributeTypesTable.dispose();
+        attributeTypesTable = null;
+
+        searchText.dispose();
+        searchText = null;
+
+        schemaIconLabel.dispose();
+        schemaIconLabel = null;
+
+        schemaNameLabel.dispose();
+        schemaNameLabel = null;
+
+        return super.close();
+    }
 }

Modified: directory/studio/trunk/schemaeditor/src/main/java/org/apache/directory/studio/schemaeditor/view/dialogs/ObjectClassSelectionDialog.java
URL: http://svn.apache.org/viewvc/directory/studio/trunk/schemaeditor/src/main/java/org/apache/directory/studio/schemaeditor/view/dialogs/ObjectClassSelectionDialog.java?rev=638776&r1=638775&r2=638776&view=diff
==============================================================================
--- directory/studio/trunk/schemaeditor/src/main/java/org/apache/directory/studio/schemaeditor/view/dialogs/ObjectClassSelectionDialog.java
(original)
+++ directory/studio/trunk/schemaeditor/src/main/java/org/apache/directory/studio/schemaeditor/view/dialogs/ObjectClassSelectionDialog.java
Wed Mar 19 03:21:02 2008
@@ -317,4 +317,30 @@
             objectClassesTableViewer.setSelection( new StructuredSelection( firstElement
), true );
         }
     }
+
+
+    /* (non-Javadoc)
+     * @see org.eclipse.jface.dialogs.Dialog#close()
+     */
+    public boolean close()
+    {
+        hiddenObjectClasses.clear();
+        hiddenObjectClasses = null;
+
+        objectClassesTableViewer = null;
+
+        objectClassesTable.dispose();
+        objectClassesTable = null;
+
+        searchText.dispose();
+        searchText = null;
+
+        schemaIconLabel.dispose();
+        schemaIconLabel = null;
+
+        schemaNameLabel.dispose();
+        schemaNameLabel = null;
+
+        return super.close();
+    }
 }



Mime
View raw message