directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From elecha...@apache.org
Subject svn commit: r1806525 - in /directory/studio/branches/studio-value/plugins/ldifeditor: plugin.properties plugin.xml src/main/java/org/apache/directory/studio/ldifeditor/LdifEditorConstants.java
Date Tue, 29 Aug 2017 03:42:52 GMT
Author: elecharny
Date: Tue Aug 29 03:42:52 2017
New Revision: 1806525

URL: http://svn.apache.org/viewvc?rev=1806525&view=rev
Log:
o Get rid of Plugin_id in plugin.properties
o Removed the various ID defined in plugin.properties that are used only once

Modified:
    directory/studio/branches/studio-value/plugins/ldifeditor/plugin.properties
    directory/studio/branches/studio-value/plugins/ldifeditor/plugin.xml
    directory/studio/branches/studio-value/plugins/ldifeditor/src/main/java/org/apache/directory/studio/ldifeditor/LdifEditorConstants.java

Modified: directory/studio/branches/studio-value/plugins/ldifeditor/plugin.properties
URL: http://svn.apache.org/viewvc/directory/studio/branches/studio-value/plugins/ldifeditor/plugin.properties?rev=1806525&r1=1806524&r2=1806525&view=diff
==============================================================================
--- directory/studio/branches/studio-value/plugins/ldifeditor/plugin.properties (original)
+++ directory/studio/branches/studio-value/plugins/ldifeditor/plugin.properties Tue Aug 29
03:42:52 2017
@@ -14,63 +14,55 @@
 # KIND, either express or implied.  See the License for the
 # specific language governing permissions and limitations
 # under the License.
-
-Plugin_id=org.apache.directory.studio.ldifeditor
-
+#---------------------------------------------------------------------------------------------------
+# The IDs used more than once
+#---------------------------------------------------------------------------------------------------
 Editor_LdifEditor_id=org.apache.directory.studio.ldifeditor.editor.LdifEditor
-Editor_LdifEditor_name=LDIF Editor
-
 NewWizards_Category_id=org.apache.directory.studio.ldapbrowser.newWizards
-
 NewWizard_NewLdifFileWizard_id=org.apache.directory.studio.ldifeditor.wizards.NewLdifFileWizard
-NewWizard_NewLdifFileWizard_name=LDIF File
 
-Keyword_Colors_id=org.apache.directory.studio.ldapbrowser.keyword.colors
 Keyword_LDAP_id=org.apache.directory.studio.ldapbrowser.keyword.ldap
 Keyword_LDIF_id=org.apache.directory.studio.ldapbrowser.keyword.ldif
 
-PrefPage_StudioPage_id=org.apache.directory.studio.StudioPreferencePage
-
+PrefPage_LdifEditorContentAssistPreferencePage_id=org.apache.directory.studio.ldifeditor.dialogs.preferences.LdifEditorContentAssistPreferencePage
 PrefPage_LdifEditorPreferencePage_id=org.apache.directory.studio.ldifeditor.dialogs.preferences.LdifEditorPreferencePage
+PrefPage_LdifEditorSyntaxColoringPreferencePage_id=org.apache.directory.studio.ldifeditor.dialogs.preferences.LdifEditorSyntaxColoringPreferencePage
+PrefPage_LdifEditorTemplatesPreferencePage_id=org.apache.directory.studio.ldifeditor.dialogs.preferences.LdifEditorTemplatesPreferencePage
+
+CtxType_LdifAttributeValueRecord_id=org.apache.directory.studio.ldifeditor.templates.ldifAttrValRecord
+CtxType_LdifFile_id=org.apache.directory.studio.ldifeditor.templates.ldifFile
+CtxType_LdifModificationItem_id=org.apache.directory.studio.ldifeditor.templates.ldifModificationItem
+CtxType_LdifModificationRecord_id=org.apache.directory.studio.ldifeditor.templates.ldifModificationRecord
+CtxType_LdifModdnRecord_id=org.apache.directory.studio.ldifeditor.templates.ldifModdnRecord
+
+Cmd_EditRecord_id=org.apache.directory.studio.ldapbrowser.action.editRecord
+Cmd_EditAttributeDescription_id=org.apache.directory.studio.ldapbrowser.action.editAttributeDescription
+
+#---------------------------------------------------------------------------------------------------
+# The I18n Strings
+#---------------------------------------------------------------------------------------------------
+Editor_LdifEditor_name=LDIF Editor
+
+NewWizard_NewLdifFileWizard_name=LDIF File
+
 PrefPage_LdifEditorPreferencePage_name=LDIF Editor
 
