directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From pamarce...@apache.org
Subject svn commit: r689136 - in /directory/studio/trunk/ldapbrowser-common: ./ src/main/java/org/apache/directory/studio/ldapbrowser/common/
Date Tue, 26 Aug 2008 17:02:44 GMT
Author: pamarcelot
Date: Tue Aug 26 10:02:43 2008
New Revision: 689136

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

Added:
    directory/studio/trunk/ldapbrowser-common/plugin.properties
Modified:
    directory/studio/trunk/ldapbrowser-common/plugin.xml
    directory/studio/trunk/ldapbrowser-common/src/main/java/org/apache/directory/studio/ldapbrowser/common/BrowserCommonActivator.java
    directory/studio/trunk/ldapbrowser-common/src/main/java/org/apache/directory/studio/ldapbrowser/common/BrowserCommonConstants.java

Added: directory/studio/trunk/ldapbrowser-common/plugin.properties
URL: http://svn.apache.org/viewvc/directory/studio/trunk/ldapbrowser-common/plugin.properties?rev=689136&view=auto
==============================================================================
--- directory/studio/trunk/ldapbrowser-common/plugin.properties (added)
+++ directory/studio/trunk/ldapbrowser-common/plugin.properties Tue Aug 26 10:02:43 2008
@@ -0,0 +1,132 @@
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements.  See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership.  The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License.  You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing,
+# software distributed under the License is distributed on an
+# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+# KIND, either express or implied.  See the License for the
+# specific language governing permissions and limitations
+# under the License.
+
+ExtensionPoint_ValueEditors_id=org.apache.directory.studio.valueeditors
+ExtensionPoint_ValueEditors_name=Value Editors
+
+ValueEditors_InPlaceTextValueEditor_name=In-Place Text Editor
+
+ValueEditors_TextValueEditor_name=Text Editor
+
+ValueEditors_HexValueEditor_name=Hex Editor
+
+NewWizards_Category_id=org.apache.directory.studio.ldapbrowser.newWizards
+NewWizards_Category_name=LDAP Browser
+
+PrefPage_MainPreferencePage_id=org.apache.directory.studio.ldapbrowser.preferences.MainPreferencePage
+PrefPage_MainPreferencePage_name=LDAP
+
+PrefPage_AttributesPreferencePage_id=org.apache.directory.studio.ldapbrowser.preferences.AttributesPreferencePage
+PrefPage_AttributesPreferencePage_name=Attributes
+
+PrefPage_ColorsAndFontsPreferencePage_id=org.apache.directory.studio.ldapbrowser.preferences.ColorsAndFontsPreferencePage
+PrefPage_ColorsAndFontsPreferencePage_name=Colors and Fonts
+
+PrefPage_BinaryAttributesAndSyntaxesPreferencePage_id=org.apache.directory.studio.ldapbrowser.preferences.BinaryAttributesAndSyntaxesPreferencePage
+PrefPage_BinaryAttributesAndSyntaxesPreferencePage_name=Binary Attributes
+
+PrefPage_ValueEditorsPreferencePage_id=org.apache.directory.studio.ldapbrowser.preferences.ValueEditorsPreferencePage
+PrefPage_ValueEditorsPreferencePage_name=Value Editors
+
+PrefPage_BrowserPreferencePage_id=org.apache.directory.studio.ldapbrowser.preferences.BrowserPreferencePage
+PrefPage_BrowserPreferencePage_name=Browser
+
+PrefPage_EntryEditorPreferencePage_id=org.apache.directory.studio.ldapbrowser.preferences.EntryEditorPreferencePage
+PrefPage_EntryEditorPreferencePage_name=Entry Editor
+
+PrefPage_TextFormatsPreferencePage_id=org.apache.directory.studio.ldapbrowser.preferences.TextFormatsPreferencePage
+PrefPage_TextFormatsPreferencePage_name=Text Formats
+
+CtxType_LdapFilter_Template_id=org.apache.directory.studio.ldapbrowser.common.templates.filter
+CtxType_LdapFilter_Template_name=LDAP Filter
+
+Keyword_Colors_id=org.apache.directory.studio.ldapbrowser.keyword.colors
+Keyword_Colors_label=Colors
+
+Keyword_Fonts_id=org.apache.directory.studio.ldapbrowser.keyword.fonts
+Keyword_Fonts_label=Fonts
+
+Keyword_LDAP_id=org.apache.directory.studio.ldapbrowser.keyword.ldap
+Keyword_LDAP_label=LDAP
+
+Keyword_LDIF_id=org.apache.directory.studio.ldapbrowser.keyword.ldif
+Keyword_LDIF_label=LDIF
+
+Cmd_Category_id=org.apache.directory.studio.ldapbrowser.commands
+Cmd_Category_name=LDAP Browser
+
+Cmd_AddValue_id=org.apache.directory.studio.ldapbrowser.action.addValue
+Cmd_AddValue_name=Add Value
+Cmd_AddValue_description=Add a value to an existing attribute
+
+Cmd_AddAttribute_id=org.apache.directory.studio.ldapbrowser.action.addAttribute
+Cmd_AddAttribute_name=Add Attribute
+Cmd_AddAttribute_description=Add an attribute to an existing entry
+
+Cmd_EditAttributeDescription_id=org.apache.directory.studio.ldapbrowser.action.editAttributeDescription
+Cmd_EditAttributeDescription_name=Edit Attribute Description
+Cmd_EditAttributeDescription_description=Edit an attribute description
+
+Cmd_EditValue_id=org.apache.directory.studio.ldapbrowser.action.editValue
+Cmd_EditValue_name=Edit Value
+Cmd_EditValue_description=Edit a value
+
+Cmd_EditRecord_id=org.apache.directory.studio.ldapbrowser.action.editRecord
+Cmd_EditRecord_name=Edit Record
+Cmd_EditRecord_description=Edit a record
+
+Cmd_Delete_id=org.apache.directory.studio.ldapbrowser.action.delete
+Cmd_Delete_name=Delete
+Cmd_Delete_description=Delete an element
+
+Cmd_Copy_id=org.apache.directory.studio.ldapbrowser.action.copy
+Cmd_Copy_name=Copy
+Cmd_Copy_description=Copy an element
+
+Cmd_Paste_id=org.apache.directory.studio.ldapbrowser.action.paste
+Cmd_Paste_name=Paste
+Cmd_Paste_description=Paste an element
+
+Cmd_Find_id=org.apache.directory.studio.ldapbrowser.action.find
+Cmd_Find_name=Find
+Cmd_Find_description=Find an element
+
+Cmd_Properties_id=org.apache.directory.studio.ldapbrowser.action.properties
+Cmd_Properties_name=Properties
+Cmd_Properties_description=Properties of an element
+
+Cmd_LocateInDit_id=org.apache.directory.studio.ldapbrowser.action.locateInDit
+Cmd_LocateInDit_name=Locate in DIT
+Cmd_LocateInDit_description=Locate a DN or search result in DIT
+
+Cmd_OpenSearchResult_id=org.apache.directory.studio.ldapbrowser.action.openSearchResult
+Cmd_OpenSearchResult_name=Open Search Result
+Cmd_OpenSearchResult_description=Open a search result
+
+Ctx_LdapBrowserWindows_id=org.apache.directory.studio.ldapbrowser.contexts.window
+Ctx_LdapBrowserWindows_name=In LDAP Browser Windows
+Ctx_LdapBrowserWindows_description=In LDAP Browser Windows
+
+Ctx_LdapBrowserDialogs_id=org.apache.directory.studio.ldapbrowser.contexts.dialog
+Ctx_LdapBrowserDialogs_name=In LDAP Browser Dialogs
+Ctx_LdapBrowserDialogs_description=In LDAP Browser Dialogs
+
+ConnectionParameterPage_BrowserParameterPage_id=org.apache.directory.studio.ldapbrowser.common.widgets.connection.BrowserParameterPage
+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

