directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From seelm...@apache.org
Subject svn commit: r759535 - in /directory/studio/trunk/ldifeditor: plugin.properties plugin.xml plugin_de.properties resources/templates/
Date Sat, 28 Mar 2009 18:08:20 GMT
Author: seelmann
Date: Sat Mar 28 18:08:19 2009
New Revision: 759535

URL: http://svn.apache.org/viewvc?rev=759535&view=rev
Log:
Fix for DIRSTUDIO-451 (Templates not I18ned in LdifEditor): 
- moved templates to plugin.xml
- added english and german translations

Removed:
    directory/studio/trunk/ldifeditor/resources/templates/
Modified:
    directory/studio/trunk/ldifeditor/plugin.properties
    directory/studio/trunk/ldifeditor/plugin.xml
    directory/studio/trunk/ldifeditor/plugin_de.properties

Modified: directory/studio/trunk/ldifeditor/plugin.properties
URL: http://svn.apache.org/viewvc/directory/studio/trunk/ldifeditor/plugin.properties?rev=759535&r1=759534&r2=759535&view=diff
==============================================================================
--- directory/studio/trunk/ldifeditor/plugin.properties (original)
+++ directory/studio/trunk/ldifeditor/plugin.properties Sat Mar 28 18:08:19 2009
@@ -67,4 +67,16 @@
 
 Action_ContentAssist_id=org.apache.directory.studio.ldapbrowser.ContentAssist
 
-PrefPage_TextFormatsPreferencePage_id=org.apache.directory.studio.ldapbrowser.preferences.TextFormatsPreferencePage
\ No newline at end of file
+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
+Template_LdifDeleteRecord_description=LDIF change delete record
+Template_LdifModdnRecord_description=LDIF Cchange modify DN record
+Template_LdifModifyRecord_AddValue_description=Add value
+Template_LdifModifyRecord_ReplaceValue_description=Replace value
+Template_LdifModifyRecord_DeleteValue_description=Delete value
+Template_LdifModifyRecord_DeleteAttribute_description=Delete attribute
+
+

Modified: directory/studio/trunk/ldifeditor/plugin.xml
URL: http://svn.apache.org/viewvc/directory/studio/trunk/ldifeditor/plugin.xml?rev=759535&r1=759534&r2=759535&view=diff
==============================================================================
--- directory/studio/trunk/ldifeditor/plugin.xml (original)
+++ directory/studio/trunk/ldifeditor/plugin.xml Sat Mar 28 18:08:19 2009
@@ -107,7 +107,123 @@
             class="org.eclipse.jface.text.templates.TemplateContextType"
             id="%CtxType_LdifModdnRecord_id"
             name="%CtxType_LdifModdnRecord_name"/>
-      <include file="resources/templates/templates.xml"/>
+      <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}
+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}
+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}
+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}
+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}
+${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}
+${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}
+${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}
+-
+${cursor}
+</pattern>
+      </template>
+      
+      
    </extension>
 
 </plugin>

Modified: directory/studio/trunk/ldifeditor/plugin_de.properties
URL: http://svn.apache.org/viewvc/directory/studio/trunk/ldifeditor/plugin_de.properties?rev=759535&r1=759534&r2=759535&view=diff
==============================================================================
--- directory/studio/trunk/ldifeditor/plugin_de.properties (original)
+++ directory/studio/trunk/ldifeditor/plugin_de.properties Sat Mar 28 18:08:19 2009
@@ -33,3 +33,12 @@
 
 CtxType_LdifModdnRecord_name=LDIF Moddn Datensatz
 
+Template_LdifContentRecord_description=LDIF Datensatz
+Template_LdifAddRecord_description=LDIF Datensatz zum Hinzufügen eines Eintrags
+Template_LdifModifyRecord_description=LDIF Datensatz zum Ändern eines Eintrags
+Template_LdifDeleteRecord_description=LDIF Datensatz zum Löschen einen Eintrags
+Template_LdifModdnRecord_description=LDIF Datensatz zum Umbenennen oder Verschieben eines
Eintrags
+Template_LdifModifyRecord_AddValue_description=Wert(e) hinzufügen
+Template_LdifModifyRecord_ReplaceValue_description=Wert(e) ersetzen
+Template_LdifModifyRecord_DeleteValue_description=Wert(e) löschen
+Template_LdifModifyRecord_DeleteAttribute_description=Attribut löschen



Mime
View raw message