directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From pamarce...@apache.org
Subject svn commit: r690973 - in /directory/studio/trunk/ldapbrowser-common: ./ src/main/java/org/apache/directory/studio/ldapbrowser/common/ src/main/java/org/apache/directory/studio/ldapbrowser/common/actions/ src/main/java/org/apache/directory/studio/ldapbr...
Date Mon, 01 Sep 2008 14:08:00 GMT
Author: pamarcelot
Date: Mon Sep  1 07:07:59 2008
New Revision: 690973

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

Modified:
    directory/studio/trunk/ldapbrowser-common/plugin.properties
    directory/studio/trunk/ldapbrowser-common/src/main/java/org/apache/directory/studio/ldapbrowser/common/BrowserCommonConstants.java
    directory/studio/trunk/ldapbrowser-common/src/main/java/org/apache/directory/studio/ldapbrowser/common/actions/NewAttributeAction.java
    directory/studio/trunk/ldapbrowser-common/src/main/java/org/apache/directory/studio/ldapbrowser/common/actions/NewValueAction.java
    directory/studio/trunk/ldapbrowser-common/src/main/java/org/apache/directory/studio/ldapbrowser/common/actions/PropertiesAction.java
    directory/studio/trunk/ldapbrowser-common/src/main/java/org/apache/directory/studio/ldapbrowser/common/actions/UpAction.java
    directory/studio/trunk/ldapbrowser-common/src/main/java/org/apache/directory/studio/ldapbrowser/common/dnd/EntryTransfer.java
    directory/studio/trunk/ldapbrowser-common/src/main/java/org/apache/directory/studio/ldapbrowser/common/dnd/SearchTransfer.java
    directory/studio/trunk/ldapbrowser-common/src/main/java/org/apache/directory/studio/ldapbrowser/common/dnd/ValuesTransfer.java
    directory/studio/trunk/ldapbrowser-common/src/main/java/org/apache/directory/studio/ldapbrowser/common/widgets/browser/BrowserActionGroup.java
    directory/studio/trunk/ldapbrowser-common/src/main/java/org/apache/directory/studio/ldapbrowser/common/widgets/entryeditor/EntryEditorWidgetActionGroup.java

Modified: directory/studio/trunk/ldapbrowser-common/plugin.properties
URL: http://svn.apache.org/viewvc/directory/studio/trunk/ldapbrowser-common/plugin.properties?rev=690973&r1=690972&r2=690973&view=diff
==============================================================================
--- directory/studio/trunk/ldapbrowser-common/plugin.properties (original)
+++ directory/studio/trunk/ldapbrowser-common/plugin.properties Mon Sep  1 07:07:59 2008
@@ -131,4 +131,14 @@
 ConnectionParameterPage_BrowserParameterPage_name=Browser Options
 ConnectionParameterPage_BrowserParameterPage_description=You can specify additional connection
parameters.
 
-ConnectionParameterPage_AuthenticationParameterPage_id=org.apache.directory.studio.connection.ui.widgets.AuthenticationParameterPage
\ No newline at end of file
+ConnectionParameterPage_AuthenticationParameterPage_id=org.apache.directory.studio.connection.ui.widgets.AuthenticationParameterPage
+
+PropPage_Search_id=org.apache.directory.studio.ldapbrowser.ui.dialogs.properties.SearchPropertyPage
+PropPage_Entry_id=org.apache.directory.studio.ldapbrowser.ui.dialogs.properties.EntryPropertyPage
+PropPage_Attribute_id=org.apache.directory.studio.ldapbrowser.ui.dialogs.properties.AttributePropertyPage
+PropPage_Value_id=org.apache.directory.studio.ldapbrowser.ui.dialogs.properties.ValuePropertyPage
+PropPage_Bookmark_id=org.apache.directory.studio.ldapbrowser.ui.dialogs.properties.BookmarkPropertyPage
+
+DnD_EntryTransfer=org.apache.directory.studio.ldapbrowser.entry
+DnD_SearchTransfer=org.apache.directory.studio.ldapbrowser.search
+DnD_ValuesTransfer=org.apache.directory.studio.ldapbrowser.value
\ No newline at end of file