-PrefPage_LdifEditorContentAssistPreferencePage_id=org.apache.directory.studio.ldifeditor.dialogs.preferences.LdifEditorContentAssistPreferencePage
 PrefPage_LdifEditorContentAssistPreferencePage_name=Content Assist
 
-PrefPage_LdifEditorSyntaxColoringPreferencePage_id=org.apache.directory.studio.ldifeditor.dialogs.preferences.LdifEditorSyntaxColoringPreferencePage
 PrefPage_LdifEditorSyntaxColoringPreferencePage_name=Syntax Coloring
 
-PrefPage_LdifEditorTemplatesPreferencePage_id=org.apache.directory.studio.ldifeditor.dialogs.preferences.LdifEditorTemplatesPreferencePage
 PrefPage_LdifEditorTemplatesPreferencePage_name=Templates
 
-CtxType_LdifFile_id=org.apache.directory.studio.ldifeditor.templates.ldifFile
 CtxType_LdifFile_name=LDIF File
 
-CtxType_LdifAttributeValueRecord_id=org.apache.directory.studio.ldifeditor.templates.ldifAttrValRecord
 CtxType_LdifAttributeValueRecord_name=LDIF Content Record
 
-CtxType_LdifModificationRecord_id=org.apache.directory.studio.ldifeditor.templates.ldifModificationRecord
 CtxType_LdifModificationRecord_name=LDIF Modification Record
 
-CtxType_LdifModificationItem_id=org.apache.directory.studio.ldifeditor.templates.ldifModificationItem
 CtxType_LdifModificationItem_name=LDIF Modification Item
 
-CtxType_LdifModdnRecord_id=org.apache.directory.studio.ldifeditor.templates.ldifModdnRecord
 CtxType_LdifModdnRecord_name=LDIF Moddn Record
 
-Ldif_Partitioning_id=org.apache.directory.studio.ldifeditor.LdifPartitioning
-
-Cmd_FormatLdifDocument_id=org.apache.directory.studio.ldifeditor.editor.actions.FormatLdifDocumentAction
-Cmd_FormatLdifRecord_id=org.apache.directory.studio.ldifeditor.editor.actions.FormatLdifRecordAction
-Cmd_ExecuteLdif_id=org.apache.directory.studio.ldifeditor.editor.ExecuteLdifAction
-
-Cmd_EditRecord_id=org.apache.directory.studio.ldapbrowser.action.editRecord
-Cmd_EditAttributeDescription_id=org.apache.directory.studio.ldapbrowser.action.editAttributeDescription
-
-Action_ContentAssist_id=org.apache.directory.studio.ldapbrowser.ContentAssist
-
-PrefPage_TextFormatsPreferencePage_id=org.apache.directory.studio.ldapbrowser.preferences.TextFormatsPreferencePage
-
 Template_LdifContentRecord_description=LDIF content record
 Template_LdifAddRecord_description=LDIF change add record
 Template_LdifModifyRecord_description=LDIF change modify record

Modified: directory/studio/branches/studio-value/plugins/ldifeditor/plugin.xml
URL: http://svn.apache.org/viewvc/directory/studio/branches/studio-value/plugins/ldifeditor/plugin.xml?rev=1806525&r1=1806524&r2=1806525&view=diff
==============================================================================
--- directory/studio/branches/studio-value/plugins/ldifeditor/plugin.xml (original)
+++ directory/studio/branches/studio-value/plugins/ldifeditor/plugin.xml Tue Aug 29 03:42:52
2017
@@ -19,212 +19,234 @@
   under the License.
 -->
 <plugin>
-   <extension
-         point="org.eclipse.ui.editors">
+  <extension
+      point="org.eclipse.ui.editors">
     <editor
