directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From seelm...@apache.org
Subject svn commit: r750800 - /directory/studio/trunk/ldapbrowser-ui/src/main/java/org/apache/directory/studio/ldapbrowser/ui/editors/schemabrowser/SchemaBrowserManager.java
Date Fri, 06 Mar 2009 07:55:34 GMT
Author: seelmann
Date: Fri Mar  6 07:55:34 2009
New Revision: 750800

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

Modified:
    directory/studio/trunk/ldapbrowser-ui/src/main/java/org/apache/directory/studio/ldapbrowser/ui/editors/schemabrowser/SchemaBrowserManager.java

Modified: directory/studio/trunk/ldapbrowser-ui/src/main/java/org/apache/directory/studio/ldapbrowser/ui/editors/schemabrowser/SchemaBrowserManager.java
URL: http://svn.apache.org/viewvc/directory/studio/trunk/ldapbrowser-ui/src/main/java/org/apache/directory/studio/ldapbrowser/ui/editors/schemabrowser/SchemaBrowserManager.java?rev=750800&r1=750799&r2=750800&view=diff
==============================================================================
--- directory/studio/trunk/ldapbrowser-ui/src/main/java/org/apache/directory/studio/ldapbrowser/ui/editors/schemabrowser/SchemaBrowserManager.java
(original)
+++ directory/studio/trunk/ldapbrowser-ui/src/main/java/org/apache/directory/studio/ldapbrowser/ui/editors/schemabrowser/SchemaBrowserManager.java
Fri Mar  6 07:55:34 2009
@@ -82,13 +82,10 @@
             // set the input to already opened schema browser
             editor.setInput( input );
 
-            // bring schema browser to top only if a schema element should be displayed.

-            if ( input.getSchemaElement() != null )
+            // bring schema browser to top
+            if ( !PlatformUI.getWorkbench().getActiveWorkbenchWindow().getActivePage().isPartVisible(
editor ) )
             {
-                if ( !PlatformUI.getWorkbench().getActiveWorkbenchWindow().getActivePage().isPartVisible(
editor ) )
-                {
-                    PlatformUI.getWorkbench().getActiveWorkbenchWindow().getActivePage().bringToTop(
editor );
-                }
+                PlatformUI.getWorkbench().getActiveWorkbenchWindow().getActivePage().bringToTop(
editor );
             }
         }
     }



Mime
View raw message