Modified: directory/studio/trunk/ldapbrowser-common/plugin.xml
URL: http://svn.apache.org/viewvc/directory/studio/trunk/ldapbrowser-common/plugin.xml?rev=689136&r1=689135&r2=689136&view=diff
==============================================================================
--- directory/studio/trunk/ldapbrowser-common/plugin.xml (original)
+++ directory/studio/trunk/ldapbrowser-common/plugin.xml Tue Aug 26 10:02:43 2008
@@ -26,22 +26,22 @@
     <valueEditor
           class="org.apache.directory.studio.valueeditors.InPlaceTextValueEditor"
           icon="resources/icons/inplace_texteditor.gif"
-          name="In-Place Text Editor"/>
+          name="%ValueEditors_InPlaceTextValueEditor_name"/>
     <valueEditor
           class="org.apache.directory.studio.valueeditors.TextValueEditor"
           icon="resources/icons/texteditor.gif"
-          name="Text Editor"/>
+          name="%ValueEditors_TextValueEditor_name"/>
     <valueEditor
           class="org.apache.directory.studio.valueeditors.HexValueEditor"
           icon="resources/icons/hexeditor.gif"
-          name="Hex Editor"/>
+          name="%ValueEditors_HexValueEditor_name"/>
   </extension>
   
    <extension
          point="org.eclipse.ui.newWizards">
       <category
-            name="LDAP Browser"
-            id="org.apache.directory.studio.ldapbrowser.newWizards"/>
+            name="%NewWizards_Category_name"
+            id="%NewWizards_Category_id"/>
    </extension>  
 
    <extension
@@ -53,61 +53,61 @@
          point="org.eclipse.ui.preferencePages">
       <page
             class="org.apache.directory.studio.ldapbrowser.common.dialogs.preferences.MainPreferencePage"
-            id="org.apache.directory.studio.ldapbrowser.preferences.MainPreferencePage"
-            name="LDAP">
-         <keywordReference id="org.apache.directory.studio.ldapbrowser.keyword.ldap"/>
+            id="%PrefPage_MainPreferencePage_id"
+            name="%PrefPage_MainPreferencePage_name">
+         <keywordReference id="%Keyword_LDAP_id"/>
       </page>
       <page
-            category="org.apache.directory.studio.ldapbrowser.preferences.MainPreferencePage"
+            category="%PrefPage_MainPreferencePage_id"
             class="org.apache.directory.studio.ldapbrowser.common.dialogs.preferences.AttributesPreferencePage"
-            id="org.apache.directory.studio.ldapbrowser.preferences.AttributesPreferencePage"
-            name="Attributes">
-         <keywordReference id="org.apache.directory.studio.ldapbrowser.keyword.ldap"/>
+            id="%PrefPage_AttributesPreferencePage_id"
+            name="%PrefPage_AttributesPreferencePage_name">
+         <keywordReference id="%Keyword_LDAP_id"/>
       </page>
       <page
-            category="org.apache.directory.studio.ldapbrowser.preferences.MainPreferencePage"
+            category="%PrefPage_MainPreferencePage_id"
             class="org.apache.directory.studio.ldapbrowser.common.dialogs.preferences.ColorsAndFontsPreferencePage"
-            id="org.apache.directory.studio.ldapbrowser.preferences.ColorsAndFontsPreferencePage"
-            name="Colors and Fonts">
-         <keywordReference id="org.apache.directory.studio.ldapbrowser.keyword.colors"/>
-         <keywordReference id="org.apache.directory.studio.ldapbrowser.keyword.fonts"/>
-         <keywordReference id="org.apache.directory.studio.ldapbrowser.keyword.ldap"/>
+            id="%PrefPage_ColorsAndFontsPreferencePage_id"
+            name="%PrefPage_ColorsAndFontsPreferencePage_name">
+         <keywordReference id="%Keyword_Colors_id"/>
+         <keywordReference id="%Keyword_Fonts_id"/>
+         <keywordReference id="%Keyword_LDAP_id"/>
       </page>
       <page
-            category="org.apache.directory.studio.ldapbrowser.preferences.AttributesPreferencePage"
+            category="%PrefPage_AttributesPreferencePage_id"
             class="org.apache.directory.studio.ldapbrowser.common.dialogs.preferences.BinaryAttributesAndSyntaxesPreferencePage"