Modified: directory/studio/trunk/ldapbrowser-common/src/main/java/org/apache/directory/studio/ldapbrowser/common/BrowserCommonConstants.java
URL: http://svn.apache.org/viewvc/directory/studio/trunk/ldapbrowser-common/src/main/java/org/apache/directory/studio/ldapbrowser/common/BrowserCommonConstants.java?rev=690973&r1=690972&r2=690973&view=diff
==============================================================================
--- directory/studio/trunk/ldapbrowser-common/src/main/java/org/apache/directory/studio/ldapbrowser/common/BrowserCommonConstants.java
(original)
+++ directory/studio/trunk/ldapbrowser-common/src/main/java/org/apache/directory/studio/ldapbrowser/common/BrowserCommonConstants.java
Mon Sep  1 07:07:59 2008
@@ -163,4 +163,40 @@
     public static final String IMG_OCD_STRUCTURAL = "resources/icons/ocd_structural.gif";
     public static final String IMG_MRD = "resources/icons/mrd.png";
     public static final String IMG_ENTRY_WIZARD = "resources/icons/entry_wizard.gif";
+
+    public static final String CMD_ADD_ATTRIBUTE = BrowserCommonActivator.getDefault().getPluginProperties().getString(
+        "Cmd_AddAttribute_id" );
+    public static final String CMD_ADD_VALUE = BrowserCommonActivator.getDefault().getPluginProperties().getString(
+        "Cmd_AddValue_id" );
+    public static final String CMD_OPEN_SEARCH_RESULT = BrowserCommonActivator.getDefault().getPluginProperties()
+        .getString( "Cmd_OpenSearchResult_id" );
+    public static final String CMD_COPY = BrowserCommonActivator.getDefault().getPluginProperties().getString(
+        "Cmd_Copy_id" );
+    public static final String CMD_PASTE = BrowserCommonActivator.getDefault().getPluginProperties().getString(
+        "Cmd_Paste_id" );
+    public static final String CMD_DELETE = BrowserCommonActivator.getDefault().getPluginProperties().getString(
+        "Cmd_Delete_id" );
+    public static final String CMD_PROPERTIES = BrowserCommonActivator.getDefault().getPluginProperties().getString(
+        "Cmd_Properties_id" );
+    public static final String CMD_FIND = BrowserCommonActivator.getDefault().getPluginProperties().getString(
+        "Cmd_Find_id" );
+
+    public static final String PROP_VALUE = BrowserCommonActivator.getDefault().getPluginProperties().getString(
+        "PropPage_Value_id" );
+    public static final String PROP_ATTRIBUTE = BrowserCommonActivator.getDefault().getPluginProperties().getString(
+        "PropPage_Attribute_id" );
+    public static final String PROP_SEARCH = BrowserCommonActivator.getDefault().getPluginProperties().getString(
+        "PropPage_Search_id" );
+    public static final String PROP_BOOKMARK = BrowserCommonActivator.getDefault().getPluginProperties().getString(
+        "PropPage_Bookmark_id" );
+    public static final String PROP_ENTRY = BrowserCommonActivator.getDefault().getPluginProperties().getString(
+        "PropPage_Entry_id" );
+
+    public static final String DND_ENTRY_TRANSFER = BrowserCommonActivator.getDefault().getPluginProperties()
+        .getString( "DnD_EntryTransfer" );
+    public static final String DND_SEARCH_TRANSFER = BrowserCommonActivator.getDefault().getPluginProperties()
+        .getString( "DnD_SearchTransfer" );
+    public static final String DND_VALUES_TRANSFER = BrowserCommonActivator.getDefault().getPluginProperties()
+        .getString( "DnD_ValuesTransfer" );
+
 }