-          class="org.apache.directory.studio.ldifeditor.editor.LdifEditor"
-          contributorClass="org.apache.directory.studio.ldifeditor.editor.LdifEditorContributor"
-          default="false"
-          extensions="ldif, ldiflog"
-          icon="resources/icons/ldifeditor.gif"
-          id="%Editor_LdifEditor_id"
-          name="%Editor_LdifEditor_name"/>         
-   </extension>
-
-   <extension
-         point="org.eclipse.ui.newWizards">
-      <wizard
-            canFinishEarly="true"
-            category="%NewWizards_Category_id"
-            class="org.apache.directory.studio.ldifeditor.wizards.NewLdifFileWizard"
-            hasPages="false"
-            icon="resources/icons/ldifeditor_new.gif"
-            id="%NewWizard_NewLdifFileWizard_id"
-            name="%NewWizard_NewLdifFileWizard_name"
-            project="false"/>
-   </extension>
-
-   <extension
-         point="org.eclipse.core.runtime.preferences">
-      <initializer class="org.apache.directory.studio.ldifeditor.LdifEditorPreferencesInitializer"/>
-   </extension>   
+        class="org.apache.directory.studio.ldifeditor.editor.LdifEditor"
+        contributorClass="org.apache.directory.studio.ldifeditor.editor.LdifEditorContributor"
+        default="false"
+        extensions="ldif, ldiflog"
+        icon="resources/icons/ldifeditor.gif"
+        id="%Editor_LdifEditor_id"
+        name="%Editor_LdifEditor_name"/>         
+  </extension>
+
+  <extension
+      point="org.eclipse.ui.newWizards">
+    <wizard
+        canFinishEarly="true"
+        category="%NewWizards_Category_id"
+        class="org.apache.directory.studio.ldifeditor.wizards.NewLdifFileWizard"
+        hasPages="false"
+        icon="resources/icons/ldifeditor_new.gif"
+        id="%NewWizard_NewLdifFileWizard_id"
+        name="%NewWizard_NewLdifFileWizard_name"
+        project="false"/>
+  </extension>
+
+  <extension
+      point="org.eclipse.core.runtime.preferences">
+    <initializer class="org.apache.directory.studio.ldifeditor.LdifEditorPreferencesInitializer"/>
+  </extension>   
       