-            id="org.apache.directory.studio.ldapbrowser.preferences.BinaryAttributesAndSyntaxesPreferencePage"
-            name="Binary Attributes">
-         <keywordReference id="org.apache.directory.studio.ldapbrowser.keyword.ldap"/>
+            id="%PrefPage_BinaryAttributesAndSyntaxesPreferencePage_id"
+            name="%PrefPage_BinaryAttributesAndSyntaxesPreferencePage_name">
+         <keywordReference id="%Keyword_LDAP_id"/>
       </page>
       <page
-            category="org.apache.directory.studio.ldapbrowser.preferences.AttributesPreferencePage"
+            category="%PrefPage_AttributesPreferencePage_id"
             class="org.apache.directory.studio.ldapbrowser.common.dialogs.preferences.ValueEditorsPreferencePage"
-            id="org.apache.directory.studio.ldapbrowser.preferences.ValueEditorsPreferencePage"
-            name="Value Editors">
-         <keywordReference id="org.apache.directory.studio.ldapbrowser.keyword.ldap"/>
+            id="%PrefPage_ValueEditorsPreferencePage_id"
+            name="%PrefPage_ValueEditorsPreferencePage_name">
+         <keywordReference id="%Keyword_LDAP_id"/>
       </page>
       <page
-            category="org.apache.directory.studio.ldapbrowser.preferences.MainPreferencePage"
+            category="%PrefPage_MainPreferencePage_id"
             class="org.apache.directory.studio.ldapbrowser.common.dialogs.preferences.BrowserPreferencePage"
-            id="org.apache.directory.studio.ldapbrowser.preferences.BrowserPreferencePage"
-            name="Browser">
-         <keywordReference id="org.apache.directory.studio.ldapbrowser.keyword.ldap"/>
+            id="%PrefPage_BrowserPreferencePage_id"
+            name="%PrefPage_BrowserPreferencePage_name">
+         <keywordReference id="%Keyword_LDAP_id"/>
       </page>            
       <page
-            category="org.apache.directory.studio.ldapbrowser.preferences.MainPreferencePage"
+            category="%PrefPage_MainPreferencePage_id"
             class="org.apache.directory.studio.ldapbrowser.common.dialogs.preferences.EntryEditorPreferencePage"
-            id="org.apache.directory.studio.ldapbrowser.preferences.EntryEditorPreferencePage"
-            name="Entry Editor">
-         <keywordReference id="org.apache.directory.studio.ldapbrowser.keyword.ldap"/>
+            id="%PrefPage_EntryEditorPreferencePage_id"
+            name="%PrefPage_EntryEditorPreferencePage_name">
+         <keywordReference id="%Keyword_LDAP_id"/>
       </page>
       <page
-            category="org.apache.directory.studio.ldapbrowser.preferences.MainPreferencePage"
+            category="%PrefPage_MainPreferencePage_id"
             class="org.apache.directory.studio.ldapbrowser.common.dialogs.preferences.TextFormatsPreferencePage"
-            id="org.apache.directory.studio.ldapbrowser.preferences.TextFormatsPreferencePage"
-            name="Text Formats">
-         <keywordReference id="org.apache.directory.studio.ldapbrowser.keyword.ldap"/>
-         <keywordReference id="org.apache.directory.studio.ldapbrowser.keyword.ldif"/>
+            id="%PrefPage_TextFormatsPreferencePage_id"
+            name="%PrefPage_TextFormatsPreferencePage_name">
+         <keywordReference id="%Keyword_LDAP_id"/>
+         <keywordReference id="%Keyword_LDIF_id"/>
       </page>            
    </extension>
 
@@ -115,107 +115,107 @@
          point="org.eclipse.ui.editors.templates">
       <contextType
             class="org.eclipse.jface.text.templates.TemplateContextType"
-            name="LDAP Filter"
-            id="org.apache.directory.studio.ldapbrowser.common.templates.filter"/>
+            name="%CtxType_LdapFilter_Template_name"
+            id="%CtxType_LdapFilter_Template_id"/>
       <include file="resources/templates/templates.xml"/>
    </extension>
 
  <extension
        point="org.eclipse.ui.keywords">
     <keyword
-          id="org.apache.directory.studio.ldapbrowser.keyword.colors"
-          label="Colors"/>
+          id="%Keyword_Colors_id"
+          label="%Keyword_Colors_label"/>
     <keyword
-          id="org.apache.directory.studio.ldapbrowser.keyword.fonts"
-          label="Fonts"/>
+          id="%Keyword_Fonts_id"
+          label="%Keyword_Fonts_label"/>
     <keyword
-          id="org.apache.directory.studio.ldapbrowser.keyword.ldap"
-          label="LDAP"/>
+          id="%Keyword_LDAP_id"
+          label="%Keyword_LDAP_label"/>
     <keyword
-          id="org.apache.directory.studio.ldapbrowser.keyword.ldif"
-          label="LDIF"/>
+          id="%Keyword_LDIF_id"
+          label="%Keyword_LDIF_label"/>
  </extension>
 
  <extension
        point="org.eclipse.ui.bindings">
     <key
-          commandId="org.apache.directory.studio.ldapbrowser.action.addValue"
-          contextId="org.apache.directory.studio.ldapbrowser.contexts.window"
+          commandId="%Cmd_AddValue_id"
+          contextId="%Ctx_LdapBrowserWindows_id"
           schemeId="org.eclipse.ui.defaultAcceleratorConfiguration"
           sequence="M1++"/>
     <key
-          commandId="org.apache.directory.studio.ldapbrowser.action.addAttribute"
-          contextId="org.apache.directory.studio.ldapbrowser.contexts.window"
+          commandId="%Cmd_AddAttribute_id"
+          contextId="%Ctx_LdapBrowserWindows_id"
           schemeId="org.eclipse.ui.defaultAcceleratorConfiguration"
           sequence="M1+M2++"/>
     <key
