directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From seelm...@apache.org
Subject svn commit: r503899 - /directory/ldapstudio/trunk/ldapstudio-browser-ui/src/main/java/org/apache/directory/ldapstudio/browser/ui/editors/ldif/LdifOutlinePage.java
Date Mon, 05 Feb 2007 22:15:26 GMT
Author: seelmann
Date: Mon Feb  5 14:15:25 2007
New Revision: 503899

URL: http://svn.apache.org/viewvc?view=rev&rev=503899
Log:
Fix for DIRSTUDIO-50

Modified:
    directory/ldapstudio/trunk/ldapstudio-browser-ui/src/main/java/org/apache/directory/ldapstudio/browser/ui/editors/ldif/LdifOutlinePage.java

Modified: directory/ldapstudio/trunk/ldapstudio-browser-ui/src/main/java/org/apache/directory/ldapstudio/browser/ui/editors/ldif/LdifOutlinePage.java
URL: http://svn.apache.org/viewvc/directory/ldapstudio/trunk/ldapstudio-browser-ui/src/main/java/org/apache/directory/ldapstudio/browser/ui/editors/ldif/LdifOutlinePage.java?view=diff&rev=503899&r1=503898&r2=503899
==============================================================================
--- directory/ldapstudio/trunk/ldapstudio-browser-ui/src/main/java/org/apache/directory/ldapstudio/browser/ui/editors/ldif/LdifOutlinePage.java
(original)
+++ directory/ldapstudio/trunk/ldapstudio-browser-ui/src/main/java/org/apache/directory/ldapstudio/browser/ui/editors/ldif/LdifOutlinePage.java
Mon Feb  5 14:15:25 2007
@@ -245,7 +245,7 @@
     public void refresh( Object element )
     {
         final TreeViewer treeViewer = getTreeViewer();
-        if ( treeViewer != null )
+        if ( treeViewer != null && treeViewer.getTree() != null && !treeViewer.getTree().isDisposed()
)
         {
             treeViewer.refresh( element );
         }
@@ -259,7 +259,7 @@
     {
         final TreeViewer treeViewer = getTreeViewer();
 
-        if ( treeViewer != null )
+        if ( treeViewer != null && treeViewer.getTree() != null && !treeViewer.getTree().isDisposed()
)
         {
             // ISelection selection = treeViewer.getSelection();
             // Object[] expandedElements = treeViewer.getExpandedElements();



Mime
View raw message