-   <extension
-         point="org.eclipse.ui.preferencePages">
-      <page
-            category="%PrefPage_StudioPage_id"
-            class="org.apache.directory.studio.ldifeditor.dialogs.preferences.LdifEditorPreferencePage"
-            id="%PrefPage_LdifEditorPreferencePage_id"
-            name="%PrefPage_LdifEditorPreferencePage_name">
-         <keywordReference id="%Keyword_LDAP_id"/>
-         <keywordReference id="%Keyword_LDIF_id"/>
-      </page>
-      <page
-            category="%PrefPage_LdifEditorPreferencePage_id"
-            class="org.apache.directory.studio.ldifeditor.dialogs.preferences.LdifEditorContentAssistPreferencePage"
-            id="%PrefPage_LdifEditorContentAssistPreferencePage_id"
-            name="%PrefPage_LdifEditorContentAssistPreferencePage_name">
-         <keywordReference id="%Keyword_LDAP_id"/>
-         <keywordReference id="%Keyword_LDIF_id"/>
-      </page>
-      <page
-            category="%PrefPage_LdifEditorPreferencePage_id"
-            class="org.apache.directory.studio.ldifeditor.dialogs.preferences.LdifEditorSyntaxColoringPreferencePage"
-            id="%PrefPage_LdifEditorSyntaxColoringPreferencePage_id"
-            name="%PrefPage_LdifEditorSyntaxColoringPreferencePage_name">
-         <keywordReference id="%Keyword_LDAP_id"/>
-         <keywordReference id="%Keyword_LDIF_id"/>
-         <keywordReference id="%Keyword_Colors_id"/>
-      </page>
-      <page
-            category="%PrefPage_LdifEditorPreferencePage_id"
-            class="org.apache.directory.studio.ldifeditor.dialogs.preferences.LdifEditorTemplatesPreferencePage"
-            id="%PrefPage_LdifEditorTemplatesPreferencePage_id"
-            name="%PrefPage_LdifEditorTemplatesPreferencePage_name">
-         <keywordReference id="%Keyword_LDAP_id"/>
-         <keywordReference id="%Keyword_LDIF_id"/>
-      </page>
-   </extension>      
-
-   <extension
-         point="org.eclipse.ui.editors.templates">
-      <contextType
-            class="org.eclipse.jface.text.templates.TemplateContextType"
-            id="%CtxType_LdifFile_id"
-            name="%CtxType_LdifFile_name"/>
-      <contextType
-            class="org.eclipse.jface.text.templates.TemplateContextType"
-            id="%CtxType_LdifAttributeValueRecord_id"
-            name="%CtxType_LdifAttributeValueRecord_name"/>
-      <contextType
-            class="org.eclipse.jface.text.templates.TemplateContextType"
-            id="%CtxType_LdifModificationRecord_id"
-            name="%CtxType_LdifModificationRecord_name"/>
-      <contextType
-            class="org.eclipse.jface.text.templates.TemplateContextType"
-            id="%CtxType_LdifModificationItem_id"
-            name="%CtxType_LdifModificationItem_name"/>
-      <contextType
-            class="org.eclipse.jface.text.templates.TemplateContextType"
-            id="%CtxType_LdifModdnRecord_id"
-            name="%CtxType_LdifModdnRecord_name"/>
-      <template
-            autoinsert="true"
-            contextTypeId="%CtxType_LdifFile_id"
-            description="%Template_LdifContentRecord_description"
-            icon="resources/icons/entry.gif"
-            id="org.apache.directory.studio.ldifeditor.templates.ldifContentRecord"
-            name="dn: ">
-         <pattern>dn: ${dn}
+  <extension
+      point="org.eclipse.ui.preferencePages">
+    <page
+        category="org.apache.directory.studio.StudioPreferencePage"
+        class="org.apache.directory.studio.ldifeditor.dialogs.preferences.LdifEditorPreferencePage"
+        id="%PrefPage_LdifEditorPreferencePage_id"
+        name="%PrefPage_LdifEditorPreferencePage_name">
+      <keywordReference id="%Keyword_LDAP_id"/>
+      <keywordReference id="%Keyword_LDIF_id"/>
+    </page>
+
+    <page
+        category="%PrefPage_LdifEditorPreferencePage_id"
+        class="org.apache.directory.studio.ldifeditor.dialogs.preferences.LdifEditorContentAssistPreferencePage"
+        id="%PrefPage_LdifEditorContentAssistPreferencePage_id"
+        name="%PrefPage_LdifEditorContentAssistPreferencePage_name">
+      <keywordReference id="%Keyword_LDAP_id"/>
+      <keywordReference id="%Keyword_LDIF_id"/>
+    </page>
+
+    <page
+        category="%PrefPage_LdifEditorPreferencePage_id"
+        class="org.apache.directory.studio.ldifeditor.dialogs.preferences.LdifEditorSyntaxColoringPreferencePage"
+        id="%PrefPage_LdifEditorSyntaxColoringPreferencePage_id"
+        name="%PrefPage_LdifEditorSyntaxColoringPreferencePage_name">
+      <keywordReference id="%Keyword_LDAP_id"/>
+      <keywordReference id="%Keyword_LDIF_id"/>
+      <keywordReference id="org.apache.directory.studio.ldapbrowser.keyword.colors"/>
+    </page>
+
+    <page
+        category="%PrefPage_LdifEditorPreferencePage_id"
+        class="org.apache.directory.studio.ldifeditor.dialogs.preferences.LdifEditorTemplatesPreferencePage"
+        id="%PrefPage_LdifEditorTemplatesPreferencePage_id"
+        name="%PrefPage_LdifEditorTemplatesPreferencePage_name">
+      <keywordReference id="%Keyword_LDAP_id"/>
+      <keywordReference id="%Keyword_LDIF_id"/>
+    </page>
+  </extension>
+
+  <extension
+      point="org.eclipse.ui.editors.templates">
+    <contextType
+        class="org.eclipse.jface.text.templates.TemplateContextType"
+        id="%CtxType_LdifFile_id"
+        name="%CtxType_LdifFile_name"/>
+
+    <contextType
+        class="org.eclipse.jface.text.templates.TemplateContextType"
+        id="%CtxType_LdifAttributeValueRecord_id"
+        name="%CtxType_LdifAttributeValueRecord_name"/>
+
+    <contextType
+        class="org.eclipse.jface.text.templates.TemplateContextType"
+        id="%CtxType_LdifModificationRecord_id"
+        name="%CtxType_LdifModificationRecord_name"/>
+
+    <contextType
+        class="org.eclipse.jface.text.templates.TemplateContextType"
+        id="%CtxType_LdifModificationItem_id"
+        name="%CtxType_LdifModificationItem_name"/>
+
+    <contextType
+        class="org.eclipse.jface.text.templates.TemplateContextType"
+        id="%CtxType_LdifModdnRecord_id"
+        name="%CtxType_LdifModdnRecord_name"/>
+
+    <template
+        autoinsert="true"
+        contextTypeId="%CtxType_LdifFile_id"
+        description="%Template_LdifContentRecord_description"
+        icon="resources/icons/entry.gif"
+        id="org.apache.directory.studio.ldifeditor.templates.ldifContentRecord"
+        name="dn: ">
+      <pattern>
+dn: ${dn}
 objectClass: ${objectClass}
 ${cursor}
