directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From pamarce...@apache.org
Subject svn commit: r690972 - in /directory/studio/trunk/ldapbrowser-ui: ./ src/main/java/org/apache/directory/studio/ldapbrowser/ui/ src/main/java/org/apache/directory/studio/ldapbrowser/ui/actions/ src/main/java/org/apache/directory/studio/ldapbrowser/ui/per...
Date Mon, 01 Sep 2008 14:04:58 GMT
Author: pamarcelot
Date: Mon Sep  1 07:04:57 2008
New Revision: 690972

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

Modified:
    directory/studio/trunk/ldapbrowser-ui/plugin.properties
    directory/studio/trunk/ldapbrowser-ui/src/main/java/org/apache/directory/studio/ldapbrowser/ui/BrowserUIConstants.java
    directory/studio/trunk/ldapbrowser-ui/src/main/java/org/apache/directory/studio/ldapbrowser/ui/actions/LocateInDitAction.java
    directory/studio/trunk/ldapbrowser-ui/src/main/java/org/apache/directory/studio/ldapbrowser/ui/actions/OpenSearchResultAction.java
    directory/studio/trunk/ldapbrowser-ui/src/main/java/org/apache/directory/studio/ldapbrowser/ui/perspective/BrowserPerspective.java

Modified: directory/studio/trunk/ldapbrowser-ui/plugin.properties
URL: http://svn.apache.org/viewvc/directory/studio/trunk/ldapbrowser-ui/plugin.properties?rev=690972&r1=690971&r2=690972&view=diff
==============================================================================
--- directory/studio/trunk/ldapbrowser-ui/plugin.properties (original)
+++ directory/studio/trunk/ldapbrowser-ui/plugin.properties Mon Sep  1 07:04:57 2008
@@ -194,3 +194,7 @@
 Decorator_BrowserViewLabelDecorator_id=org.apache.directory.studio.ldapbrowser.decorator
 Decorator_BrowserViewLabelDecorator_label=LDAP Decorator
 Decorator_BrowserViewLabelDecorator_description=Decorates LDAP icons
+
+Cmd_LocateInDit_id=org.apache.directory.studio.ldapbrowser.action.locateInDit
+Cmd_OpenSearchResult_id=org.apache.directory.studio.ldapbrowser.action.openSearchResult
+Perspective_SchemaEditor_id=org.apache.directory.studio.schemaeditor.perspective
\ No newline at end of file

Modified: directory/studio/trunk/ldapbrowser-ui/src/main/java/org/apache/directory/studio/ldapbrowser/ui/BrowserUIConstants.java
URL: http://svn.apache.org/viewvc/directory/studio/trunk/ldapbrowser-ui/src/main/java/org/apache/directory/studio/ldapbrowser/ui/BrowserUIConstants.java?rev=690972&r1=690971&r2=690972&view=diff
==============================================================================
--- directory/studio/trunk/ldapbrowser-ui/src/main/java/org/apache/directory/studio/ldapbrowser/ui/BrowserUIConstants.java
(original)
+++ directory/studio/trunk/ldapbrowser-ui/src/main/java/org/apache/directory/studio/ldapbrowser/ui/BrowserUIConstants.java
Mon Sep  1 07:04:57 2008
@@ -252,4 +252,15 @@
 
     public static final String IMG_CLEAR = "resources/icons/clear.gif";
 
+    public static final String CMD_LOCATE_IN_DIT = BrowserUIPlugin.getDefault().getPluginProperties().getString(
+        "Cmd_LocateInDit_id" );
+
+    public static final String CMD_OPEN_SEARCH_RESULT = BrowserUIPlugin.getDefault().getPluginProperties().getString(
+        "Cmd_OpenSearchResult_id" );
+
+    public static final String PERSPECTIVE_LDAP = BrowserUIPlugin.getDefault().getPluginProperties()
+        .getString( "Perspective_LdapPerspective_id" );
+
+    public static final String PERSPECTIVE_SCHEMA_EDITOR = BrowserUIPlugin.getDefault().getPluginProperties()
+        .getString( "Perspective_SchemaEditor_id" );
 }

