directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From pamarce...@apache.org
Subject svn commit: r690967 - in /directory/studio/trunk/connection-ui: ./ src/main/java/org/apache/directory/studio/connection/ui/ src/main/java/org/apache/directory/studio/connection/ui/dnd/ src/main/java/org/apache/directory/studio/connection/ui/widgets/
Date Mon, 01 Sep 2008 13:34:50 GMT
Author: pamarcelot
Date: Mon Sep  1 06:34:49 2008
New Revision: 690967

URL: http://svn.apache.org/viewvc?rev=690967&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/plugin.properties
    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/dnd/ConnectionTransfer.java
    directory/studio/trunk/connection-ui/src/main/java/org/apache/directory/studio/connection/ui/widgets/ConnectionActionGroup.java

Modified: directory/studio/trunk/connection-ui/plugin.properties
URL: http://svn.apache.org/viewvc/directory/studio/trunk/connection-ui/plugin.properties?rev=690967&r1=690966&r2=690967&view=diff
==============================================================================
--- directory/studio/trunk/connection-ui/plugin.properties (original)
+++ directory/studio/trunk/connection-ui/plugin.properties Mon Sep  1 06:34:49 2008
@@ -34,4 +34,11 @@
 
 ConnectionParameterPage_AuthenticationParameterPage_id=org.apache.directory.studio.connection.ui.widgets.AuthenticationParameterPage
 ConnectionParameterPage_AuthenticationParameterPage_name=Authentication
-ConnectionParameterPage_AuthenticationParameterPage_description=Please select an authentification
method and input authentification data.
\ No newline at end of file
+ConnectionParameterPage_AuthenticationParameterPage_description=Please select an authentification
method and input authentification data.
+
+ConnectionTransfert_Typename=org.apache.directory.studio.ldapbrowser.connection
+
+Cmd_Copy_id=org.apache.directory.studio.ldapbrowser.action.copy
+Cmd_Paste_id=org.apache.directory.studio.ldapbrowser.action.paste
+Cmd_Delete_id=org.apache.directory.studio.ldapbrowser.action.delete
+Cmd_Properties_id=org.apache.directory.studio.ldapbrowser.action.properties
\ No newline at end of file

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=690967&r1=690966&r2=690967&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 06:34:49 2008
@@ -21,8 +21,6 @@
 package org.apache.directory.studio.connection.ui;
 
 
-
-
 /**
  * Constants used in the connection UI plugin.
  *
@@ -80,4 +78,23 @@
     /** The image to add a connection folder. */
     public static final String IMG_CONNECTION_FOLDER_ADD = "resources/icons/connection_folder_add.gif";
 
+    /** The plug-in ID */
+    public static final String TYPENAME = ConnectionUIPlugin.getDefault().getPluginProperties().getString(
+        "ConnectionTransfert_Typename" );
+    
+    /** The plug-in ID */
+    public static final String CMD_COPY = ConnectionUIPlugin.getDefault().getPluginProperties().getString(
+        "Cmd_Copy_id" );
+    
+    /** The plug-in ID */
+    public static final String CMD_PASTE = ConnectionUIPlugin.getDefault().getPluginProperties().getString(
+        "Cmd_Paste_id" );
+    
+    /** The plug-in ID */
+    public static final String CMD_DELETE = ConnectionUIPlugin.getDefault().getPluginProperties().getString(
+        "Cmd_Delete_id" );
+    
+    /** The plug-in ID */
+    public static final String CMD_PROPERTIES = ConnectionUIPlugin.getDefault().getPluginProperties().getString(
+        "Cmd_Properties_id" );
 }