-</pattern>
-      </template>
-      <template
-            autoinsert="true"
-            contextTypeId="%CtxType_LdifFile_id"
-            description="%Template_LdifAddRecord_description"
-            icon="resources/icons/ldif_add.gif"
-            id="org.apache.directory.studio.ldifeditor.templates.ldifChangeAddRecord"
-            name="changetype: add">
-         <pattern>dn: ${dn}
+      </pattern>
+    </template>
+
+    <template
+        autoinsert="true"
+        contextTypeId="%CtxType_LdifFile_id"
+        description="%Template_LdifAddRecord_description"
+        icon="resources/icons/ldif_add.gif"
+        id="org.apache.directory.studio.ldifeditor.templates.ldifChangeAddRecord"
+        name="changetype: add">
+      <pattern>
+dn: ${dn}
 changetype: add
 objectClass: ${objectClass}
 ${cursor}
-</pattern>
-      </template>
-      <template
-            autoinsert="true"
-            contextTypeId="%CtxType_LdifFile_id"
-            description="%Template_LdifModifyRecord_description"
-            icon="resources/icons/ldif_modify.gif"
-            id="org.apache.directory.studio.ldifeditor.templatesldifChangeModifyRecord"
-            name="changetype: modify">
-         <pattern>dn: ${dn}
+      </pattern>
+    </template>
+
+    <template
+        autoinsert="true"
+        contextTypeId="%CtxType_LdifFile_id"
+        description="%Template_LdifModifyRecord_description"
+        icon="resources/icons/ldif_modify.gif"
+        id="org.apache.directory.studio.ldifeditor.templatesldifChangeModifyRecord"
+        name="changetype: modify">
+      <pattern>
+dn: ${dn}
 changetype: modify
 ${cursor}
-</pattern>
-      </template>
-      <template
-            autoinsert="true"
-            contextTypeId="%CtxType_LdifFile_id"
-            description="%Template_LdifDeleteRecord_description"
-            icon="resources/icons/ldif_delete.gif"
-            id="org.apache.directory.studio.ldifeditor.templates.ldifChangeDeleteRecord"
-            name="changetype: modify">
-         <pattern>dn: ${dn}
+      </pattern>
+    </template>
+
+    <template
+        autoinsert="true"
+        contextTypeId="%CtxType_LdifFile_id"
+        description="%Template_LdifDeleteRecord_description"
+        icon="resources/icons/ldif_delete.gif"
+        id="org.apache.directory.studio.ldifeditor.templates.ldifChangeDeleteRecord"
+        name="changetype: modify">
+      <pattern>
+dn: ${dn}
 changetype: delete
 ${cursor}
-</pattern>
-      </template>
-      <template
-            autoinsert="true"
-            contextTypeId="%CtxType_LdifFile_id"
-            description="%Template_LdifModdnRecord_description"
-            icon="resources/icons/ldif_rename.gif"
-            id="org.apache.directory.studio.ldifeditor.templates.ldifChangeModdnRecord"
-            name="changetype: modify">
-         <pattern>dn: ${dn}
+      </pattern>
+    </template>
+
+    <template
+        autoinsert="true"
+        contextTypeId="%CtxType_LdifFile_id"
+        description="%Template_LdifModdnRecord_description"
+        icon="resources/icons/ldif_rename.gif"
+        id="org.apache.directory.studio.ldifeditor.templates.ldifChangeModdnRecord"
+        name="changetype: modify">
+      <pattern
+>dn: ${dn}
 changetype: moddn
 newrdn: ${newrdn}
 deleteoldrdn: 1
 newsuperior: ${newsuperior}
 ${cursor}