Modified: directory/studio/trunk/ldapbrowser-ui/src/main/java/org/apache/directory/studio/ldapbrowser/ui/actions/LocateInDitAction.java
URL: http://svn.apache.org/viewvc/directory/studio/trunk/ldapbrowser-ui/src/main/java/org/apache/directory/studio/ldapbrowser/ui/actions/LocateInDitAction.java?rev=690972&r1=690971&r2=690972&view=diff
==============================================================================
--- directory/studio/trunk/ldapbrowser-ui/src/main/java/org/apache/directory/studio/ldapbrowser/ui/actions/LocateInDitAction.java
(original)
+++ directory/studio/trunk/ldapbrowser-ui/src/main/java/org/apache/directory/studio/ldapbrowser/ui/actions/LocateInDitAction.java
Mon Sep  1 07:04:57 2008
@@ -27,6 +27,7 @@
 import org.apache.directory.studio.ldapbrowser.core.jobs.ReadEntryRunnable;
 import org.apache.directory.studio.ldapbrowser.core.model.IBrowserConnection;
 import org.apache.directory.studio.ldapbrowser.core.model.IEntry;
+import org.apache.directory.studio.ldapbrowser.ui.BrowserUIConstants;
 import org.apache.directory.studio.ldapbrowser.ui.views.browser.BrowserView;
 import org.eclipse.ui.IViewPart;
 import org.eclipse.ui.IWorkbenchPage;
@@ -92,7 +93,7 @@
      */
     public String getCommandId()
     {
-        return "org.apache.directory.studio.ldapbrowser.action.locateInDit";
+        return BrowserUIConstants.CMD_LOCATE_IN_DIT;
     }
 
 
@@ -112,7 +113,6 @@
      */
     protected abstract ConnectionAndDn getConnectionAndDn();
 
-    
     /**
      * Inner class to get connection and DN of the entry to locate.
      *

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

Modified: directory/studio/trunk/ldapbrowser-ui/src/main/java/org/apache/directory/studio/ldapbrowser/ui/perspective/BrowserPerspective.java
URL: http://svn.apache.org/viewvc/directory/studio/trunk/ldapbrowser-ui/src/main/java/org/apache/directory/studio/ldapbrowser/ui/perspective/BrowserPerspective.java?rev=690972&r1=690971&r2=690972&view=diff
==============================================================================
--- directory/studio/trunk/ldapbrowser-ui/src/main/java/org/apache/directory/studio/ldapbrowser/ui/perspective/BrowserPerspective.java
(original)
+++ directory/studio/trunk/ldapbrowser-ui/src/main/java/org/apache/directory/studio/ldapbrowser/ui/perspective/BrowserPerspective.java
Mon Sep  1 07:04:57 2008
@@ -24,6 +24,7 @@
 import org.apache.directory.studio.connection.ui.wizards.NewConnectionWizard;
 import org.apache.directory.studio.ldapbrowser.common.BrowserCommonActivator;
 import org.apache.directory.studio.ldapbrowser.common.wizards.NewEntryWizard;
+import org.apache.directory.studio.ldapbrowser.ui.BrowserUIConstants;
 import org.apache.directory.studio.ldapbrowser.ui.views.browser.BrowserView;
 import org.apache.directory.studio.ldapbrowser.ui.views.connection.ConnectionView;
 import org.apache.directory.studio.ldapbrowser.ui.views.modificationlogs.ModificationLogsView;
@@ -66,8 +67,8 @@
         defineActions( layout );
         defineLayout( layout );
 
-        layout.addPerspectiveShortcut( "org.apache.directory.studio.schemaeditor.perspective"
); //$NON-NLS-1$ 
-        layout.addPerspectiveShortcut( "org.apache.directory.studio.ldapbrowser.ui.perspective.BrowserPerspective"
); //$NON-NLS-1$ 
+        layout.addPerspectiveShortcut( BrowserUIConstants.PERSPECTIVE_SCHEMA_EDITOR );
+        layout.addPerspectiveShortcut( BrowserUIConstants.PERSPECTIVE_LDAP );
     }
 
 



Mime
View raw message