directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From elecha...@apache.org
Subject svn commit: r1712999 - /directory/studio/trunk/plugins/openldap.config.editor/src/main/java/org/apache/directory/studio/openldap/config/editor/dialogs/DatabaseTypeDialog.java
Date Fri, 06 Nov 2015 17:59:03 GMT
Author: elecharny
Date: Fri Nov  6 17:59:02 2015
New Revision: 1712999

URL: http://svn.apache.org/viewvc?rev=1712999&view=rev
Log:
o Added the field that is returned when we select a valid database type

Modified:
    directory/studio/trunk/plugins/openldap.config.editor/src/main/java/org/apache/directory/studio/openldap/config/editor/dialogs/DatabaseTypeDialog.java

Modified: directory/studio/trunk/plugins/openldap.config.editor/src/main/java/org/apache/directory/studio/openldap/config/editor/dialogs/DatabaseTypeDialog.java
URL: http://svn.apache.org/viewvc/directory/studio/trunk/plugins/openldap.config.editor/src/main/java/org/apache/directory/studio/openldap/config/editor/dialogs/DatabaseTypeDialog.java?rev=1712999&r1=1712998&r2=1712999&view=diff
==============================================================================
--- directory/studio/trunk/plugins/openldap.config.editor/src/main/java/org/apache/directory/studio/openldap/config/editor/dialogs/DatabaseTypeDialog.java
(original)
+++ directory/studio/trunk/plugins/openldap.config.editor/src/main/java/org/apache/directory/studio/openldap/config/editor/dialogs/DatabaseTypeDialog.java
Fri Nov  6 17:59:02 2015
@@ -81,6 +81,9 @@ public class DatabaseTypeDialog extends
     // UI widgets
     private Combo databaseTypeCombo;
     
+    /** The selected Database type in the combo */
+    private DatabaseTypeEnum selectedDatabaseType;
+    
     /**
      * The listener in charge of exposing the changes when some buttons are checked
      */
@@ -96,6 +99,7 @@ public class DatabaseTypeDialog extends
                 Button okButton = getButton( IDialogConstants.OK_ID );
                 
                 DatabaseTypeEnum databaseType = DatabaseTypeEnum.getDatabaseType( databaseTypeCombo.getText()
);
+                selectedDatabaseType = databaseType;
                 
                 okButton.setEnabled( databaseType != DatabaseTypeEnum.NONE );
             }
@@ -206,4 +210,13 @@ public class DatabaseTypeDialog extends
     {
         databaseTypeCombo.addSelectionListener( databaseTypeSelectionListener );
     }
+    
+    
+    /**
+     * @return The selected DatabaseType
+     */
+    public DatabaseTypeEnum getDatabaseType()
+    {
+        return selectedDatabaseType;
+    }
 }



Mime
View raw message