directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From pamarce...@apache.org
Subject svn commit: r560951 - /directory/studio/trunk/studio-apacheds-schemaeditor/src/main/java/org/apache/directory/studio/apacheds/schemaeditor/controller/SchemaViewController.java
Date Mon, 30 Jul 2007 12:45:53 GMT
Author: pamarcelot
Date: Mon Jul 30 05:45:53 2007
New Revision: 560951

URL: http://svn.apache.org/viewvc?view=rev&rev=560951
Log:
Set the Sorting and Preferences Actions disabled when no project is opened.

Modified:
    directory/studio/trunk/studio-apacheds-schemaeditor/src/main/java/org/apache/directory/studio/apacheds/schemaeditor/controller/SchemaViewController.java

Modified: directory/studio/trunk/studio-apacheds-schemaeditor/src/main/java/org/apache/directory/studio/apacheds/schemaeditor/controller/SchemaViewController.java
URL: http://svn.apache.org/viewvc/directory/studio/trunk/studio-apacheds-schemaeditor/src/main/java/org/apache/directory/studio/apacheds/schemaeditor/controller/SchemaViewController.java?view=diff&rev=560951&r1=560950&r2=560951
==============================================================================
--- directory/studio/trunk/studio-apacheds-schemaeditor/src/main/java/org/apache/directory/studio/apacheds/schemaeditor/controller/SchemaViewController.java
(original)
+++ directory/studio/trunk/studio-apacheds-schemaeditor/src/main/java/org/apache/directory/studio/apacheds/schemaeditor/controller/SchemaViewController.java
Mon Jul 30 05:45:53 2007
@@ -484,18 +484,18 @@
                 {
                     removeSchemaHandlerListener( oldProject );
                 }
-                else
+
+                if ( newProject != null )
                 {
                     viewer.getTree().setEnabled( true );
                     newSchema.setEnabled( true );
                     newAttributeType.setEnabled( true );
                     newObjectClass.setEnabled( true );
-                    linkWithEditor.setEnabled( true );
                     collapseAll.setEnabled( true );
-                }
+                    linkWithEditor.setEnabled( true );
+                    openSchemaViewSortingDialog.setEnabled( true );
+                    openSchemaViewPreference.setEnabled( true );
 
-                if ( newProject != null )
-                {
                     addSchemaHandlerListener( newProject );
                     view.reloadViewer();
                 }
@@ -506,8 +506,10 @@
                     newSchema.setEnabled( false );
                     newAttributeType.setEnabled( false );
                     newObjectClass.setEnabled( false );
-                    linkWithEditor.setEnabled( false );
                     collapseAll.setEnabled( false );
+                    linkWithEditor.setEnabled( false );
+                    openSchemaViewSortingDialog.setEnabled( false );
+                    openSchemaViewPreference.setEnabled( false );
                 }
             }
         } );



Mime
View raw message