-          commandId="org.apache.directory.studio.ldapbrowser.action.editAttributeDescription"
-          contextId="org.apache.directory.studio.ldapbrowser.contexts.window"
+          commandId="%Cmd_EditAttributeDescription_id"
+          contextId="%Ctx_LdapBrowserWindows_id"
           schemeId="org.eclipse.ui.defaultAcceleratorConfiguration"
           sequence="F6"/>  
     <key
-          commandId="org.apache.directory.studio.ldapbrowser.action.editValue"
-          contextId="org.apache.directory.studio.ldapbrowser.contexts.window"
+          commandId="%Cmd_EditValue_id"
+          contextId="%Ctx_LdapBrowserWindows_id"
           schemeId="org.eclipse.ui.defaultAcceleratorConfiguration"
           sequence="F7"/>  
     <key
-          commandId="org.apache.directory.studio.ldapbrowser.action.editRecord"
-          contextId="org.apache.directory.studio.ldapbrowser.contexts.window"
+          commandId="%Cmd_EditRecord_id"
+          contextId="%Ctx_LdapBrowserWindows_id"
           schemeId="org.eclipse.ui.defaultAcceleratorConfiguration"
           sequence="F8"/>
     <key
-          commandId="org.apache.directory.studio.ldapbrowser.action.locateInDit"
-          contextId="org.apache.directory.studio.ldapbrowser.contexts.window"
+          commandId="%Cmd_LocateInDit_id"
+          contextId="%Ctx_LdapBrowserWindows_id"
           schemeId="org.eclipse.ui.defaultAcceleratorConfiguration"
           sequence="F3"/>
     <key
-          commandId="org.apache.directory.studio.ldapbrowser.action.openSearchResult"
-          contextId="org.apache.directory.studio.ldapbrowser.contexts.window"
+          commandId="%Cmd_OpenSearchResult_id"
+          contextId="%Ctx_LdapBrowserWindows_id"
           schemeId="org.eclipse.ui.defaultAcceleratorConfiguration"
           sequence="F4"/>
     <key
-          commandId="org.apache.directory.studio.ldapbrowser.action.delete"
-          contextId="org.apache.directory.studio.ldapbrowser.contexts.dialog"
+          commandId="%Cmd_Delete_id"
+          contextId="%Ctx_LdapBrowserDialogs_id"
           schemeId="org.eclipse.ui.defaultAcceleratorConfiguration"
           sequence="DEL"/>
     <key
-          commandId="org.apache.directory.studio.ldapbrowser.action.copy"
-          contextId="org.apache.directory.studio.ldapbrowser.contexts.dialog"
+          commandId="%Cmd_Copy_id"
+          contextId="%Ctx_LdapBrowserDialogs_id"
           schemeId="org.eclipse.ui.defaultAcceleratorConfiguration"
           sequence="CTRL+C"/>
     <key
-          commandId="org.apache.directory.studio.ldapbrowser.action.paste"
-          contextId="org.apache.directory.studio.ldapbrowser.contexts.dialog"
+          commandId="%Cmd_Paste_id"
+          contextId="%Ctx_LdapBrowserDialogs_id"
           schemeId="org.eclipse.ui.defaultAcceleratorConfiguration"
           sequence="CTRL+V"/>
     <key
-          commandId="org.apache.directory.studio.ldapbrowser.action.find"
-          contextId="org.apache.directory.studio.ldapbrowser.contexts.dialog"
+          commandId="%Cmd_Find_id"
+          contextId="%Ctx_LdapBrowserDialogs_id"
           schemeId="org.eclipse.ui.defaultAcceleratorConfiguration"
           sequence="CTRL+F"/>
     <key
-          commandId="org.apache.directory.studio.ldapbrowser.action.properties"
-          contextId="org.apache.directory.studio.ldapbrowser.contexts.dialog"
+          commandId="%Cmd_Properties_id"
+          contextId="%Ctx_LdapBrowserDialogs_id"
           schemeId="org.eclipse.ui.defaultAcceleratorConfiguration"
           sequence="ALT+RETURN"/>
     <key
-          commandId="org.apache.directory.studio.ldapbrowser.action.addValue"
-          contextId="org.apache.directory.studio.ldapbrowser.contexts.dialog"
+          commandId="%Cmd_AddValue_id"
+          contextId="%Ctx_LdapBrowserDialogs_id"
           schemeId="org.eclipse.ui.defaultAcceleratorConfiguration"
           sequence="M1++"/>
     <key
-          commandId="org.apache.directory.studio.ldapbrowser.action.addAttribute"
-          contextId="org.apache.directory.studio.ldapbrowser.contexts.dialog"
+          commandId="%Cmd_AddAttribute_id"
+          contextId="%Ctx_LdapBrowserDialogs_id"
           schemeId="org.eclipse.ui.defaultAcceleratorConfiguration"
           sequence="M1+M2++"/>
     <key
-          commandId="org.apache.directory.studio.ldapbrowser.action.editAttributeDescription"
-          contextId="org.apache.directory.studio.ldapbrowser.contexts.dialog"
+          commandId="%Cmd_EditAttributeDescription_id"
+          contextId="%Ctx_LdapBrowserDialogs_id"
           schemeId="org.eclipse.ui.defaultAcceleratorConfiguration"
           sequence="F6"/>  
     <key
-          commandId="org.apache.directory.studio.ldapbrowser.action.editValue"
-          contextId="org.apache.directory.studio.ldapbrowser.contexts.dialog"
+          commandId="%Cmd_EditValue_id"
+          contextId="%Ctx_LdapBrowserDialogs_id"
           schemeId="org.eclipse.ui.defaultAcceleratorConfiguration"
           sequence="F7"/>            
  </extension>
@@ -223,93 +223,93 @@
  <extension
        point="org.eclipse.ui.commands">
     <category
-          id="org.apache.directory.studio.ldapbrowser.commands"
-          name="LDAP Browser"/>
+          id="%Cmd_Category_id"
+          name="%Cmd_Category_name"/>
     <command
