directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From pamarce...@apache.org
Subject svn commit: r690961 - in /directory/studio/trunk/ldifeditor: ./ src/main/java/org/apache/directory/studio/ldifeditor/ src/main/java/org/apache/directory/studio/ldifeditor/editor/
Date Mon, 01 Sep 2008 12:44:10 GMT
Author: pamarcelot
Date: Mon Sep  1 05:44:09 2008
New Revision: 690961

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

Modified:
    directory/studio/trunk/ldifeditor/plugin.properties
    directory/studio/trunk/ldifeditor/src/main/java/org/apache/directory/studio/ldifeditor/LdifEditorConstants.java
    directory/studio/trunk/ldifeditor/src/main/java/org/apache/directory/studio/ldifeditor/editor/LdifDocumentSetupParticipant.java
    directory/studio/trunk/ldifeditor/src/main/java/org/apache/directory/studio/ldifeditor/editor/LdifEditorContributor.java

Modified: directory/studio/trunk/ldifeditor/plugin.properties
URL: http://svn.apache.org/viewvc/directory/studio/trunk/ldifeditor/plugin.properties?rev=690961&r1=690960&r2=690961&view=diff
==============================================================================
--- directory/studio/trunk/ldifeditor/plugin.properties (original)
+++ directory/studio/trunk/ldifeditor/plugin.properties Mon Sep  1 05:44:09 2008
@@ -54,4 +54,10 @@
 CtxType_LdifModificationItem_name=LDIF Modification Item
 
 CtxType_LdifModdnRecord_id=org.apache.directory.studio.ldifeditor.templates.ldifModdnRecord
-CtxType_LdifModdnRecord_name=LDIF Moddn Record
\ No newline at end of file
+CtxType_LdifModdnRecord_name=LDIF Moddn Record
+
+Ldif_Partitioning_id=org.apache.directory.studio.ldifeditor.LdifPartitioning
+
+Cmd_EditRecord_id=org.apache.directory.studio.ldapbrowser.action.editRecord
+
+Action_ContentAssist_id=org.apache.directory.studio.ldapbrowser.ContentAssist
\ No newline at end of file

Modified: directory/studio/trunk/ldifeditor/src/main/java/org/apache/directory/studio/ldifeditor/LdifEditorConstants.java
URL: http://svn.apache.org/viewvc/directory/studio/trunk/ldifeditor/src/main/java/org/apache/directory/studio/ldifeditor/LdifEditorConstants.java?rev=690961&r1=690960&r2=690961&view=diff
==============================================================================
--- directory/studio/trunk/ldifeditor/src/main/java/org/apache/directory/studio/ldifeditor/LdifEditorConstants.java
(original)
+++ directory/studio/trunk/ldifeditor/src/main/java/org/apache/directory/studio/ldifeditor/LdifEditorConstants.java
Mon Sep  1 05:44:09 2008
@@ -32,7 +32,8 @@
     public static final String PLUGIN_ID = LdifEditorActivator.getDefault().getPluginProperties().getString(
         "Plugin_id" );
 
-    public static final String ACTION_ID_EDIT_RECORD = "org.apache.directory.studio.ldapbrowser.action.editRecord";
+    public static final String ACTION_ID_EDIT_RECORD = LdifEditorActivator.getDefault().getPluginProperties()
+        .getString( "Cmd_EditRecord_id" );
 
     public static final String PREFERENCE_LDIFEDITOR_FORMATTER_AUTOWRAP = "ldifEditorFormatterAutoWrap";
 
@@ -141,4 +142,9 @@
 
     public static final String IMG_EXECUTE = "resources/icons/execute.gif";
 
+    public static final String LDIF_PARTITIONING = LdifEditorActivator.getDefault().getPluginProperties().getString(
+        "Ldif_Partitioning_id" );
+
+    public static final String CONTENTASSIST_ACTION = LdifEditorActivator.getDefault().getPluginProperties().getString(
+        "Action_ContentAssist_id" );
 }

Modified: directory/studio/trunk/ldifeditor/src/main/java/org/apache/directory/studio/ldifeditor/editor/LdifDocumentSetupParticipant.java
URL: http://svn.apache.org/viewvc/directory/studio/trunk/ldifeditor/src/main/java/org/apache/directory/studio/ldifeditor/editor/LdifDocumentSetupParticipant.java?rev=690961&r1=690960&r2=690961&view=diff
==============================================================================
--- directory/studio/trunk/ldifeditor/src/main/java/org/apache/directory/studio/ldifeditor/editor/LdifDocumentSetupParticipant.java
(original)
+++ directory/studio/trunk/ldifeditor/src/main/java/org/apache/directory/studio/ldifeditor/editor/LdifDocumentSetupParticipant.java
Mon Sep  1 05:44:09 2008
@@ -21,6 +21,7 @@
 package org.apache.directory.studio.ldifeditor.editor;
 
 
+import org.apache.directory.studio.ldifeditor.LdifEditorConstants;
 import org.apache.directory.studio.ldifeditor.editor.text.LdifPartitionScanner;
 import org.eclipse.core.filebuffers.IDocumentSetupParticipant;
 import org.eclipse.jface.text.IDocument;
@@ -38,7 +39,7 @@
 public class LdifDocumentSetupParticipant implements IDocumentSetupParticipant
 {
     /** The LDIF Partitioning ID */
-    public final static String LDIF_PARTITIONING = "org.apache.directory.studio.ldifeditor.LdifPartitioning";
//$NON-NLS-1$
+    public final static String LDIF_PARTITIONING = LdifEditorConstants.LDIF_PARTITIONING;
 
 
     /**

Modified: directory/studio/trunk/ldifeditor/src/main/java/org/apache/directory/studio/ldifeditor/editor/LdifEditorContributor.java
URL: http://svn.apache.org/viewvc/directory/studio/trunk/ldifeditor/src/main/java/org/apache/directory/studio/ldifeditor/editor/LdifEditorContributor.java?rev=690961&r1=690960&r2=690961&view=diff
==============================================================================
--- directory/studio/trunk/ldifeditor/src/main/java/org/apache/directory/studio/ldifeditor/editor/LdifEditorContributor.java
(original)
+++ directory/studio/trunk/ldifeditor/src/main/java/org/apache/directory/studio/ldifeditor/editor/LdifEditorContributor.java
Mon Sep  1 05:44:09 2008
@@ -22,6 +22,7 @@
 
 
 import org.apache.directory.studio.ldifeditor.LdifEditorActivator;
+import org.apache.directory.studio.ldifeditor.LdifEditorConstants;
 import org.eclipse.ui.IActionBars;
 import org.eclipse.ui.IEditorPart;
 import org.eclipse.ui.IWorkbenchPage;
@@ -40,7 +41,7 @@
 public class LdifEditorContributor extends BasicTextEditorActionContributor
 {
 
-    private static final String CONTENTASSIST_ACTION = "org.apache.directory.studio.ldapbrowser.ContentAssist";
+    private static final String CONTENTASSIST_ACTION = LdifEditorConstants.CONTENTASSIST_ACTION;
 
     private RetargetTextEditorAction contentAssist;
 



Mime
View raw message