Modified: directory/studio/trunk/ldapbrowser-common/src/main/java/org/apache/directory/studio/ldapbrowser/common/actions/NewAttributeAction.java
URL: http://svn.apache.org/viewvc/directory/studio/trunk/ldapbrowser-common/src/main/java/org/apache/directory/studio/ldapbrowser/common/actions/NewAttributeAction.java?rev=690973&r1=690972&r2=690973&view=diff
==============================================================================
--- directory/studio/trunk/ldapbrowser-common/src/main/java/org/apache/directory/studio/ldapbrowser/common/actions/NewAttributeAction.java
(original)
+++ directory/studio/trunk/ldapbrowser-common/src/main/java/org/apache/directory/studio/ldapbrowser/common/actions/NewAttributeAction.java
Mon Sep  1 07:07:59 2008
@@ -96,7 +96,7 @@
                     if ( att == null )
                     {
                         att = new Attribute( entry, newAttributeDescription );
-                        entry.addAttribute( att ) ;
+                        entry.addAttribute( att );
                     }
 
                     att.addEmptyValue();
@@ -129,7 +129,7 @@
      */
     public String getCommandId()
     {
-        return "org.apache.directory.studio.ldapbrowser.action.addAttribute";
+        return BrowserCommonConstants.CMD_ADD_ATTRIBUTE;
     }
 
 

Modified: directory/studio/trunk/ldapbrowser-common/src/main/java/org/apache/directory/studio/ldapbrowser/common/actions/NewValueAction.java
URL: http://svn.apache.org/viewvc/directory/studio/trunk/ldapbrowser-common/src/main/java/org/apache/directory/studio/ldapbrowser/common/actions/NewValueAction.java?rev=690973&r1=690972&r2=690973&view=diff
==============================================================================
--- directory/studio/trunk/ldapbrowser-common/src/main/java/org/apache/directory/studio/ldapbrowser/common/actions/NewValueAction.java
(original)
+++ directory/studio/trunk/ldapbrowser-common/src/main/java/org/apache/directory/studio/ldapbrowser/common/actions/NewValueAction.java
Mon Sep  1 07:07:59 2008
@@ -101,7 +101,7 @@
      */
     public String getCommandId()
     {
-        return "org.apache.directory.studio.ldapbrowser.action.addValue";
+        return BrowserCommonConstants.CMD_ADD_VALUE;
     }
 
 

Modified: directory/studio/trunk/ldapbrowser-common/src/main/java/org/apache/directory/studio/ldapbrowser/common/actions/PropertiesAction.java
URL: http://svn.apache.org/viewvc/directory/studio/trunk/ldapbrowser-common/src/main/java/org/apache/directory/studio/ldapbrowser/common/actions/PropertiesAction.java?rev=690973&r1=690972&r2=690973&view=diff
==============================================================================
--- directory/studio/trunk/ldapbrowser-common/src/main/java/org/apache/directory/studio/ldapbrowser/common/actions/PropertiesAction.java
(original)
+++ directory/studio/trunk/ldapbrowser-common/src/main/java/org/apache/directory/studio/ldapbrowser/common/actions/PropertiesAction.java
Mon Sep  1 07:07:59 2008
@@ -21,6 +21,7 @@
 package org.apache.directory.studio.ldapbrowser.common.actions;
 
 
+import org.apache.directory.studio.ldapbrowser.common.BrowserCommonConstants;
 import org.apache.directory.studio.ldapbrowser.core.model.IAttribute;
 import org.apache.directory.studio.connection.core.Utils;
 import org.eclipse.core.runtime.IAdaptable;
@@ -81,7 +82,8 @@
     {
 
         return getSelectedEntries().length + getSelectedSearchResults().length + getSelectedBookmarks().length
-                + getSelectedSearches().length == 1 || getSelectedAttributes().length + getSelectedValues().length
== 1
+            + getSelectedSearches().length == 1
+            || getSelectedAttributes().length + getSelectedValues().length == 1
             || ( getSelectedAttributeHierarchies().length == 1 && getSelectedAttributeHierarchies()[0].size()
== 1 );
 
     }