-          categoryId="org.apache.directory.studio.ldapbrowser.commands"
-          description="Add a value to an existing attribute"
-          id="org.apache.directory.studio.ldapbrowser.action.addValue"
-          name="Add Value"/>
-    <command
-          categoryId="org.apache.directory.studio.ldapbrowser.commands"
-          description="Add an attribute to an existing entry"
-          id="org.apache.directory.studio.ldapbrowser.action.addAttribute"
-          name="Add Attribute"/>
-    <command
-          categoryId="org.apache.directory.studio.ldapbrowser.commands"
-          description="Edit an attribute description"
-          id="org.apache.directory.studio.ldapbrowser.action.editAttributeDescription"
-          name="Edit Attribute Description"/>          
-    <command
-          categoryId="org.apache.directory.studio.ldapbrowser.commands"
-          description="Edit a value"
-          id="org.apache.directory.studio.ldapbrowser.action.editValue"
-          name="Edit Value"/>          
-    <command
-          categoryId="org.apache.directory.studio.ldapbrowser.commands"
-          description="Edit a record"
-          id="org.apache.directory.studio.ldapbrowser.action.editRecord"
-          name="Edit Record"/>          
-    <command
-          categoryId="org.apache.directory.studio.ldapbrowser.commands"
-          description="Delete an element"
-          id="org.apache.directory.studio.ldapbrowser.action.delete"
-          name="Delete"/>
-    <command
-          categoryId="org.apache.directory.studio.ldapbrowser.commands"
-          description="Copy an element"
-          id="org.apache.directory.studio.ldapbrowser.action.copy"
-          name="Copy"/>
-    <command
-          categoryId="org.apache.directory.studio.ldapbrowser.commands"
-          description="Paste an element"
-          id="org.apache.directory.studio.ldapbrowser.action.paste"
-          name="Paste"/>
-    <command
-          categoryId="org.apache.directory.studio.ldapbrowser.commands"
-          description="Find an element"
-          id="org.apache.directory.studio.ldapbrowser.action.find"
-          name="Find"/>
-    <command
-          categoryId="org.apache.directory.studio.ldapbrowser.commands"
-          description="Properties of an element"
-          id="org.apache.directory.studio.ldapbrowser.action.properties"
-          name="Properties"/>
-    <command
-          categoryId="org.apache.directory.studio.ldapbrowser.commands"
-          description="Locate a DN or search result in DIT"
-          id="org.apache.directory.studio.ldapbrowser.action.locateInDit"
-          name="Locate in DIT"/>
-    <command
-          categoryId="org.apache.directory.studio.ldapbrowser.commands"
-          description="Open a search result"
-          id="org.apache.directory.studio.ldapbrowser.action.openSearchResult"
-          name="Open Search Result"/>
+          categoryId="%Cmd_Category_id"
+          description="%Cmd_AddValue_description"
+          id="%Cmd_AddValue_id"
+          name="%Cmd_AddValue_name"/>
+    <command
+          categoryId="%Cmd_Category_id"
+          description="%Cmd_AddAttribute_description"
+          id="%Cmd_AddAttribute_id"
+          name="%Cmd_AddAttribute_name"/>
+    <command
+          categoryId="%Cmd_Category_id"
+          description="%Cmd_EditAttributeDescription_description"
+          id="%Cmd_EditAttributeDescription_id"
+          name="%Cmd_EditAttributeDescription_name"/>          
+    <command
+          categoryId="%Cmd_Category_id"
+          description="%Cmd_EditValue_description"
+          id="%Cmd_EditValue_id"
+          name="%Cmd_EditValue_name"/>          
+    <command
+          categoryId="%Cmd_Category_id"
+          description="%Cmd_EditRecord_description"
+          id="%Cmd_EditRecord_id"
+          name="%Cmd_EditRecord_name"/>          
+    <command
+          categoryId="%Cmd_Category_id"
+          description="%Cmd_Delete_description"
+          id="%Cmd_Delete_id"
+          name="%Cmd_Delete_name"/>
+    <command
+          categoryId="%Cmd_Category_id"
+          description="%Cmd_Copy_description"
+          id="%Cmd_Copy_id"
+          name="%Cmd_Copy_name"/>
+    <command
+          categoryId="%Cmd_Category_id"
+          description="%Cmd_Paste_description"
+          id="%Cmd_Paste_id"
+          name="%Cmd_Paste_name"/>
+    <command
+          categoryId="%Cmd_Category_id"
+          description="%Cmd_Find_description"
+          id="%Cmd_Find_id"
+          name="%Cmd_Find_name"/>
+    <command
+          categoryId="%Cmd_Category_id"
+          description="%Cmd_Properties_description"
+          id="%Cmd_Properties_id"
+          name="%Cmd_Properties_name"/>
+    <command
+          categoryId="%Cmd_Category_id"
+          description="%Cmd_LocateInDit_description"
+          id="%Cmd_LocateInDit_id"
+          name="%Cmd_LocateInDit_name"/>
+    <command
+          categoryId="%Cmd_Category_id"
+          description="%Cmd_OpenSearchResult_description"
+          id="%Cmd_OpenSearchResult_id"
+          name="%Cmd_OpenSearchResult_name"/>
  </extension>
 
 
  <extension
        point="org.eclipse.ui.contexts">
        <context
-             description="In LDAP Browser Windows"
-             id="org.apache.directory.studio.ldapbrowser.contexts.window"
-             name="In LDAP Browser Windows"
+             description="%Ctx_LdapBrowserWindows_description"
+             id="%Ctx_LdapBrowserWindows_id"
+             name="%Ctx_LdapBrowserWindows_name"
              parentId="org.eclipse.ui.contexts.window">
 	</context>
        <context
-             description="In LDAP Browser Dialogs"
-             id="org.apache.directory.studio.ldapbrowser.contexts.dialog"
-             name="In LDAP Browser Dialogs"
+             description="%Ctx_LdapBrowserDialogs_description"
+             id="%Ctx_LdapBrowserDialogs_id"
+             name="%Ctx_LdapBrowserDialogs_name"
              parentId="org.eclipse.ui.contexts.dialog"/>
  </extension>
  <extension
        point="org.apache.directory.studio.connectionparameterpages">
     <connectionParameterPage
           class="org.apache.directory.studio.ldapbrowser.common.widgets.connection.BrowserParameterPage"
