directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From pamarce...@apache.org
Subject svn commit: r690981 - in /directory/studio/trunk/connection-ui/src/main/java/org/apache/directory/studio/connection/ui: ConnectionUIConstants.java wizards/NewConnectionWizard.java
Date Mon, 01 Sep 2008 14:47:07 GMT
Author: pamarcelot
Date: Mon Sep  1 07:47:06 2008
New Revision: 690981

URL: http://svn.apache.org/viewvc?rev=690981&view=rev
Log:
Part of a fix for DIRSTUDIO-375 (Move each plugin IDs in a plugin.properties file).

Modified:
    directory/studio/trunk/connection-ui/src/main/java/org/apache/directory/studio/connection/ui/ConnectionUIConstants.java
    directory/studio/trunk/connection-ui/src/main/java/org/apache/directory/studio/connection/ui/wizards/NewConnectionWizard.java

Modified: directory/studio/trunk/connection-ui/src/main/java/org/apache/directory/studio/connection/ui/ConnectionUIConstants.java
URL: http://svn.apache.org/viewvc/directory/studio/trunk/connection-ui/src/main/java/org/apache/directory/studio/connection/ui/ConnectionUIConstants.java?rev=690981&r1=690980&r2=690981&view=diff
==============================================================================
--- directory/studio/trunk/connection-ui/src/main/java/org/apache/directory/studio/connection/ui/ConnectionUIConstants.java
(original)
+++ directory/studio/trunk/connection-ui/src/main/java/org/apache/directory/studio/connection/ui/ConnectionUIConstants.java
Mon Sep  1 07:47:06 2008
@@ -80,16 +80,19 @@
 
     public static final String TYPENAME = ConnectionUIPlugin.getDefault().getPluginProperties().getString(
         "ConnectionTransfert_Typename" );
-    
+
     public static final String CMD_COPY = ConnectionUIPlugin.getDefault().getPluginProperties().getString(
         "Cmd_Copy_id" );
-    
+
     public static final String CMD_PASTE = ConnectionUIPlugin.getDefault().getPluginProperties().getString(
         "Cmd_Paste_id" );
-    
+
     public static final String CMD_DELETE = ConnectionUIPlugin.getDefault().getPluginProperties().getString(
         "Cmd_Delete_id" );
-    
+
     public static final String CMD_PROPERTIES = ConnectionUIPlugin.getDefault().getPluginProperties().getString(
         "Cmd_Properties_id" );
+
+    public static final String NEW_WIZARD_NEW_CONNECTION = ConnectionUIPlugin.getDefault().getPluginProperties()
+        .getString( "NewWizards_NewConnectionWizard_id" );
 }

Modified: directory/studio/trunk/connection-ui/src/main/java/org/apache/directory/studio/connection/ui/wizards/NewConnectionWizard.java
URL: http://svn.apache.org/viewvc/directory/studio/trunk/connection-ui/src/main/java/org/apache/directory/studio/connection/ui/wizards/NewConnectionWizard.java?rev=690981&r1=690980&r2=690981&view=diff
==============================================================================
--- directory/studio/trunk/connection-ui/src/main/java/org/apache/directory/studio/connection/ui/wizards/NewConnectionWizard.java
(original)
+++ directory/studio/trunk/connection-ui/src/main/java/org/apache/directory/studio/connection/ui/wizards/NewConnectionWizard.java
Mon Sep  1 07:47:06 2008
@@ -29,6 +29,7 @@
 import org.apache.directory.studio.connection.core.jobs.StudioConnectionJob;
 import org.apache.directory.studio.connection.ui.ConnectionParameterPage;
 import org.apache.directory.studio.connection.ui.ConnectionParameterPageManager;
+import org.apache.directory.studio.connection.ui.ConnectionUIConstants;
 import org.eclipse.jface.viewers.IStructuredSelection;
 import org.eclipse.jface.wizard.Wizard;
 import org.eclipse.swt.widgets.Composite;
@@ -54,6 +55,7 @@
     /** The selected connection folder. */
     private ConnectionFolder selectedConnectionFolder;
 
+
     /**
      * Creates a new instance of NewConnectionWizard.
      */
@@ -71,7 +73,7 @@
      */
     public static String getId()
     {
-        return NewConnectionWizard.class.getName();
+        return ConnectionUIConstants.NEW_WIZARD_NEW_CONNECTION;
     }
 
 
@@ -165,7 +167,7 @@
         // create persistent connection
         final Connection conn = new Connection( connectionParameter );
         ConnectionCorePlugin.getDefault().getConnectionManager().addConnection( conn );
-        
+
         // add connection to folder
         selectedConnectionFolder.addConnectionId( conn.getId() );
 



Mime
View raw message