-</pattern>
-      </template>
-      <template
-            autoinsert="true"
-            contextTypeId="%CtxType_LdifModificationRecord_id"
-            description="%Template_LdifModifyRecord_AddValue_description"
-            icon="resources/icons/ldif_mod_add.gif"
-            id="org.apache.directory.studio.ldifeditor.templates.ldifModificationRecordAddModification"
-            name="add: ">
-         <pattern>add: ${attribute}
+      </pattern>
+    </template>
+
+    <template
+        autoinsert="true"
+        contextTypeId="%CtxType_LdifModificationRecord_id"
+        description="%Template_LdifModifyRecord_AddValue_description"
+        icon="resources/icons/ldif_mod_add.gif"
+        id="org.apache.directory.studio.ldifeditor.templates.ldifModificationRecordAddModification"
+        name="add: ">
+      <pattern>
+add: ${attribute}
 ${attribute}: ${value}
 -
 ${cursor}
-</pattern>
-      </template>
-      <template
-            autoinsert="true"
-            contextTypeId="%CtxType_LdifModificationRecord_id"
-            description="%Template_LdifModifyRecord_ReplaceValue_description"
-            icon="resources/icons/ldif_mod_replace.gif"
-            id="org.apache.directory.studio.ldifeditor.ui.templates.ldifModificationRecordReplaceModification"
-            name="replace: ">
-         <pattern>replace: ${attribute}
+      </pattern>
+    </template>
+
+    <template
+        autoinsert="true"
+        contextTypeId="%CtxType_LdifModificationRecord_id"
+        description="%Template_LdifModifyRecord_ReplaceValue_description"
+        icon="resources/icons/ldif_mod_replace.gif"
+        id="org.apache.directory.studio.ldifeditor.ui.templates.ldifModificationRecordReplaceModification"
+        name="replace: ">
+      <pattern>
+replace: ${attribute}
 ${attribute}: ${value}
 -
 ${cursor}
-</pattern>
-      </template>
-      <template
-            autoinsert="true"
-            contextTypeId="%CtxType_LdifModificationRecord_id"
-            description="%Template_LdifModifyRecord_DeleteValue_description"
-            icon="resources/icons/ldif_mod_delete.gif"
-            id="org.apache.directory.studio.ldifeditor.templates.ldifModificationRecordDeleteModification"
-            name="delete: ">
-         <pattern>delete: ${attribute}
+      </pattern>
+    </template>
+
+    <template
+        autoinsert="true"
+        contextTypeId="%CtxType_LdifModificationRecord_id"
+        description="%Template_LdifModifyRecord_DeleteValue_description"
+        icon="resources/icons/ldif_mod_delete.gif"
+        id="org.apache.directory.studio.ldifeditor.templates.ldifModificationRecordDeleteModification"
+        name="delete: ">
+      <pattern>
+delete: ${attribute}
 ${attribute}: ${value}
 -
 ${cursor}
-</pattern>
-      </template>
-      <template
-            autoinsert="true"
-            contextTypeId="%CtxType_LdifModificationRecord_id"
-            description="%Template_LdifModifyRecord_DeleteAttribute_description"
-            icon="resources/icons/ldif_mod_delete.gif"
-            id="org.apache.directory.studio.ldifeditor.templates.ldifModificationRecordDeleteAttributeModification"
-            name="delete: ">
-         <pattern>delete: ${attribute}
+      </pattern>
+    </template>
+
+    <template
+        autoinsert="true"
+        contextTypeId="%CtxType_LdifModificationRecord_id"
+        description="%Template_LdifModifyRecord_DeleteAttribute_description"
+        icon="resources/icons/ldif_mod_delete.gif"
+        id="org.apache.directory.studio.ldifeditor.templates.ldifModificationRecordDeleteAttributeModification"
+        name="delete: ">
+      <pattern>
+delete: ${attribute}
 -
 ${cursor}
-</pattern>
-      </template>
-      
-      
-   </extension>
-
+      </pattern>
+    </template>
+  </extension>
 </plugin>