-          dependsOnId="org.apache.directory.studio.connection.ui.widgets.AuthenticationParameterPage"
-          description="You can specify additional connection parameters."
-          id="org.apache.directory.studio.ldapbrowser.common.widgets.connection.BrowserParameterPage"
-          name="Browser Options"/>
+          dependsOnId="%ConnectionParameterPage_AuthenticationParameterPage_id"
+          description="%ConnectionParameterPage_BrowserParameterPage_description"
+          id="%ConnectionParameterPage_BrowserParameterPage_id"
+          name="%ConnectionParameterPage_BrowserParameterPage_name"/>
  </extension>
  
 </plugin>

Modified: directory/studio/trunk/ldapbrowser-common/src/main/java/org/apache/directory/studio/ldapbrowser/common/BrowserCommonActivator.java
URL: http://svn.apache.org/viewvc/directory/studio/trunk/ldapbrowser-common/src/main/java/org/apache/directory/studio/ldapbrowser/common/BrowserCommonActivator.java?rev=689136&r1=689135&r2=689136&view=diff
==============================================================================
--- directory/studio/trunk/ldapbrowser-common/src/main/java/org/apache/directory/studio/ldapbrowser/common/BrowserCommonActivator.java
(original)
+++ directory/studio/trunk/ldapbrowser-common/src/main/java/org/apache/directory/studio/ldapbrowser/common/BrowserCommonActivator.java
Tue Aug 26 10:02:43 2008
@@ -22,6 +22,7 @@
 
 import java.io.IOException;
 import java.net.URL;
+import java.util.PropertyResourceBundle;
 
 import org.apache.directory.studio.ldapbrowser.core.events.EventRunner;
 import org.eclipse.core.runtime.FileLocator;
@@ -30,6 +31,7 @@
 import org.eclipse.core.runtime.IExtensionPoint;
 import org.eclipse.core.runtime.Path;
 import org.eclipse.core.runtime.Platform;
+import org.eclipse.core.runtime.Status;
 import org.eclipse.jface.resource.ColorRegistry;
 import org.eclipse.jface.resource.FontRegistry;
 import org.eclipse.jface.resource.ImageDescriptor;
@@ -52,7 +54,6 @@
  */
 public class BrowserCommonActivator extends AbstractUIPlugin
 {
-
     /** The plug-in ID */
     public static final String PLUGIN_ID = "org.apache.directory.studio.ldapbrowser.common";
 
@@ -77,6 +78,9 @@
     /** The event runner. */
     private EventRunner eventRunner;
 
+    /** The plugin properties */
+    private PropertyResourceBundle properties;
+
 
     /**
      * The constructor
@@ -367,4 +371,30 @@
         return eventRunner;
     }
 
+
+    /**
+     * Gets the plugin properties.
+     *
+     * @return
+     *      the plugin properties
+     */
+    public PropertyResourceBundle getPluginProperties()
+    {
+        if ( properties == null )
+        {
+            try
+            {
+                properties = new PropertyResourceBundle( FileLocator.openStream( this.getBundle(),
new Path(
+                    "plugin.properties" ), false ) );
+            }
+            catch ( IOException e )
+            {
+                getLog().log(
+                    new Status( Status.ERROR, BrowserCommonActivator.PLUGIN_ID, Status.OK,
+                        "Unable to get the plugin properties.", e ) );
+            }
+        }
+
+        return properties;
+    }
 }

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=689136&r1=689135&r2=689136&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
Tue Aug 26 10:02:43 2008
@@ -19,257 +19,141 @@
  */
 package org.apache.directory.studio.ldapbrowser.common;
 