Modified: directory/studio/trunk/connection-ui/src/main/java/org/apache/directory/studio/connection/ui/dnd/ConnectionTransfer.java
URL: http://svn.apache.org/viewvc/directory/studio/trunk/connection-ui/src/main/java/org/apache/directory/studio/connection/ui/dnd/ConnectionTransfer.java?rev=690967&r1=690966&r2=690967&view=diff
==============================================================================
--- directory/studio/trunk/connection-ui/src/main/java/org/apache/directory/studio/connection/ui/dnd/ConnectionTransfer.java
(original)
+++ directory/studio/trunk/connection-ui/src/main/java/org/apache/directory/studio/connection/ui/dnd/ConnectionTransfer.java
Mon Sep  1 06:34:49 2008
@@ -34,6 +34,7 @@
 import org.apache.directory.studio.connection.core.ConnectionFolder;
 import org.apache.directory.studio.connection.core.ConnectionFolderManager;
 import org.apache.directory.studio.connection.core.ConnectionManager;
+import org.apache.directory.studio.connection.ui.ConnectionUIConstants;
 import org.eclipse.swt.dnd.ByteArrayTransfer;
 import org.eclipse.swt.dnd.Transfer;
 import org.eclipse.swt.dnd.TransferData;
@@ -50,9 +51,8 @@
  */
 public class ConnectionTransfer extends ByteArrayTransfer
 {
-
     /** The Constant TYPENAME. */
-    private static final String TYPENAME = "org.apache.directory.studio.ldapbrowser.connection";
+    private static final String TYPENAME = ConnectionUIConstants.TYPENAME;
 
     /** The Constant TYPEID. */
     private static final int TYPEID = registerType( TYPENAME );

Modified: directory/studio/trunk/connection-ui/src/main/java/org/apache/directory/studio/connection/ui/widgets/ConnectionActionGroup.java
URL: http://svn.apache.org/viewvc/directory/studio/trunk/connection-ui/src/main/java/org/apache/directory/studio/connection/ui/widgets/ConnectionActionGroup.java?rev=690967&r1=690966&r2=690967&view=diff
==============================================================================
--- directory/studio/trunk/connection-ui/src/main/java/org/apache/directory/studio/connection/ui/widgets/ConnectionActionGroup.java
(original)
+++ directory/studio/trunk/connection-ui/src/main/java/org/apache/directory/studio/connection/ui/widgets/ConnectionActionGroup.java
Mon Sep  1 06:34:49 2008
@@ -25,6 +25,7 @@
 import java.util.Iterator;
 import java.util.Map;
 
+import org.apache.directory.studio.connection.ui.ConnectionUIConstants;
 import org.apache.directory.studio.connection.ui.actions.ActionHandlerManager;
 import org.apache.directory.studio.connection.ui.actions.CloseConnectionAction;
 import org.apache.directory.studio.connection.ui.actions.ConnectionViewActionProxy;
@@ -289,19 +290,19 @@
         else
         {
             IAction ca = ( IAction ) connectionActionMap.get( copyConnectionAction );
-            ca.setActionDefinitionId( "org.apache.directory.studio.ldapbrowser.action.copy"
);
+            ca.setActionDefinitionId( ConnectionUIConstants.CMD_COPY );
             ActionUtils.activateActionHandler( ca );
 
             IAction pa = ( IAction ) connectionActionMap.get( pasteConnectionAction );
-            pa.setActionDefinitionId( "org.apache.directory.studio.ldapbrowser.action.paste"
);
+            pa.setActionDefinitionId( ConnectionUIConstants.CMD_PASTE );
             ActionUtils.activateActionHandler( pa );
 
             IAction da = ( IAction ) connectionActionMap.get( deleteConnectionAction );
-            da.setActionDefinitionId( "org.apache.directory.studio.ldapbrowser.action.delete"
);
+            da.setActionDefinitionId( ConnectionUIConstants.CMD_DELETE );
             ActionUtils.activateActionHandler( da );
 
             IAction pda = ( IAction ) connectionActionMap.get( propertyDialogAction );
-            pda.setActionDefinitionId( "org.apache.directory.studio.ldapbrowser.action.properties"
);
+            pda.setActionDefinitionId( ConnectionUIConstants.CMD_PROPERTIES );
             ActionUtils.activateActionHandler( pda );
         }
     }



Mime
View raw message