@@ -100,44 +102,44 @@
         if ( getSelectedValues().length == 1 )
         {
             element = ( IAdaptable ) getSelectedValues()[0];
-            pageId = "org.apache.directory.studio.ldapbrowser.ui.dialogs.properties.ValuePropertyPage";
+            pageId = BrowserCommonConstants.PROP_VALUE;
             title = getSelectedValues()[0].toString();
         }
         else if ( getSelectedAttributes().length == 1 )
         {
             element = ( IAdaptable ) getSelectedAttributes()[0];
-            pageId = "org.apache.directory.studio.ldapbrowser.ui.dialogs.properties.AttributePropertyPage";
+            pageId = BrowserCommonConstants.PROP_ATTRIBUTE;
             title = getSelectedAttributes()[0].toString();
         }
         else if ( getSelectedAttributeHierarchies().length == 1 )
         {
             IAttribute att = getSelectedAttributeHierarchies()[0].getAttribute();
             element = att;
-            pageId = "org.apache.directory.studio.ldapbrowser.ui.dialogs.properties.AttributePropertyPage";
+            pageId = BrowserCommonConstants.PROP_ATTRIBUTE;
             title = att.toString();
         }
         else if ( getSelectedSearches().length == 1 )
         {
             element = ( IAdaptable ) getSelectedSearches()[0];
-            pageId = "org.apache.directory.studio.ldapbrowser.ui.dialogs.properties.SearchPropertyPage";
+            pageId = BrowserCommonConstants.PROP_SEARCH;
             title = getSelectedSearches()[0].getName();
         }
         else if ( getSelectedBookmarks().length == 1 )
         {
             element = ( IAdaptable ) getSelectedBookmarks()[0];
-            pageId = "org.apache.directory.studio.ldapbrowser.ui.dialogs.properties.BookmarkPropertyPage";
+            pageId = BrowserCommonConstants.PROP_BOOKMARK;
             title = getSelectedBookmarks()[0].getName();
         }
         else if ( getSelectedEntries().length == 1 )
         {
             element = ( IAdaptable ) getSelectedEntries()[0];
-            pageId = "org.apache.directory.studio.ldapbrowser.ui.dialogs.properties.EntryPropertyPage";
+            pageId = BrowserCommonConstants.PROP_ENTRY;
             title = getSelectedEntries()[0].getDn().getUpName();
         }
         else if ( getSelectedSearchResults().length == 1 )
         {
             element = ( IAdaptable ) getSelectedSearchResults()[0];
-            pageId = "org.apache.directory.studio.ldapbrowser.ui.dialogs.properties.EntryPropertyPage";
+            pageId = BrowserCommonConstants.PROP_ENTRY;
             title = getSelectedSearchResults()[0].getDn().getUpName();
         }
 

Modified: directory/studio/trunk/ldapbrowser-common/src/main/java/org/apache/directory/studio/ldapbrowser/common/actions/UpAction.java
URL: http://svn.apache.org/viewvc/directory/studio/trunk/ldapbrowser-common/src/main/java/org/apache/directory/studio/ldapbrowser/common/actions/UpAction.java?rev=690973&r1=690972&r2=690973&view=diff
==============================================================================
--- directory/studio/trunk/ldapbrowser-common/src/main/java/org/apache/directory/studio/ldapbrowser/common/actions/UpAction.java
(original)
+++ directory/studio/trunk/ldapbrowser-common/src/main/java/org/apache/directory/studio/ldapbrowser/common/actions/UpAction.java
Mon Sep  1 07:07:59 2008
@@ -82,7 +82,7 @@
      */
     public String getCommandId()
     {
-        return "org.apache.directory.studio.ldapbrowser.action.openSearchResult";
+        return BrowserCommonConstants.CMD_OPEN_SEARCH_RESULT;
     }
 
 

