directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From seelm...@apache.org
Subject svn commit: r526681 - /directory/ldapstudio/trunk/ldapstudio-schemas-plugin/src/main/java/org/apache/directory/ldapstudio/schemas/controller/SchemasViewController.java
Date Mon, 09 Apr 2007 09:15:28 GMT
Author: seelmann
Date: Mon Apr  9 02:15:27 2007
New Revision: 526681

URL: http://svn.apache.org/viewvc?view=rev&rev=526681
Log:
Fixed ClassCastException

Modified:
    directory/ldapstudio/trunk/ldapstudio-schemas-plugin/src/main/java/org/apache/directory/ldapstudio/schemas/controller/SchemasViewController.java

Modified: directory/ldapstudio/trunk/ldapstudio-schemas-plugin/src/main/java/org/apache/directory/ldapstudio/schemas/controller/SchemasViewController.java
URL: http://svn.apache.org/viewvc/directory/ldapstudio/trunk/ldapstudio-schemas-plugin/src/main/java/org/apache/directory/ldapstudio/schemas/controller/SchemasViewController.java?view=diff&rev=526681&r1=526680&r2=526681
==============================================================================
--- directory/ldapstudio/trunk/ldapstudio-schemas-plugin/src/main/java/org/apache/directory/ldapstudio/schemas/controller/SchemasViewController.java
(original)
+++ directory/ldapstudio/trunk/ldapstudio-schemas-plugin/src/main/java/org/apache/directory/ldapstudio/schemas/controller/SchemasViewController.java
Mon Apr  9 02:15:27 2007
@@ -449,6 +449,11 @@
              */
             public void selectionChanged( IWorkbenchPart part, ISelection selection )
             {
+                if ( ! ( selection instanceof TreeSelection ) )
+                {
+                    return;
+                }
+                
                 TreeSelection treeSelection = ( TreeSelection ) selection;
 
                 Object selectedObject = ( ( TreeSelection ) selection ).getFirstElement();



Mime
View raw message