Modified: directory/studio/branches/studio-value/plugins/ldifeditor/src/main/java/org/apache/directory/studio/ldifeditor/LdifEditorConstants.java
URL: http://svn.apache.org/viewvc/directory/studio/branches/studio-value/plugins/ldifeditor/src/main/java/org/apache/directory/studio/ldifeditor/LdifEditorConstants.java?rev=1806525&r1=1806524&r2=1806525&view=diff
==============================================================================
--- directory/studio/branches/studio-value/plugins/ldifeditor/src/main/java/org/apache/directory/studio/ldifeditor/LdifEditorConstants.java
(original)
+++ directory/studio/branches/studio-value/plugins/ldifeditor/src/main/java/org/apache/directory/studio/ldifeditor/LdifEditorConstants.java
Tue Aug 29 03:42:52 2017
@@ -38,8 +38,7 @@ public final class LdifEditorConstants
     }
 
     /** The plug-in ID */
-    public static final String PLUGIN_ID = LdifEditorActivator.getDefault().getPluginProperties()
-        .getString( "Plugin_id" ); //$NON-NLS-1$
+    public static final String PLUGIN_ID = LdifEditorConstants.class.getPackage().getName();
 
     public static final String ACTION_ID_EDIT_RECORD = LdifEditorActivator.getDefault().getPluginProperties()
         .getString( "Cmd_EditRecord_id" ); //$NON-NLS-1$
@@ -47,14 +46,14 @@ public final class LdifEditorConstants
     public static final String ACTION_ID_EDIT_ATTRIBUTE_DESCRIPTION = LdifEditorActivator.getDefault()
         .getPluginProperties().getString( "Cmd_EditAttributeDescription_id" ); //$NON-NLS-1$
 
-    public static final String ACTION_ID_FORMAT_LDIF_DOCUMENT = LdifEditorActivator.getDefault().getPluginProperties()
-        .getString( "Cmd_FormatLdifDocument_id" ); //$NON-NLS-1$
+    public static final String ACTION_ID_FORMAT_LDIF_DOCUMENT = 
+        "org.apache.directory.studio.ldifeditor.editor.actions.FormatLdifDocumentAction";
//$NON-NLS-1$
 
-    public static final String ACTION_ID_FORMAT_LDIF_RECORD = LdifEditorActivator.getDefault().getPluginProperties()
-        .getString( "Cmd_FormatLdifRecord_id" ); //$NON-NLS-1$
+    public static final String ACTION_ID_FORMAT_LDIF_RECORD = 
+        "org.apache.directory.studio.ldifeditor.editor.actions.FormatLdifRecordAction"; //$NON-NLS-1$
 
-    public static final String ACTION_ID_EXECUTE_LDIF = LdifEditorActivator.getDefault().getPluginProperties()
-        .getString( "Cmd_ExecuteLdif_id" ); //$NON-NLS-1$
+    public static final String ACTION_ID_EXECUTE_LDIF = 
+        "org.apache.directory.studio.ldifeditor.editor.ExecuteLdifAction"; //$NON-NLS-1$
 
     public static final String NEW_WIZARD_NEW_LDIF_FILE = LdifEditorActivator.getDefault().getPluginProperties()
         .getString( "NewWizard_NewLdifFileWizard_id" ); //$NON-NLS-1$
@@ -169,12 +168,10 @@ public final class LdifEditorConstants
 
     public static final String IMG_EXECUTE = "resources/icons/execute.gif"; //$NON-NLS-1$
 
-    public static final String LDIF_PARTITIONING = LdifEditorActivator.getDefault().getPluginProperties()
-        .getString( "Ldif_Partitioning_id" ); //$NON-NLS-1$
+    public static final String LDIF_PARTITIONING = "org.apache.directory.studio.ldifeditor.LdifPartitioning";
//$NON-NLS-1$
 
-    public static final String CONTENTASSIST_ACTION = LdifEditorActivator.getDefault().getPluginProperties()
-        .getString( "Action_ContentAssist_id" ); //$NON-NLS-1$
+    public static final String CONTENTASSIST_ACTION = "org.apache.directory.studio.ldapbrowser.ContentAssist";
//$NON-NLS-1$
 
-    public static final String PREFERENCEPAGEID_TEXTFORMATS = LdifEditorActivator.getDefault().getPluginProperties()
-        .getString( "PrefPage_TextFormatsPreferencePage_id" ); //$NON-NLS-1$
+    public static final String PREFERENCEPAGEID_TEXTFORMATS = 
+        "org.apache.directory.studio.ldapbrowser.preferences.TextFormatsPreferencePage";
//$NON-NLS-1$
 }



Mime
View raw message