Modified: directory/studio/trunk/ldapbrowser-common/src/main/java/org/apache/directory/studio/ldapbrowser/common/dnd/EntryTransfer.java
URL: http://svn.apache.org/viewvc/directory/studio/trunk/ldapbrowser-common/src/main/java/org/apache/directory/studio/ldapbrowser/common/dnd/EntryTransfer.java?rev=690973&r1=690972&r2=690973&view=diff
==============================================================================
--- directory/studio/trunk/ldapbrowser-common/src/main/java/org/apache/directory/studio/ldapbrowser/common/dnd/EntryTransfer.java
(original)
+++ directory/studio/trunk/ldapbrowser-common/src/main/java/org/apache/directory/studio/ldapbrowser/common/dnd/EntryTransfer.java
Mon Sep  1 07:07:59 2008
@@ -30,6 +30,7 @@
 import java.util.List;
 
 import org.apache.directory.shared.ldap.name.LdapDN;
+import org.apache.directory.studio.ldapbrowser.common.BrowserCommonConstants;
 import org.apache.directory.studio.ldapbrowser.core.BrowserCorePlugin;
 import org.apache.directory.studio.ldapbrowser.core.BrowserConnectionManager;
 import org.apache.directory.studio.ldapbrowser.core.model.IBrowserConnection;
@@ -52,7 +53,7 @@
 {
 
     /** The Constant TYPENAME. */
-    private static final String TYPENAME = "org.apache.directory.studio.ldapbrowser.entry";
+    private static final String TYPENAME = BrowserCommonConstants.DND_ENTRY_TRANSFER;
 
     /** The Constant TYPEID. */
     private static final int TYPEID = registerType( TYPENAME );
@@ -160,8 +161,8 @@
                             int size = readIn.readInt();
                             byte[] connectionId = new byte[size];
                             readIn.read( connectionId );
-                            connection = BrowserCorePlugin.getDefault().getConnectionManager().getBrowserConnectionById(
-                                new String( connectionId, "UTF-8" ) );
+                            connection = BrowserCorePlugin.getDefault().getConnectionManager()
+                                .getBrowserConnectionById( new String( connectionId, "UTF-8"
) );
                         }
 
                         IEntry entry = null;

Modified: directory/studio/trunk/ldapbrowser-common/src/main/java/org/apache/directory/studio/ldapbrowser/common/dnd/SearchTransfer.java
URL: http://svn.apache.org/viewvc/directory/studio/trunk/ldapbrowser-common/src/main/java/org/apache/directory/studio/ldapbrowser/common/dnd/SearchTransfer.java?rev=690973&r1=690972&r2=690973&view=diff
==============================================================================
--- directory/studio/trunk/ldapbrowser-common/src/main/java/org/apache/directory/studio/ldapbrowser/common/dnd/SearchTransfer.java
(original)
+++ directory/studio/trunk/ldapbrowser-common/src/main/java/org/apache/directory/studio/ldapbrowser/common/dnd/SearchTransfer.java
Mon Sep  1 07:07:59 2008
@@ -29,6 +29,7 @@
 import java.util.ArrayList;
 import java.util.List;
 
+import org.apache.directory.studio.ldapbrowser.common.BrowserCommonConstants;
 import org.apache.directory.studio.ldapbrowser.core.BrowserConnectionManager;
 import org.apache.directory.studio.ldapbrowser.core.BrowserCorePlugin;
 import org.apache.directory.studio.ldapbrowser.core.model.IBrowserConnection;
