directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From pamarce...@apache.org
Subject svn commit: r1202302 - /directory/studio/trunk/plugins/apacheds.configuration.v2/src/main/java/org/apache/directory/studio/apacheds/configuration/v2/editor/ServerConfigurationEditorPage.java
Date Tue, 15 Nov 2011 16:52:08 GMT
Author: pamarcelot
Date: Tue Nov 15 16:52:08 2011
New Revision: 1202302

URL: http://svn.apache.org/viewvc?rev=1202302&view=rev
Log:
Added a new utility method.

Modified:
    directory/studio/trunk/plugins/apacheds.configuration.v2/src/main/java/org/apache/directory/studio/apacheds/configuration/v2/editor/ServerConfigurationEditorPage.java

Modified: directory/studio/trunk/plugins/apacheds.configuration.v2/src/main/java/org/apache/directory/studio/apacheds/configuration/v2/editor/ServerConfigurationEditorPage.java
URL: http://svn.apache.org/viewvc/directory/studio/trunk/plugins/apacheds.configuration.v2/src/main/java/org/apache/directory/studio/apacheds/configuration/v2/editor/ServerConfigurationEditorPage.java?rev=1202302&r1=1202301&r2=1202302&view=diff
==============================================================================
--- directory/studio/trunk/plugins/apacheds.configuration.v2/src/main/java/org/apache/directory/studio/apacheds/configuration/v2/editor/ServerConfigurationEditorPage.java
(original)
+++ directory/studio/trunk/plugins/apacheds.configuration.v2/src/main/java/org/apache/directory/studio/apacheds/configuration/v2/editor/ServerConfigurationEditorPage.java
Tue Nov 15 16:52:08 2011
@@ -445,6 +445,21 @@ public abstract class ServerConfiguratio
 
 
     /**
+     * Sets the enabled state to the given control.
+     *
+     * @param control the control
+     * @param enabled the enabled state
+     */
+    protected void setEnabled( Control control, boolean enabled )
+    {
+        if ( ( control != null ) && ( !control.isDisposed() ) )
+        {
+            control.setEnabled( enabled );
+        }
+    }
+
+
+    /**
      * Sets the given {@link GridData} to the control
      * and sets the width to a default value.
      *



Mime
View raw message