+
 public interface BrowserCommonConstants
 {
-
     public static final int HISTORYSIZE = 20;
 
+    public static final String CONTEXT_WINDOWS = BrowserCommonActivator.getDefault().getPluginProperties().getString(
+        "Ctx_LdapBrowserWindows_id" );
+    public static final String CONTEXT_DIALOGS = BrowserCommonActivator.getDefault().getPluginProperties().getString(
+        "Ctx_LdapBrowserDialogs_id" );
+
+    public static final String ACTION_ID_EDIT_VALUE = BrowserCommonActivator.getDefault().getPluginProperties()
+        .getString( "Cmd_EditValue_id" );
+    public static final String ACTION_ID_EDIT_ATTRIBUTE_DESCRIPTION = BrowserCommonActivator.getDefault()
+        .getPluginProperties().getString( "Cmd_EditAttributeDescription_id" );
+    public static final String ACTION_ID_EDIT_RECORD = BrowserCommonActivator.getDefault().getPluginProperties()
+        .getString( "Cmd_EditRecord_id" );
 
-    public static final String CONTEXT_WINDOWS = "org.apache.directory.studio.ldapbrowser.contexts.window";
-
-    public static final String CONTEXT_DIALOGS = "org.apache.directory.studio.ldapbrowser.contexts.dialog";
-    
-    public static final String ACTION_ID_EDIT_VALUE = "org.apache.directory.studio.ldapbrowser.action.editValue";
-
-    public static final String ACTION_ID_EDIT_ATTRIBUTE_DESCRIPTION = "org.apache.directory.studio.ldapbrowser.action.editAttributeDescription";
-
-    public static final String ACTION_ID_EDIT_RECORD = "org.apache.directory.studio.ldapbrowser.action.editRecord";
-    
-
-    
     public static final String DIALOGSETTING_KEY_RECENT_FILE_PATH = "recentFilePath";
-
     public static final String DIALOGSETTING_KEY_FILE_HISTORY = "fileHistory";
-
     public static final String DIALOGSETTING_KEY_RETURNING_ATTRIBUTES_HISTORY = "returningAttributesHistory";
-
     public static final String DIALOGSETTING_KEY_SEARCH_FILTER_HISTORY = "searchFilterHistory";
-
     public static final String DIALOGSETTING_KEY_DN_HISTORY = "dnHistory";
-
     public static final String DIALOGSETTING_KEY_HOST_HISTORY = "hostHistory";
-
     public static final String DIALOGSETTING_KEY_PORT_HISTORY = "portHistory";
 
-    
-    
-    public static final String FILTER_TEMPLATE_ID = "org.apache.directory.studio.ldapbrowser.common.templates.filter";
+    public static final String FILTER_TEMPLATE_ID = BrowserCommonActivator.getDefault().getPluginProperties()
+        .getString( "CtxType_LdapFilter_Template_id" );
 
-    
     public static final String PREFERENCE_TIME_LIMIT = "timeLimit";
-
     public static final String PREFERENCE_COUNT_LIMIT = "countLimit";
-
     public static final String PREFERENCE_SYNTAX_VALUEPEDITOR_RELATIONS = "syntaxValueProviderRelations";
-
     public static final String PREFERENCE_ATTRIBUTE_VALUEEDITOR_RELATIONS = "attributeValueProviderRelations";
-
     public static final String PREFERENCE_FORMAT_TABLE_ATTRIBUTEDELIMITER = "formatTableAttributeDelimiter";
-
     public static final String PREFERENCE_FORMAT_TABLE_VALUEDELIMITER = "formatTableValueDelimiter";
-
     public static final String PREFERENCE_FORMAT_TABLE_QUOTECHARACTER = "formatTableQuoteCharacter";
-
     public static final String PREFERENCE_FORMAT_TABLE_LINESEPARATOR = "formatTableLineSeparator";
-
     public static final String PREFERENCE_FORMAT_TABLE_BINARYENCODING = "formatTableBinaryEncoding";
-    
     public static final String PREFERENCE_SHOW_RAW_VALUES = "showRawValues";
-    
     public static final String PREFERENCE_BROWSER_SORT_BY = "browserSortBy";
-
     public static final String PREFERENCE_BROWSER_SORT_ORDER = "browserSortOrder";
-
     public static final String PREFERENCE_BROWSER_SORT_LIMIT = "browserSortLimit";
-
     public static final String PREFERENCE_BROWSER_LEAF_ENTRIES_FIRST = "browserLeafEntriesFirst";
-
     public static final String PREFERENCE_BROWSER_CONTAINER_ENTRIES_FIRST = "browserContainerEntriesFirst";
-
     public static final String PREFERENCE_BROWSER_META_ENTRIES_LAST = "browserMetaEntriesLast";
-
     public static final String PREFERENCE_BROWSER_SHOW_DIT = "browserShowDIT";
-
     public static final String PREFERENCE_BROWSER_SHOW_SEARCHES = "browserShowSearches";
-
     public static final String PREFERENCE_BROWSER_SHOW_BOOKMARKS = "browserShowBookmarks";
-
     public static final String PREFERENCE_BROWSER_SHOW_DIRECTORY_META_ENTRIES = "browserShowDirectoryMetaEntries";
-
     public static final String PREFERENCE_BROWSER_ENABLE_FOLDING = "browserEnableFolding";
-
     public static final String PREFERENCE_BROWSER_FOLDING_SIZE = "browserFoldingSize";
-
     public static final String PREFERENCE_BROWSER_EXPAND_BASE_ENTRIES = "browserExpandBaseEntries";
-
     public static final String PREFERENCE_BROWSER_ENTRY_LABEL = "browserEntryLabel";
-
     public static final String PREFERENCE_BROWSER_ENTRY_ABBREVIATE = "browserEntryAbbreviate";
-
     public static final String PREFERENCE_BROWSER_ENTRY_ABBREVIATE_MAX_LENGTH = "browserentryAbbreviateMaxLength";
-
     public static final String PREFERENCE_BROWSER_SEARCH_RESULT_LABEL = "browserSearchResultLabel";
-
     public static final String PREFERENCE_BROWSER_SEARCH_RESULT_ABBREVIATE = "browserWearchResultAbbreviate";
-
     public static final String PREFERENCE_BROWSER_SEARCH_RESULT_ABBREVIATE_MAX_LENGTH = "browserSearchResultAbbreviateMaxLength";
-
     public static final String PREFERENCE_ENTRYEDITOR_SHOW_MAY_ATTRIBUTES = "entryeditorShowMayAttributes";
-
     public static final String PREFERENCE_ENTRYEDITOR_SHOW_MUST_ATTRIBUTES = "entryeditorShowMustAttributes";
-
     public static final String PREFERENCE_ENTRYEDITOR_SHOW_OBJECTCLASS_ATTRIBUTES = "entryeditorShowObjectClassAttribute";
-
     public static final String PREFERENCE_ENTRYEDITOR_SHOW_OPERATIONAL_ATTRIBUTES = "entryeditorShowOperationalAttributes";
-
     public static final String PREFERENCE_ENTRYEDITOR_ENABLE_FOLDING = "entryeditorEnableFolding";
-
     public static final String PREFERENCE_ENTRYEDITOR_FOLDING_THRESHOLD = "entryeditorFoldingThreshold";
-
     public static final String PREFERENCE_ENTRYEDITOR_OBJECTCLASS_AND_MUST_ATTRIBUTES_FIRST
= "entryeditorObjectClassAndMustAttributesFirst";
-
     public static final String PREFERENCE_ENTRYEDITOR_OPERATIONAL_ATTRIBUTES_LAST = "entryeditorOperationalAttributesLast";
-
     public static final String PREFERENCE_ENTRYEDITOR_DEFAULT_SORT_BY = "entryeditorDefaultSortBy";
-
     public static final String PREFERENCE_ENTRYEDITOR_DEFAULT_SORT_ORDER = "entryeditorDefaultSortOrder";
-    
     public static final String PREFERENCE_OBJECTCLASS_COLOR = "objectClassColor";
-
     public static final String PREFERENCE_OBJECTCLASS_FONT = "objectClassFont";
-
     public static final String PREFERENCE_MUSTATTRIBUTE_COLOR = "mustAttributeColor";
-
     public static final String PREFERENCE_MUSTATTRIBUTE_FONT = "mustAttributeFont";
-
     public static final String PREFERENCE_MAYATTRIBUTE_COLOR = "mayAttributeColor";
-
     public static final String PREFERENCE_MAYATTRIBUTE_FONT = "mayAttributeFont";
-
     public static final String PREFERENCE_OPERATIONALATTRIBUTE_COLOR = "operationalAttributeColor";
-
     public static final String PREFERENCE_OPERATIONALATTRIBUTE_FONT = "operationalAttributeFont";
-
     public static final String PREFERENCE_QUICKFILTER_BACKGROUND_COLOR = "quickfilterBackgroundColor";
-
     public static final String PREFERENCE_QUICKFILTER_FOREGROUND_COLOR = "quickfilterForegroundColor";
-
     public static final String PREFERENCE_QUICKFILTER_FONT = "quickfilterFont";
-
     public static final String PREFERENCE_ERROR_FONT = "errorFont";
-
     public static final String PREFERENCE_ERROR_COLOR = "errorColor";
-    
     public static final String PREFERENCE_WARNING_FONT = "warningFont";
-
     public static final String PREFERENCE_WARNING_COLOR = "warningColor";
-
     public static final int SHOW_DN = 0;
-
     public static final int SHOW_RDN = 1;
-
     public static final int SHOW_RDN_VALUE = 2;
-    
-    public static final String PREFERENCEPAGEID_VALUEEDITORS = "org.apache.directory.studio.ldapbrowser.preferences.ValueEditorsPreferencePage";
+
+    public static final String PREFERENCEPAGEID_VALUEEDITORS = BrowserCommonActivator.getDefault()
+        .getPluginProperties().getString( "PrefPage_ValueEditorsPreferencePage_id" );
 
     public static final String IMG_TEMPLATE = "resources/icons/template.gif";
-    
     public static final String IMG_CLEAR = "resources/icons/clear.gif";
-
     public static final String IMG_HEXEDITOR = "resources/icons/hexeditor.gif";
-
     public static final String IMG_TEXTEDITOR = "resources/icons/texteditor.gif";
-    
     public static final String IMG_INPLACE_TEXTEDITOR = "resources/icons/inplace_texteditor.gif";
-    
     public static final String IMG_MULTIVALUEDEDITOR = "resources/icons/multivaluededitor.gif";
-    
     public static final String IMG_PULLDOWN = "resources/icons/pulldown.gif";
-    
     public static final String IMG_SORT = "resources/icons/sort.gif";
-
     public static final String IMG_DIT = "resources/icons/dit.gif";
-    
     public static final String IMG_ENTRY = "resources/icons/entry_default.gif";
-
     public static final String IMG_ENTRY_ROOT = "resources/icons/entry_root.gif";
-
     public static final String IMG_ENTRY_DC = "resources/icons/entry_dc.gif";
-
     public static final String IMG_ENTRY_ORG = "resources/icons/entry_org.gif";
-
     public static final String IMG_ENTRY_PERSON = "resources/icons/entry_person.gif";
-
     public static final String IMG_ENTRY_GROUP = "resources/icons/entry_group.gif";
-
     public static final String IMG_ENTRY_REF = "resources/icons/entry_ref.gif";
-
     public static final String IMG_ENTRY_ALIAS = "resources/icons/entry_alias.gif";
-    
     public static final String IMG_SEARCHES = "resources/icons/searches.gif";
-    
     public static final String IMG_SEARCH = "resources/icons/search.gif";
-
     public static final String IMG_SEARCH_UNPERFORMED = "resources/icons/search_unperformed.gif";
-
     public static final String IMG_BOOKMARKS = "resources/icons/bookmarks.gif";
-
     public static final String IMG_BOOKMARK = "resources/icons/bookmark.gif";
-
     public static final String IMG_BROWSER_SCHEMABROWSEREDITOR = "resources/icons/browser_schemabrowsereditor.gif";
-
     public static final String IMG_CONNECTION_ADD = "resources/icons/connection_add.gif";
-
     public static final String IMG_CONNECTION_CONNECTED = "resources/icons/connection_connected.gif";
-
     public static final String IMG_CONNECTION_DISCONNECTED = "resources/icons/connection_disconnected.gif";
-
     public static final String IMG_CONNECTION_CONNECT = "resources/icons/connection_connect.gif";
-
     public static final String IMG_CONNECTION_DISCONNECT = "resources/icons/connection_disconnect.gif";
-    
     public static final String IMG_CONNECTION_WIZARD = "resources/icons/connection_wizard.gif";
-    
     public static final String IMG_REFRESH = "resources/icons/refresh.gif";
-    
     public static final String IMG_COLLAPSEALL = "resources/icons/collapseall.gif";
-    
     public static final String IMG_FILTER_DIT = "resources/icons/filter_dit.gif";
-    
     public static final String IMG_FILTER_EDITOR = "resources/icons/filtereditor.gif";
-    
     public static final String IMG_PARENT = "resources/icons/parent.gif";
-    
     public static final String IMG_UNFILTER_DIT = "resources/icons/unfilter_dit.gif";
-    
     public static final String IMG_FILTER = "resources/icons/filter.gif";
-
     public static final String IMG_SORT_ASCENDING = "resources/icons/sort_ascending.gif";
-
     public static final String IMG_SORT_DESCENDING = "resources/icons/sort_descending.gif";
-
     public static final String IMG_VALUE_ADD = "resources/icons/value_add.gif";
-    
     public static final String IMG_ATTRIBUTE_ADD = "resources/icons/attribute_add.gif";
-    
     public static final String IMG_DELETE_ALL = "resources/icons/delete_all.gif";
-
     public static final String IMG_ATD = "resources/icons/atd.png";
-
     public static final String IMG_OCD = "resources/icons/ocd.png";
-
     public static final String IMG_OCD_ABSTRACT = "resources/icons/ocd_abstract.gif";
-
     public static final String IMG_OCD_AUXILIARY = "resources/icons/ocd_auxiliary.gif";
-
     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";
-
-
-
-
-    
 }



Mime
View raw message