@@ -50,7 +51,7 @@
 {
 
     /** The Constant TYPENAME. */
-    private static final String TYPENAME = "org.apache.directory.studio.ldapbrowser.search";
+    private static final String TYPENAME = BrowserCommonConstants.DND_SEARCH_TRANSFER;
 
     /** The Constant TYPEID. */
     private static final int TYPEID = registerType( TYPENAME );

Modified: directory/studio/trunk/ldapbrowser-common/src/main/java/org/apache/directory/studio/ldapbrowser/common/dnd/ValuesTransfer.java
URL: http://svn.apache.org/viewvc/directory/studio/trunk/ldapbrowser-common/src/main/java/org/apache/directory/studio/ldapbrowser/common/dnd/ValuesTransfer.java?rev=690973&r1=690972&r2=690973&view=diff
==============================================================================
--- directory/studio/trunk/ldapbrowser-common/src/main/java/org/apache/directory/studio/ldapbrowser/common/dnd/ValuesTransfer.java
(original)
+++ directory/studio/trunk/ldapbrowser-common/src/main/java/org/apache/directory/studio/ldapbrowser/common/dnd/ValuesTransfer.java
Mon Sep  1 07:07:59 2008
@@ -30,6 +30,7 @@
 import java.util.List;
 
 import org.apache.directory.shared.ldap.name.LdapDN;
+import org.apache.directory.studio.ldapbrowser.common.BrowserCommonConstants;
 import org.apache.directory.studio.ldapbrowser.core.BrowserCorePlugin;
 import org.apache.directory.studio.ldapbrowser.core.model.IAttribute;
 import org.apache.directory.studio.ldapbrowser.core.model.IBrowserConnection;
@@ -50,7 +51,7 @@
 {
 
     /** The Constant TYPENAME. */
-    private static final String TYPENAME = "org.apache.directory.studio.ldapbrowser.value";
+    private static final String TYPENAME = BrowserCommonConstants.DND_VALUES_TRANSFER;
 
     /** The Constant TYPEID. */
     private static final int TYPEID = registerType( TYPENAME );
@@ -175,8 +176,8 @@
                             int size = readIn.readInt();
                             byte[] connectionId = new byte[size];
                             readIn.read( connectionId );
-                            connection = BrowserCorePlugin.getDefault().getConnectionManager().getBrowserConnectionById(
-                                new String( connectionId, "UTF-8" ) );
+                            connection = BrowserCorePlugin.getDefault().getConnectionManager()
+                                .getBrowserConnectionById( new String( connectionId, "UTF-8"
) );
                         }
 
                         IEntry entry = null;

Modified: directory/studio/trunk/ldapbrowser-common/src/main/java/org/apache/directory/studio/ldapbrowser/common/widgets/browser/BrowserActionGroup.java
URL: http://svn.apache.org/viewvc/directory/studio/trunk/ldapbrowser-common/src/main/java/org/apache/directory/studio/ldapbrowser/common/widgets/browser/BrowserActionGroup.java?rev=690973&r1=690972&r2=690973&view=diff
==============================================================================
--- directory/studio/trunk/ldapbrowser-common/src/main/java/org/apache/directory/studio/ldapbrowser/common/widgets/browser/BrowserActionGroup.java
(original)
+++ directory/studio/trunk/ldapbrowser-common/src/main/java/org/apache/directory/studio/ldapbrowser/common/widgets/browser/BrowserActionGroup.java
Mon Sep  1 07:07:59 2008
@@ -25,6 +25,7 @@
 import java.util.Iterator;
 import java.util.Map;
 
+import org.apache.directory.studio.ldapbrowser.common.BrowserCommonConstants;
 import org.apache.directory.studio.ldapbrowser.common.actions.CollapseAllAction;
 import org.apache.directory.studio.ldapbrowser.common.actions.FilterChildrenAction;
 import org.apache.directory.studio.ldapbrowser.common.actions.PropertiesAction;
@@ -239,7 +240,7 @@
         else
         {
             IAction pda = ( IAction ) browserActionMap.get( propertyDialogAction );
-            pda.setActionDefinitionId( "org.apache.directory.studio.ldapbrowser.action.properties"
);
+            pda.setActionDefinitionId( BrowserCommonConstants.CMD_PROPERTIES );
             ActionUtils.activateActionHandler( pda );
 
             IAction ra = ( IAction ) browserActionMap.get( refreshAction );

Modified: directory/studio/trunk/ldapbrowser-common/src/main/java/org/apache/directory/studio/ldapbrowser/common/widgets/entryeditor/EntryEditorWidgetActionGroup.java
URL: http://svn.apache.org/viewvc/directory/studio/trunk/ldapbrowser-common/src/main/java/org/apache/directory/studio/ldapbrowser/common/widgets/entryeditor/EntryEditorWidgetActionGroup.java?rev=690973&r1=690972&r2=690973&view=diff
==============================================================================
--- directory/studio/trunk/ldapbrowser-common/src/main/java/org/apache/directory/studio/ldapbrowser/common/widgets/entryeditor/EntryEditorWidgetActionGroup.java
(original)
+++ directory/studio/trunk/ldapbrowser-common/src/main/java/org/apache/directory/studio/ldapbrowser/common/widgets/entryeditor/EntryEditorWidgetActionGroup.java
Mon Sep  1 07:07:59 2008
@@ -193,7 +193,7 @@
     public void enableGlobalActionHandlers( IActionBars actionBars )
     {
         this.actionBars = actionBars;
-//        activateGlobalActionHandlers();
+        //        activateGlobalActionHandlers();
     }
 
 
@@ -315,12 +315,9 @@
     {
         if ( actionBars != null )
         {
-            actionBars.setGlobalActionHandler( ActionFactory.COPY.getId(), entryEditorActionMap
-                .get( copyAction ) );
-            actionBars.setGlobalActionHandler( ActionFactory.PASTE.getId(), entryEditorActionMap
-                .get( pasteAction ) );
-            actionBars.setGlobalActionHandler( ActionFactory.DELETE.getId(), entryEditorActionMap
-                .get( deleteAction ) );
+            actionBars.setGlobalActionHandler( ActionFactory.COPY.getId(), entryEditorActionMap.get(
copyAction ) );
+            actionBars.setGlobalActionHandler( ActionFactory.PASTE.getId(), entryEditorActionMap.get(
pasteAction ) );
+            actionBars.setGlobalActionHandler( ActionFactory.DELETE.getId(), entryEditorActionMap.get(
deleteAction ) );
             actionBars.setGlobalActionHandler( ActionFactory.SELECT_ALL.getId(), entryEditorActionMap
                 .get( selectAllAction ) );
             actionBars.setGlobalActionHandler( ActionFactory.PROPERTIES.getId(), entryEditorActionMap
@@ -332,22 +329,22 @@
         else
         {
             IAction da = entryEditorActionMap.get( deleteAction );
-            da.setActionDefinitionId( "org.apache.directory.studio.ldapbrowser.action.delete"
);
+            da.setActionDefinitionId( BrowserCommonConstants.CMD_DELETE );
             ActionUtils.activateActionHandler( da );
 
             IAction ca = entryEditorActionMap.get( copyAction );
-            ca.setActionDefinitionId( "org.apache.directory.studio.ldapbrowser.action.copy"
);
+            ca.setActionDefinitionId( BrowserCommonConstants.CMD_COPY );
             ActionUtils.activateActionHandler( ca );
 
             IAction pa = entryEditorActionMap.get( pasteAction );
-            pa.setActionDefinitionId( "org.apache.directory.studio.ldapbrowser.action.paste"
);
+            pa.setActionDefinitionId( BrowserCommonConstants.CMD_PASTE );
             ActionUtils.activateActionHandler( pa );
 
-            showQuickFilterAction.setActionDefinitionId( "org.apache.directory.studio.ldapbrowser.action.find"
);
+            showQuickFilterAction.setActionDefinitionId( BrowserCommonConstants.CMD_FIND
);
             ActionUtils.activateActionHandler( showQuickFilterAction );
 
             IAction pda = entryEditorActionMap.get( propertyDialogAction );
-            pda.setActionDefinitionId( "org.apache.directory.studio.ldapbrowser.action.properties"
);
+            pda.setActionDefinitionId( BrowserCommonConstants.CMD_PROPERTIES );
             ActionUtils.activateActionHandler( pda );
         }
 



Mime
View raw message