You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@directory.apache.org by se...@apache.org on 2009/02/07 20:45:21 UTC
svn commit: r741944 [1/2] - in /directory/studio/trunk/ldifeditor: ./
src/main/java/org/apache/directory/studio/ldifeditor/
src/main/java/org/apache/directory/studio/ldifeditor/dialogs/
src/main/java/org/apache/directory/studio/ldifeditor/dialogs/prefe...
Author: seelmann
Date: Sat Feb 7 19:45:20 2009
New Revision: 741944
URL: http://svn.apache.org/viewvc?rev=741944&view=rev
Log:
String externalization, German translations
Added:
directory/studio/trunk/ldifeditor/src/main/java/org/apache/directory/studio/ldifeditor/dialogs/Messages.java
directory/studio/trunk/ldifeditor/src/main/java/org/apache/directory/studio/ldifeditor/dialogs/messages.properties
directory/studio/trunk/ldifeditor/src/main/java/org/apache/directory/studio/ldifeditor/dialogs/messages_de.properties
directory/studio/trunk/ldifeditor/src/main/java/org/apache/directory/studio/ldifeditor/dialogs/preferences/Messages.java
directory/studio/trunk/ldifeditor/src/main/java/org/apache/directory/studio/ldifeditor/dialogs/preferences/messages.properties
directory/studio/trunk/ldifeditor/src/main/java/org/apache/directory/studio/ldifeditor/dialogs/preferences/messages_de.properties
directory/studio/trunk/ldifeditor/src/main/java/org/apache/directory/studio/ldifeditor/editor/Messages.java
directory/studio/trunk/ldifeditor/src/main/java/org/apache/directory/studio/ldifeditor/editor/actions/Messages.java
directory/studio/trunk/ldifeditor/src/main/java/org/apache/directory/studio/ldifeditor/editor/actions/messages.properties
directory/studio/trunk/ldifeditor/src/main/java/org/apache/directory/studio/ldifeditor/editor/actions/messages_de.properties
directory/studio/trunk/ldifeditor/src/main/java/org/apache/directory/studio/ldifeditor/editor/messages.properties
directory/studio/trunk/ldifeditor/src/main/java/org/apache/directory/studio/ldifeditor/editor/messages_de.properties
Modified:
directory/studio/trunk/ldifeditor/plugin.properties
directory/studio/trunk/ldifeditor/plugin_de.properties
directory/studio/trunk/ldifeditor/src/main/java/org/apache/directory/studio/ldifeditor/LdifEditorActivator.java
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/dialogs/LdifEntryEditorDialog.java
directory/studio/trunk/ldifeditor/src/main/java/org/apache/directory/studio/ldifeditor/dialogs/preferences/LdifEditorContentAssistPreferencePage.java
directory/studio/trunk/ldifeditor/src/main/java/org/apache/directory/studio/ldifeditor/dialogs/preferences/LdifEditorPreferencePage.java
directory/studio/trunk/ldifeditor/src/main/java/org/apache/directory/studio/ldifeditor/dialogs/preferences/LdifEditorSyntaxColoringPreferencePage.java
directory/studio/trunk/ldifeditor/src/main/java/org/apache/directory/studio/ldifeditor/editor/ExecuteLdifAction.java
directory/studio/trunk/ldifeditor/src/main/java/org/apache/directory/studio/ldifeditor/editor/LdifDocumentProvider.java
directory/studio/trunk/ldifeditor/src/main/java/org/apache/directory/studio/ldifeditor/editor/LdifEditor.java
directory/studio/trunk/ldifeditor/src/main/java/org/apache/directory/studio/ldifeditor/editor/LdifEditorContributor.java
directory/studio/trunk/ldifeditor/src/main/java/org/apache/directory/studio/ldifeditor/editor/LdifOutlinePage.java
directory/studio/trunk/ldifeditor/src/main/java/org/apache/directory/studio/ldifeditor/editor/NonExistingLdifEditorInput.java
directory/studio/trunk/ldifeditor/src/main/java/org/apache/directory/studio/ldifeditor/editor/actions/AbstractOpenValueEditorAction.java
directory/studio/trunk/ldifeditor/src/main/java/org/apache/directory/studio/ldifeditor/editor/actions/EditLdifAttributeAction.java
directory/studio/trunk/ldifeditor/src/main/java/org/apache/directory/studio/ldifeditor/editor/actions/EditLdifRecordAction.java
directory/studio/trunk/ldifeditor/src/main/java/org/apache/directory/studio/ldifeditor/editor/actions/FormatLdifDocumentAction.java
directory/studio/trunk/ldifeditor/src/main/java/org/apache/directory/studio/ldifeditor/editor/actions/FormatLdifRecordAction.java
directory/studio/trunk/ldifeditor/src/main/java/org/apache/directory/studio/ldifeditor/editor/actions/OpenDefaultValueEditorAction.java
directory/studio/trunk/ldifeditor/src/main/java/org/apache/directory/studio/ldifeditor/editor/reconciler/LdifAnnotationUpdater.java
directory/studio/trunk/ldifeditor/src/main/java/org/apache/directory/studio/ldifeditor/editor/text/LdifAnnotationHover.java
directory/studio/trunk/ldifeditor/src/main/java/org/apache/directory/studio/ldifeditor/editor/text/LdifAutoEditStrategy.java
directory/studio/trunk/ldifeditor/src/main/java/org/apache/directory/studio/ldifeditor/editor/text/LdifCompletionProcessor.java
directory/studio/trunk/ldifeditor/src/main/java/org/apache/directory/studio/ldifeditor/editor/text/LdifDamagerRepairer.java
directory/studio/trunk/ldifeditor/src/main/java/org/apache/directory/studio/ldifeditor/editor/text/LdifPartitionScanner.java
Modified: directory/studio/trunk/ldifeditor/plugin.properties
URL: http://svn.apache.org/viewvc/directory/studio/trunk/ldifeditor/plugin.properties?rev=741944&r1=741943&r2=741944&view=diff
==============================================================================
--- directory/studio/trunk/ldifeditor/plugin.properties (original)
+++ directory/studio/trunk/ldifeditor/plugin.properties Sat Feb 7 19:45:20 2009
@@ -45,7 +45,7 @@
CtxType_LdifFile_name=LDIF File
CtxType_LdifAttributeValueRecord_id=org.apache.directory.studio.ldifeditor.templates.ldifAttrValRecord
-CtxType_LdifAttributeValueRecord_name=LDIF Attribute Value Record
+CtxType_LdifAttributeValueRecord_name=LDIF Content Record
CtxType_LdifModificationRecord_id=org.apache.directory.studio.ldifeditor.templates.ldifModificationRecord
CtxType_LdifModificationRecord_name=LDIF Modification Record
Modified: directory/studio/trunk/ldifeditor/plugin_de.properties
URL: http://svn.apache.org/viewvc/directory/studio/trunk/ldifeditor/plugin_de.properties?rev=741944&r1=741943&r2=741944&view=diff
==============================================================================
--- directory/studio/trunk/ldifeditor/plugin_de.properties (original)
+++ directory/studio/trunk/ldifeditor/plugin_de.properties Sat Feb 7 19:45:20 2009
@@ -19,13 +19,13 @@
PrefPage_LdifEditorContentAssistPreferencePage_name=Inhalt Assistent
-PrefPage_LdifEditorSyntaxColoringPreferencePage_name=Syntax-Einf?rbung
+PrefPage_LdifEditorSyntaxColoringPreferencePage_name=Syntax-Einfärbung
PrefPage_LdifEditorTemplatesPreferencePage_name=Vorlagen
CtxType_LdifFile_name=LDIF Datei
-CtxType_LdifAttributeValueRecord_name=LDIF Attribut Wert Datensatz
+CtxType_LdifAttributeValueRecord_name=LDIF Inhalts-Datensatz
CtxType_LdifModificationRecord_name=LDIF \u00C4nderungs-Datensatz
Modified: directory/studio/trunk/ldifeditor/src/main/java/org/apache/directory/studio/ldifeditor/LdifEditorActivator.java
URL: http://svn.apache.org/viewvc/directory/studio/trunk/ldifeditor/src/main/java/org/apache/directory/studio/ldifeditor/LdifEditorActivator.java?rev=741944&r1=741943&r2=741944&view=diff
==============================================================================
--- directory/studio/trunk/ldifeditor/src/main/java/org/apache/directory/studio/ldifeditor/LdifEditorActivator.java (original)
+++ directory/studio/trunk/ldifeditor/src/main/java/org/apache/directory/studio/ldifeditor/LdifEditorActivator.java Sat Feb 7 19:45:20 2009
@@ -76,7 +76,7 @@
try
{
- resourceBundle = ResourceBundle.getBundle( "org.apache.directory.studio.ldifeditor.messages" );
+ resourceBundle = ResourceBundle.getBundle( "org.apache.directory.studio.ldifeditor.messages" ); //$NON-NLS-1$
}
catch ( MissingResourceException x )
{
@@ -121,7 +121,7 @@
if ( ldifTemplateStore == null )
{
ldifTemplateStore = new ContributionTemplateStore( getLdifTemplateContextTypeRegistry(),
- getPreferenceStore(), "templates" );
+ getPreferenceStore(), "templates" ); //$NON-NLS-1$
try
{
ldifTemplateStore.load();
@@ -298,15 +298,15 @@
try
{
properties = new PropertyResourceBundle( FileLocator.openStream( this.getBundle(), new Path(
- "plugin.properties" ), false ) );
+ "plugin.properties" ), false ) ); //$NON-NLS-1$
}
catch ( IOException e )
{
// We can't use the PLUGIN_ID constant since loading the plugin.properties file has failed,
// So we're using a default plugin id.
getLog().log(
- new Status( Status.ERROR, "org.apache.directory.studio.ldifeditor", Status.OK,
- "Unable to get the plugin properties.", e ) );
+ new Status( Status.ERROR, "org.apache.directory.studio.ldifeditor", Status.OK, //$NON-NLS-1$
+ "Unable to get the plugin properties.", e ) ); //$NON-NLS-1$
}
}
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=741944&r1=741943&r2=741944&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 Sat Feb 7 19:45:20 2009
@@ -31,142 +31,142 @@
{
/** The plug-in ID */
public static final String PLUGIN_ID = LdifEditorActivator.getDefault().getPluginProperties().getString(
- "Plugin_id" );
+ "Plugin_id" ); //$NON-NLS-1$
public static final String ACTION_ID_EDIT_RECORD = LdifEditorActivator.getDefault().getPluginProperties()
- .getString( "Cmd_EditRecord_id" );
+ .getString( "Cmd_EditRecord_id" ); //$NON-NLS-1$
public static final String ACTION_ID_EDIT_ATTRIBUTE_DESCRIPTION = LdifEditorActivator.getDefault()
- .getPluginProperties().getString( "Cmd_EditAttributeDescription_id" );
+ .getPluginProperties().getString( "Cmd_EditAttributeDescription_id" ); //$NON-NLS-1$
public static final String ACTION_ID_FORMAT_LDIF_DOCUMENT = LdifEditorActivator.getDefault()
- .getPluginProperties().getString( "Cmd_FormatLdifDocument_id" );
+ .getPluginProperties().getString( "Cmd_FormatLdifDocument_id" ); //$NON-NLS-1$
public static final String ACTION_ID_FORMAT_LDIF_RECORD = LdifEditorActivator.getDefault()
- .getPluginProperties().getString( "Cmd_FormatLdifRecord_id" );
+ .getPluginProperties().getString( "Cmd_FormatLdifRecord_id" ); //$NON-NLS-1$
public static final String ACTION_ID_EXECUTE_LDIF = LdifEditorActivator.getDefault()
- .getPluginProperties().getString( "Cmd_ExecuteLdif_id" );
+ .getPluginProperties().getString( "Cmd_ExecuteLdif_id" ); //$NON-NLS-1$
public static final String NEW_WIZARD_NEW_LDIF_FILE = LdifEditorActivator.getDefault().getPluginProperties()
- .getString( "NewWizard_NewLdifFileWizard_id" );
+ .getString( "NewWizard_NewLdifFileWizard_id" ); //$NON-NLS-1$
public static final String EDITOR_LDIF_EDITOR = LdifEditorActivator.getDefault().getPluginProperties().getString(
- "Editor_LdifEditor_id" );
+ "Editor_LdifEditor_id" ); //$NON-NLS-1$
- public static final String PREFERENCE_LDIFEDITOR_FORMATTER_AUTOWRAP = "ldifEditorFormatterAutoWrap";
+ public static final String PREFERENCE_LDIFEDITOR_FORMATTER_AUTOWRAP = "ldifEditorFormatterAutoWrap"; //$NON-NLS-1$
- public static final String PREFERENCE_LDIFEDITOR_FOLDING_ENABLE = "ldifEditorFoldingEnable";
+ public static final String PREFERENCE_LDIFEDITOR_FOLDING_ENABLE = "ldifEditorFoldingEnable"; //$NON-NLS-1$
- public static final String PREFERENCE_LDIFEDITOR_FOLDING_INITIALLYFOLDCOMMENTS = "ldifEditorFoldingInitiallyFoldComments";
+ public static final String PREFERENCE_LDIFEDITOR_FOLDING_INITIALLYFOLDCOMMENTS = "ldifEditorFoldingInitiallyFoldComments"; //$NON-NLS-1$
- public static final String PREFERENCE_LDIFEDITOR_FOLDING_INITIALLYFOLDRECORDS = "ldifEditoroldingInitiallyFoldRecords";
+ public static final String PREFERENCE_LDIFEDITOR_FOLDING_INITIALLYFOLDRECORDS = "ldifEditoroldingInitiallyFoldRecords"; //$NON-NLS-1$
- public static final String PREFERENCE_LDIFEDITOR_FOLDING_INITIALLYFOLDWRAPPEDLINES = "ldifEditorFoldingInitiallyFoldWrappedLines";
+ public static final String PREFERENCE_LDIFEDITOR_FOLDING_INITIALLYFOLDWRAPPEDLINES = "ldifEditorFoldingInitiallyFoldWrappedLines"; //$NON-NLS-1$
- public static final String PREFERENCE_LDIFEDITOR_DOUBLECLICK_USELDIFDOUBLECLICK = "ldifEditorDoubleClickUserLdifDoubleClick";
+ public static final String PREFERENCE_LDIFEDITOR_DOUBLECLICK_USELDIFDOUBLECLICK = "ldifEditorDoubleClickUserLdifDoubleClick"; //$NON-NLS-1$
- public static final String PREFERENCE_LDIFEDITOR_CONTENTASSIST_INSERTSINGLEPROPOSALAUTO = "ldifEditorCodeAssistInsertSingleProposalAuto";
+ public static final String PREFERENCE_LDIFEDITOR_CONTENTASSIST_INSERTSINGLEPROPOSALAUTO = "ldifEditorCodeAssistInsertSingleProposalAuto"; //$NON-NLS-1$
- public static final String PREFERENCE_LDIFEDITOR_CONTENTASSIST_ENABLEAUTOACTIVATION = "ldifEditorCodeAssistEnableAutoActivation";
+ public static final String PREFERENCE_LDIFEDITOR_CONTENTASSIST_ENABLEAUTOACTIVATION = "ldifEditorCodeAssistEnableAutoActivation"; //$NON-NLS-1$
- public static final String PREFERENCE_LDIFEDITOR_CONTENTASSIST_AUTOACTIVATIONDELAY = "ldifEditorCodeAssistAutoActivationDelay";
+ public static final String PREFERENCE_LDIFEDITOR_CONTENTASSIST_AUTOACTIVATIONDELAY = "ldifEditorCodeAssistAutoActivationDelay"; //$NON-NLS-1$
- public static final String PREFERENCE_LDIFEDITOR_CONTENTASSIST_SMARTINSERTATTRIBUTEINMODSPEC = "ldifEditorCodeAssistInsertAttributeInModSpec";
+ public static final String PREFERENCE_LDIFEDITOR_CONTENTASSIST_SMARTINSERTATTRIBUTEINMODSPEC = "ldifEditorCodeAssistInsertAttributeInModSpec"; //$NON-NLS-1$
- public static final String PREFERENCE_LDIFEDITOR_OPTIONS_UPDATEIFENTRYEXISTS = "ldifEditorOptionsUpdateIfEntryExists";
+ public static final String PREFERENCE_LDIFEDITOR_OPTIONS_UPDATEIFENTRYEXISTS = "ldifEditorOptionsUpdateIfEntryExists"; //$NON-NLS-1$
- public static final String PREFERENCE_LDIFEDITOR_OPTIONS_CONTINUEONERROR = "ldifEditorOptionsContinueOnError";
+ public static final String PREFERENCE_LDIFEDITOR_OPTIONS_CONTINUEONERROR = "ldifEditorOptionsContinueOnError"; //$NON-NLS-1$
- public static final String PREFERENCE_LDIFEDITOR_SYNTAX_RGB_SUFFIX = "_RGB";
+ public static final String PREFERENCE_LDIFEDITOR_SYNTAX_RGB_SUFFIX = "_RGB"; //$NON-NLS-1$
- public static final String PREFERENCE_LDIFEDITOR_SYNTAX_STYLE_SUFFIX = "_STYLE";
+ public static final String PREFERENCE_LDIFEDITOR_SYNTAX_STYLE_SUFFIX = "_STYLE"; //$NON-NLS-1$
- public static final String PREFERENCE_LDIFEDITOR_SYNTAX_COMMENT = "ldifEditorSyntaxComment";
+ public static final String PREFERENCE_LDIFEDITOR_SYNTAX_COMMENT = "ldifEditorSyntaxComment"; //$NON-NLS-1$
- public static final String PREFERENCE_LDIFEDITOR_SYNTAX_KEYWORD = "ldifEditorSyntaxKeyword";
+ public static final String PREFERENCE_LDIFEDITOR_SYNTAX_KEYWORD = "ldifEditorSyntaxKeyword"; //$NON-NLS-1$
- public static final String PREFERENCE_LDIFEDITOR_SYNTAX_DN = "ldifEditorSyntaxDn";
+ public static final String PREFERENCE_LDIFEDITOR_SYNTAX_DN = "ldifEditorSyntaxDn"; //$NON-NLS-1$
- public static final String PREFERENCE_LDIFEDITOR_SYNTAX_ATTRIBUTE = "ldifEditorSyntaxAttribute";
+ public static final String PREFERENCE_LDIFEDITOR_SYNTAX_ATTRIBUTE = "ldifEditorSyntaxAttribute"; //$NON-NLS-1$
- public static final String PREFERENCE_LDIFEDITOR_SYNTAX_VALUETYPE = "ldifEditorSyntaxValueType";
+ public static final String PREFERENCE_LDIFEDITOR_SYNTAX_VALUETYPE = "ldifEditorSyntaxValueType"; //$NON-NLS-1$
- public static final String PREFERENCE_LDIFEDITOR_SYNTAX_VALUE = "ldifEditorSyntaxValue";
+ public static final String PREFERENCE_LDIFEDITOR_SYNTAX_VALUE = "ldifEditorSyntaxValue"; //$NON-NLS-1$
- public static final String PREFERENCE_LDIFEDITOR_SYNTAX_CHANGETYPEADD = "ldifEditorSyntaxChangetypeAdd";
+ public static final String PREFERENCE_LDIFEDITOR_SYNTAX_CHANGETYPEADD = "ldifEditorSyntaxChangetypeAdd"; //$NON-NLS-1$
- public static final String PREFERENCE_LDIFEDITOR_SYNTAX_CHANGETYPEMODIFY = "ldifEditorSyntaxChangetypeModify";
+ public static final String PREFERENCE_LDIFEDITOR_SYNTAX_CHANGETYPEMODIFY = "ldifEditorSyntaxChangetypeModify"; //$NON-NLS-1$
- public static final String PREFERENCE_LDIFEDITOR_SYNTAX_CHANGETYPEDELETE = "ldifEditorSyntaxChangetypeDelete";
+ public static final String PREFERENCE_LDIFEDITOR_SYNTAX_CHANGETYPEDELETE = "ldifEditorSyntaxChangetypeDelete"; //$NON-NLS-1$
- public static final String PREFERENCE_LDIFEDITOR_SYNTAX_CHANGETYPEMODDN = "ldifEditorSyntaxChangetypeModdn";
+ public static final String PREFERENCE_LDIFEDITOR_SYNTAX_CHANGETYPEMODDN = "ldifEditorSyntaxChangetypeModdn"; //$NON-NLS-1$
public static final String PREFERENCEPAGEID_LDIFEDITOR = LdifEditorActivator.getDefault().getPluginProperties()
- .getString( "PrefPage_LdifEditorPreferencePage_id" );
+ .getString( "PrefPage_LdifEditorPreferencePage_id" ); //$NON-NLS-1$
public static final String PREFERENCEPAGEID_LDIFEDITOR_CONTENTASSIST = LdifEditorActivator.getDefault()
- .getPluginProperties().getString( "PrefPage_LdifEditorContentAssistPreferencePage_id" );
+ .getPluginProperties().getString( "PrefPage_LdifEditorContentAssistPreferencePage_id" ); //$NON-NLS-1$
public static final String PREFERENCEPAGEID_LDIFEDITOR_SYNTAXCOLORING = LdifEditorActivator.getDefault()
- .getPluginProperties().getString( "PrefPage_LdifEditorSyntaxColoringPreferencePage_id" );
+ .getPluginProperties().getString( "PrefPage_LdifEditorSyntaxColoringPreferencePage_id" ); //$NON-NLS-1$
public static final String PREFERENCEPAGEID_LDIFEDITOR_TEMPLATES = LdifEditorActivator.getDefault()
- .getPluginProperties().getString( "PrefPage_LdifEditorTemplatesPreferencePage_id" );
+ .getPluginProperties().getString( "PrefPage_LdifEditorTemplatesPreferencePage_id" ); //$NON-NLS-1$
public static final String LDIF_FILE_TEMPLATE_ID = LdifEditorActivator.getDefault().getPluginProperties()
- .getString( "CtxType_LdifFile_id" );
+ .getString( "CtxType_LdifFile_id" ); //$NON-NLS-1$
public static final String LDIF_ATTR_VAL_RECORD_TEMPLATE_ID = LdifEditorActivator.getDefault()
- .getPluginProperties().getString( "CtxType_LdifAttributeValueRecord_id" );
+ .getPluginProperties().getString( "CtxType_LdifAttributeValueRecord_id" ); //$NON-NLS-1$
public static final String LDIF_MODIFICATION_RECORD_TEMPLATE_ID = LdifEditorActivator.getDefault()
- .getPluginProperties().getString( "CtxType_LdifModificationRecord_id" );
+ .getPluginProperties().getString( "CtxType_LdifModificationRecord_id" ); //$NON-NLS-1$
public static final String LDIF_MODIFICATION_ITEM_TEMPLATE_ID = LdifEditorActivator.getDefault()
- .getPluginProperties().getString( "CtxType_LdifModificationItem_id" );
+ .getPluginProperties().getString( "CtxType_LdifModificationItem_id" ); //$NON-NLS-1$
public static final String LDIF_MODDN_RECORD_TEMPLATE_ID = LdifEditorActivator.getDefault().getPluginProperties()
- .getString( "CtxType_LdifModdnRecord_id" );
+ .getString( "CtxType_LdifModdnRecord_id" ); //$NON-NLS-1$
- public static final String IMG_LDIF_ADD = "resources/icons/ldif_add.gif";
+ public static final String IMG_LDIF_ADD = "resources/icons/ldif_add.gif"; //$NON-NLS-1$
- public static final String IMG_LDIF_MODIFY = "resources/icons/ldif_modify.gif";
+ public static final String IMG_LDIF_MODIFY = "resources/icons/ldif_modify.gif"; //$NON-NLS-1$
- public static final String IMG_LDIF_DELETE = "resources/icons/ldif_delete.gif";
+ public static final String IMG_LDIF_DELETE = "resources/icons/ldif_delete.gif"; //$NON-NLS-1$
- public static final String IMG_LDIF_RENAME = "resources/icons/ldif_rename.gif";
+ public static final String IMG_LDIF_RENAME = "resources/icons/ldif_rename.gif"; //$NON-NLS-1$
- public static final String IMG_LDIF_ATTRIBUTE = "resources/icons/ldif_attribute.gif";
+ public static final String IMG_LDIF_ATTRIBUTE = "resources/icons/ldif_attribute.gif"; //$NON-NLS-1$
- public static final String IMG_LDIF_VALUE = "resources/icons/ldif_value.gif";
+ public static final String IMG_LDIF_VALUE = "resources/icons/ldif_value.gif"; //$NON-NLS-1$
- public static final String IMG_LDIF_MOD_ADD = "resources/icons/ldif_mod_add.gif";
+ public static final String IMG_LDIF_MOD_ADD = "resources/icons/ldif_mod_add.gif"; //$NON-NLS-1$
- public static final String IMG_LDIF_MOD_REPLACE = "resources/icons/ldif_mod_replace.gif";
+ public static final String IMG_LDIF_MOD_REPLACE = "resources/icons/ldif_mod_replace.gif"; //$NON-NLS-1$
- public static final String IMG_LDIF_MOD_DELETE = "resources/icons/ldif_mod_delete.gif";
+ public static final String IMG_LDIF_MOD_DELETE = "resources/icons/ldif_mod_delete.gif"; //$NON-NLS-1$
- public static final String IMG_LDIF_COMMENT = "resources/icons/ldif_comment.gif";
+ public static final String IMG_LDIF_COMMENT = "resources/icons/ldif_comment.gif"; //$NON-NLS-1$
- public static final String IMG_LDIF_DN = "resources/icons/ldif_dn.gif";
+ public static final String IMG_LDIF_DN = "resources/icons/ldif_dn.gif"; //$NON-NLS-1$
- public static final String IMG_ENTRY = "resources/icons/entry.gif";
+ public static final String IMG_ENTRY = "resources/icons/entry.gif"; //$NON-NLS-1$
- public static final String IMG_TEMPLATE = "resources/icons/template.gif";
+ public static final String IMG_TEMPLATE = "resources/icons/template.gif"; //$NON-NLS-1$
- public static final String IMG_BROWSER_LDIFEDITOR = "resources/icons/browser_ldifeditor.gif";
+ public static final String IMG_BROWSER_LDIFEDITOR = "resources/icons/browser_ldifeditor.gif"; //$NON-NLS-1$
- public static final String IMG_LDIFEDITOR_NEW = "resources/icons/ldifeditor_new.gif";
+ public static final String IMG_LDIFEDITOR_NEW = "resources/icons/ldifeditor_new.gif"; //$NON-NLS-1$
- public static final String IMG_EXECUTE = "resources/icons/execute.gif";
+ 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" );
+ "Ldif_Partitioning_id" ); //$NON-NLS-1$
public static final String CONTENTASSIST_ACTION = LdifEditorActivator.getDefault().getPluginProperties().getString(
- "Action_ContentAssist_id" );
+ "Action_ContentAssist_id" ); //$NON-NLS-1$
public static final String PREFERENCEPAGEID_TEXTFORMATS = LdifEditorActivator.getDefault().getPluginProperties()
- .getString( "PrefPage_TextFormatsPreferencePage_id" );
+ .getString( "PrefPage_TextFormatsPreferencePage_id" ); //$NON-NLS-1$
}
Modified: directory/studio/trunk/ldifeditor/src/main/java/org/apache/directory/studio/ldifeditor/dialogs/LdifEntryEditorDialog.java
URL: http://svn.apache.org/viewvc/directory/studio/trunk/ldifeditor/src/main/java/org/apache/directory/studio/ldifeditor/dialogs/LdifEntryEditorDialog.java?rev=741944&r1=741943&r2=741944&view=diff
==============================================================================
--- directory/studio/trunk/ldifeditor/src/main/java/org/apache/directory/studio/ldifeditor/dialogs/LdifEntryEditorDialog.java (original)
+++ directory/studio/trunk/ldifeditor/src/main/java/org/apache/directory/studio/ldifeditor/dialogs/LdifEntryEditorDialog.java Sat Feb 7 19:45:20 2009
@@ -55,7 +55,7 @@
public class LdifEntryEditorDialog extends Dialog
{
- public static final String DIALOG_TITLE = "LDIF Record Editor";
+ public static final String DIALOG_TITLE = Messages.getString("LdifEntryEditorDialog.LDIFRecordEditor"); //$NON-NLS-1$
public static final int MAX_WIDTH = 450;
Added: directory/studio/trunk/ldifeditor/src/main/java/org/apache/directory/studio/ldifeditor/dialogs/Messages.java
URL: http://svn.apache.org/viewvc/directory/studio/trunk/ldifeditor/src/main/java/org/apache/directory/studio/ldifeditor/dialogs/Messages.java?rev=741944&view=auto
==============================================================================
--- directory/studio/trunk/ldifeditor/src/main/java/org/apache/directory/studio/ldifeditor/dialogs/Messages.java (added)
+++ directory/studio/trunk/ldifeditor/src/main/java/org/apache/directory/studio/ldifeditor/dialogs/Messages.java Sat Feb 7 19:45:20 2009
@@ -0,0 +1,31 @@
+package org.apache.directory.studio.ldifeditor.dialogs;
+
+
+import java.util.MissingResourceException;
+import java.util.ResourceBundle;
+
+
+public class Messages
+{
+ private static final String BUNDLE_NAME = "org.apache.directory.studio.ldifeditor.dialogs.messages"; //$NON-NLS-1$
+
+ private static final ResourceBundle RESOURCE_BUNDLE = ResourceBundle.getBundle( BUNDLE_NAME );
+
+
+ private Messages()
+ {
+ }
+
+
+ public static String getString( String key )
+ {
+ try
+ {
+ return RESOURCE_BUNDLE.getString( key );
+ }
+ catch ( MissingResourceException e )
+ {
+ return '!' + key + '!';
+ }
+ }
+}
Added: directory/studio/trunk/ldifeditor/src/main/java/org/apache/directory/studio/ldifeditor/dialogs/messages.properties
URL: http://svn.apache.org/viewvc/directory/studio/trunk/ldifeditor/src/main/java/org/apache/directory/studio/ldifeditor/dialogs/messages.properties?rev=741944&view=auto
==============================================================================
--- directory/studio/trunk/ldifeditor/src/main/java/org/apache/directory/studio/ldifeditor/dialogs/messages.properties (added)
+++ directory/studio/trunk/ldifeditor/src/main/java/org/apache/directory/studio/ldifeditor/dialogs/messages.properties Sat Feb 7 19:45:20 2009
@@ -0,0 +1,18 @@
+# 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.
+
+LdifEntryEditorDialog.LDIFRecordEditor=LDIF Record Editor
Added: directory/studio/trunk/ldifeditor/src/main/java/org/apache/directory/studio/ldifeditor/dialogs/messages_de.properties
URL: http://svn.apache.org/viewvc/directory/studio/trunk/ldifeditor/src/main/java/org/apache/directory/studio/ldifeditor/dialogs/messages_de.properties?rev=741944&view=auto
==============================================================================
--- directory/studio/trunk/ldifeditor/src/main/java/org/apache/directory/studio/ldifeditor/dialogs/messages_de.properties (added)
+++ directory/studio/trunk/ldifeditor/src/main/java/org/apache/directory/studio/ldifeditor/dialogs/messages_de.properties Sat Feb 7 19:45:20 2009
@@ -0,0 +1,18 @@
+# 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.
+
+LdifEntryEditorDialog.LDIFRecordEditor=LDIF Eintrag Editor
Modified: directory/studio/trunk/ldifeditor/src/main/java/org/apache/directory/studio/ldifeditor/dialogs/preferences/LdifEditorContentAssistPreferencePage.java
URL: http://svn.apache.org/viewvc/directory/studio/trunk/ldifeditor/src/main/java/org/apache/directory/studio/ldifeditor/dialogs/preferences/LdifEditorContentAssistPreferencePage.java?rev=741944&r1=741943&r2=741944&view=diff
==============================================================================
--- directory/studio/trunk/ldifeditor/src/main/java/org/apache/directory/studio/ldifeditor/dialogs/preferences/LdifEditorContentAssistPreferencePage.java (original)
+++ directory/studio/trunk/ldifeditor/src/main/java/org/apache/directory/studio/ldifeditor/dialogs/preferences/LdifEditorContentAssistPreferencePage.java Sat Feb 7 19:45:20 2009
@@ -61,7 +61,7 @@
public LdifEditorContentAssistPreferencePage()
{
- super( "Content Assist" );
+ super( Messages.getString("LdifEditorContentAssistPreferencePage.ContentAssist") ); //$NON-NLS-1$
super.setPreferenceStore( LdifEditorActivator.getDefault().getPreferenceStore() );
}
@@ -90,14 +90,14 @@
BaseWidgetUtils.createSpacer( composite, 1 );
Group caGroup = BaseWidgetUtils.createGroup( BaseWidgetUtils.createColumnContainer( composite, 1, 1 ),
- "Content Assist", 1 );
+ Messages.getString("LdifEditorContentAssistPreferencePage.ContentAssist"), 1 ); //$NON-NLS-1$
insertSingleProposalAutoButton = BaseWidgetUtils.createCheckbox( caGroup,
- "Insert single proposal automatically", 1 );
+ Messages.getString("LdifEditorContentAssistPreferencePage.InsertSingleProposalAutomatically"), 1 ); //$NON-NLS-1$
insertSingleProposalAutoButton.setSelection( getPreferenceStore().getBoolean(
LdifEditorConstants.PREFERENCE_LDIFEDITOR_CONTENTASSIST_INSERTSINGLEPROPOSALAUTO ) );
- enableAutoActivationButton = BaseWidgetUtils.createCheckbox( caGroup, "Enable auto activation", 1 );
+ enableAutoActivationButton = BaseWidgetUtils.createCheckbox( caGroup, Messages.getString("LdifEditorContentAssistPreferencePage.EnableAutoAction"), 1 ); //$NON-NLS-1$
enableAutoActivationButton.setSelection( getPreferenceStore().getBoolean(
LdifEditorConstants.PREFERENCE_LDIFEDITOR_CONTENTASSIST_ENABLEAUTOACTIVATION ) );
enableAutoActivationButton.addSelectionListener( new SelectionAdapter()
@@ -110,32 +110,32 @@
Composite autoActivationDelayComposite = BaseWidgetUtils.createColumnContainer( caGroup, 4, 1 );
BaseWidgetUtils.createRadioIndent( autoActivationDelayComposite, 1 );
- autoActivationDelayLabel = BaseWidgetUtils.createLabel( autoActivationDelayComposite, "Auto activation delay:",
+ autoActivationDelayLabel = BaseWidgetUtils.createLabel( autoActivationDelayComposite, Messages.getString("LdifEditorContentAssistPreferencePage.AutoActivationDelay"), //$NON-NLS-1$
1 );
- autoActivationDelayText = BaseWidgetUtils.createText( autoActivationDelayComposite, "", 4, 1 );
+ autoActivationDelayText = BaseWidgetUtils.createText( autoActivationDelayComposite, "", 4, 1 ); //$NON-NLS-1$
autoActivationDelayText.setText( getPreferenceStore().getString(
LdifEditorConstants.PREFERENCE_LDIFEDITOR_CONTENTASSIST_AUTOACTIVATIONDELAY ) );
autoActivationDelayText.addVerifyListener( new VerifyListener()
{
public void verifyText( VerifyEvent e )
{
- if ( !e.text.matches( "[0-9]*" ) )
+ if ( !e.text.matches( "[0-9]*" ) ) //$NON-NLS-1$
{
e.doit = false;
}
- if ( "".equals( autoActivationDelayText.getText() ) && e.text.matches( "[0]" ) )
+ if ( "".equals( autoActivationDelayText.getText() ) && e.text.matches( "[0]" ) ) //$NON-NLS-1$ //$NON-NLS-2$
{
e.doit = false;
}
}
} );
- autoActivationDelayMs = BaseWidgetUtils.createLabel( autoActivationDelayComposite, "ms", 1 );
+ autoActivationDelayMs = BaseWidgetUtils.createLabel( autoActivationDelayComposite, Messages.getString("LdifEditorContentAssistPreferencePage.MilliSecons"), 1 ); //$NON-NLS-1$
smartInsertAttributeInModspecButton = BaseWidgetUtils.createCheckbox( caGroup,
- "Smart insert attribute name in modification items", 1 );
+ Messages.getString("LdifEditorContentAssistPreferencePage.SmartInsertAttributeName"), 1 ); //$NON-NLS-1$
smartInsertAttributeInModspecButton.setSelection( getPreferenceStore().getBoolean(
LdifEditorConstants.PREFERENCE_LDIFEDITOR_CONTENTASSIST_SMARTINSERTATTRIBUTEINMODSPEC ) );
- BaseWidgetUtils.createLabel( caGroup, "TODO: Smart insert must attributes", 1 );
+ BaseWidgetUtils.createLabel( caGroup, Messages.getString("LdifEditorContentAssistPreferencePage.SmartInsertMustAttributes"), 1 ); //$NON-NLS-1$
checkEnabled();
Modified: directory/studio/trunk/ldifeditor/src/main/java/org/apache/directory/studio/ldifeditor/dialogs/preferences/LdifEditorPreferencePage.java
URL: http://svn.apache.org/viewvc/directory/studio/trunk/ldifeditor/src/main/java/org/apache/directory/studio/ldifeditor/dialogs/preferences/LdifEditorPreferencePage.java?rev=741944&r1=741943&r2=741944&view=diff
==============================================================================
--- directory/studio/trunk/ldifeditor/src/main/java/org/apache/directory/studio/ldifeditor/dialogs/preferences/LdifEditorPreferencePage.java (original)
+++ directory/studio/trunk/ldifeditor/src/main/java/org/apache/directory/studio/ldifeditor/dialogs/preferences/LdifEditorPreferencePage.java Sat Feb 7 19:45:20 2009
@@ -83,7 +83,7 @@
*/
public LdifEditorPreferencePage()
{
- super( "LDIF Editor" );
+ super( Messages.getString("LdifEditorPreferencePage.LDIFEditor") ); //$NON-NLS-1$
super.setPreferenceStore( LdifEditorActivator.getDefault().getPreferenceStore() );
}
@@ -112,7 +112,7 @@
composite.setLayout( layout );
composite.setLayoutData( new GridData( GridData.FILL_HORIZONTAL ) );
- String text = "See <a>Text Editors</a> for the general text editor preferences.";
+ String text = Messages.getString("LdifEditorPreferencePage.LinkToTextEditors"); //$NON-NLS-1$
Link link = BaseWidgetUtils.createLink( composite, text, 1 );
link.addSelectionListener( new SelectionAdapter()
{
@@ -122,7 +122,7 @@
"org.eclipse.ui.preferencePages.GeneralTextEditor", null, null ); //$NON-NLS-1$
}
} );
- String text2 = "See <a>Text Formats</a> for LDIF format preferences.";
+ String text2 = Messages.getString("LdifEditorPreferencePage.LinkToTextFormats"); //$NON-NLS-1$
Link link2 = BaseWidgetUtils.createLink( composite, text2, 1 );
link2.addSelectionListener( new SelectionAdapter()
{
@@ -137,9 +137,9 @@
BaseWidgetUtils.createSpacer( composite, 1 );
Group foldGroup = BaseWidgetUtils.createGroup( BaseWidgetUtils.createColumnContainer( composite, 1, 1 ),
- "Folding", 1 );
+ Messages.getString("LdifEditorPreferencePage.Folding"), 1 ); //$NON-NLS-1$
- enableFoldingButton = BaseWidgetUtils.createCheckbox( foldGroup, "Enable Folding", 1 );
+ enableFoldingButton = BaseWidgetUtils.createCheckbox( foldGroup, Messages.getString("LdifEditorPreferencePage.EnableFolding"), 1 ); //$NON-NLS-1$
enableFoldingButton.setSelection( getPreferenceStore().getBoolean(
LdifEditorConstants.PREFERENCE_LDIFEDITOR_FOLDING_ENABLE ) );
enableFoldingButton.addSelectionListener( new SelectionAdapter()
@@ -151,23 +151,23 @@
} );
Composite initiallyFoldComposiste = BaseWidgetUtils.createColumnContainer( foldGroup, 4, 1 );
- initiallyFoldLabel = BaseWidgetUtils.createLabel( initiallyFoldComposiste, "Initially fold:", 1 );
- initiallyFoldCommentsButton = BaseWidgetUtils.createCheckbox( initiallyFoldComposiste, "Comments", 1 );
+ initiallyFoldLabel = BaseWidgetUtils.createLabel( initiallyFoldComposiste, Messages.getString("LdifEditorPreferencePage.InitiallyFold"), 1 ); //$NON-NLS-1$
+ initiallyFoldCommentsButton = BaseWidgetUtils.createCheckbox( initiallyFoldComposiste, Messages.getString("LdifEditorPreferencePage.Comments"), 1 ); //$NON-NLS-1$
initiallyFoldCommentsButton.setSelection( getPreferenceStore().getBoolean(
LdifEditorConstants.PREFERENCE_LDIFEDITOR_FOLDING_INITIALLYFOLDCOMMENTS ) );
- initiallyFoldRecordsButton = BaseWidgetUtils.createCheckbox( initiallyFoldComposiste, "Records", 1 );
+ initiallyFoldRecordsButton = BaseWidgetUtils.createCheckbox( initiallyFoldComposiste, Messages.getString("LdifEditorPreferencePage.Records"), 1 ); //$NON-NLS-1$
initiallyFoldRecordsButton.setSelection( getPreferenceStore().getBoolean(
LdifEditorConstants.PREFERENCE_LDIFEDITOR_FOLDING_INITIALLYFOLDRECORDS ) );
- initiallyFoldWrappedLinesButton = BaseWidgetUtils.createCheckbox( initiallyFoldComposiste, "Wrapped lines", 1 );
+ initiallyFoldWrappedLinesButton = BaseWidgetUtils.createCheckbox( initiallyFoldComposiste, Messages.getString("LdifEditorPreferencePage.WrappedLines"), 1 ); //$NON-NLS-1$
initiallyFoldWrappedLinesButton.setSelection( getPreferenceStore().getBoolean(
LdifEditorConstants.PREFERENCE_LDIFEDITOR_FOLDING_INITIALLYFOLDWRAPPEDLINES ) );
BaseWidgetUtils.createSpacer( composite, 1 );
Group doubleClickGroup = BaseWidgetUtils.createGroup( BaseWidgetUtils.createColumnContainer( composite, 1, 1 ),
- "Double Click Behaviour", 1 );
+ Messages.getString("LdifEditorPreferencePage.DoubleClickBehaviour"), 1 ); //$NON-NLS-1$
useLdifDoubleClickButton = BaseWidgetUtils.createCheckbox( doubleClickGroup,
- "Select whole attribute or value on double click", 1 );
+ Messages.getString("LdifEditorPreferencePage.SelectWholeAttributeOnDoubleClick"), 1 ); //$NON-NLS-1$
useLdifDoubleClickButton.setSelection( getPreferenceStore().getBoolean(
LdifEditorConstants.PREFERENCE_LDIFEDITOR_DOUBLECLICK_USELDIFDOUBLECLICK ) );
@@ -175,16 +175,16 @@
// Options
Group optionsGroup = BaseWidgetUtils.createGroup( BaseWidgetUtils.createColumnContainer( composite, 1, 1 ),
- "Execute Options", 1 );
+ Messages.getString("LdifEditorPreferencePage.ExecuteOptions"), 1 ); //$NON-NLS-1$
- updateIfEntryExistsButton = BaseWidgetUtils.createCheckbox( optionsGroup, "Update existing entries", 1 );
+ updateIfEntryExistsButton = BaseWidgetUtils.createCheckbox( optionsGroup, Messages.getString("LdifEditorPreferencePage.UpdateExistingEntries"), 1 ); //$NON-NLS-1$
updateIfEntryExistsButton
- .setToolTipText( "This options applies for LDIF content records and LDIF add records. "
- + "If enabled and the entry to add already exists it will be updated with the attributes defined in the LDIF record." );
+ .setToolTipText( Messages.getString("LdifEditorPreferencePage.UpdateExistingEntriesToolTip1") //$NON-NLS-1$
+ + Messages.getString("LdifEditorPreferencePage.UpdateExistingEntriesToolTip2") ); //$NON-NLS-1$
updateIfEntryExistsButton.setSelection( getPreferenceStore().getBoolean(
LdifEditorConstants.PREFERENCE_LDIFEDITOR_OPTIONS_UPDATEIFENTRYEXISTS ) );
- continueOnErrorButton = BaseWidgetUtils.createCheckbox( optionsGroup, "Continue on error", 1 );
+ continueOnErrorButton = BaseWidgetUtils.createCheckbox( optionsGroup, Messages.getString("LdifEditorPreferencePage.ContinueOnError"), 1 ); //$NON-NLS-1$
continueOnErrorButton.setSelection( getPreferenceStore().getBoolean(
LdifEditorConstants.PREFERENCE_LDIFEDITOR_OPTIONS_CONTINUEONERROR ) );
Modified: directory/studio/trunk/ldifeditor/src/main/java/org/apache/directory/studio/ldifeditor/dialogs/preferences/LdifEditorSyntaxColoringPreferencePage.java
URL: http://svn.apache.org/viewvc/directory/studio/trunk/ldifeditor/src/main/java/org/apache/directory/studio/ldifeditor/dialogs/preferences/LdifEditorSyntaxColoringPreferencePage.java?rev=741944&r1=741943&r2=741944&view=diff
==============================================================================
--- directory/studio/trunk/ldifeditor/src/main/java/org/apache/directory/studio/ldifeditor/dialogs/preferences/LdifEditorSyntaxColoringPreferencePage.java (original)
+++ directory/studio/trunk/ldifeditor/src/main/java/org/apache/directory/studio/ldifeditor/dialogs/preferences/LdifEditorSyntaxColoringPreferencePage.java Sat Feb 7 19:45:20 2009
@@ -60,34 +60,34 @@
ILdifEditor
{
- private static final String LDIF_INITIAL = "" + "# Content record" + BrowserCoreConstants.LINE_SEPARATOR
- + "dn: cn=content record" + BrowserCoreConstants.LINE_SEPARATOR + "objectClass: person"
- + BrowserCoreConstants.LINE_SEPARATOR + "cn: content record" + BrowserCoreConstants.LINE_SEPARATOR
- + "cn;lang-ja:: 5Za25qWt6YOo" + BrowserCoreConstants.LINE_SEPARATOR + "" + BrowserCoreConstants.LINE_SEPARATOR
-
- + "# Add record with control" + BrowserCoreConstants.LINE_SEPARATOR + "dn: cn=add record"
- + BrowserCoreConstants.LINE_SEPARATOR + "control: 1.2.3.4 true: controlValue"
- + BrowserCoreConstants.LINE_SEPARATOR + "changetype: add" + BrowserCoreConstants.LINE_SEPARATOR
- + "objectClass: person" + BrowserCoreConstants.LINE_SEPARATOR + "cn: add record"
- + BrowserCoreConstants.LINE_SEPARATOR + "" + BrowserCoreConstants.LINE_SEPARATOR
-
- + "# Modify record" + BrowserCoreConstants.LINE_SEPARATOR + "dn: cn=modify record"
- + BrowserCoreConstants.LINE_SEPARATOR + "changetype: modify" + BrowserCoreConstants.LINE_SEPARATOR + "add: cn"
- + BrowserCoreConstants.LINE_SEPARATOR + "cn: modify record" + BrowserCoreConstants.LINE_SEPARATOR + "-"
- + BrowserCoreConstants.LINE_SEPARATOR + "delete: cn" + BrowserCoreConstants.LINE_SEPARATOR + "-"
- + BrowserCoreConstants.LINE_SEPARATOR + "replace: cn" + BrowserCoreConstants.LINE_SEPARATOR
- + "cn: modify record" + BrowserCoreConstants.LINE_SEPARATOR + "-" + BrowserCoreConstants.LINE_SEPARATOR + ""
+ private static final String LDIF_INITIAL = "" + "# Content record" + BrowserCoreConstants.LINE_SEPARATOR //$NON-NLS-1$ //$NON-NLS-2$
+ + "dn: cn=content record" + BrowserCoreConstants.LINE_SEPARATOR + "objectClass: person" //$NON-NLS-1$ //$NON-NLS-2$
+ + BrowserCoreConstants.LINE_SEPARATOR + "cn: content record" + BrowserCoreConstants.LINE_SEPARATOR //$NON-NLS-1$
+ + "cn;lang-ja:: 5Za25qWt6YOo" + BrowserCoreConstants.LINE_SEPARATOR + "" + BrowserCoreConstants.LINE_SEPARATOR //$NON-NLS-1$ //$NON-NLS-2$
+
+ + "# Add record with control" + BrowserCoreConstants.LINE_SEPARATOR + "dn: cn=add record" //$NON-NLS-1$ //$NON-NLS-2$
+ + BrowserCoreConstants.LINE_SEPARATOR + "control: 1.2.3.4 true: controlValue" //$NON-NLS-1$
+ + BrowserCoreConstants.LINE_SEPARATOR + "changetype: add" + BrowserCoreConstants.LINE_SEPARATOR //$NON-NLS-1$
+ + "objectClass: person" + BrowserCoreConstants.LINE_SEPARATOR + "cn: add record" //$NON-NLS-1$ //$NON-NLS-2$
+ + BrowserCoreConstants.LINE_SEPARATOR + "" + BrowserCoreConstants.LINE_SEPARATOR //$NON-NLS-1$
+
+ + "# Modify record" + BrowserCoreConstants.LINE_SEPARATOR + "dn: cn=modify record" //$NON-NLS-1$ //$NON-NLS-2$
+ + BrowserCoreConstants.LINE_SEPARATOR + "changetype: modify" + BrowserCoreConstants.LINE_SEPARATOR + "add: cn" //$NON-NLS-1$ //$NON-NLS-2$
+ + BrowserCoreConstants.LINE_SEPARATOR + "cn: modify record" + BrowserCoreConstants.LINE_SEPARATOR + "-" //$NON-NLS-1$ //$NON-NLS-2$
+ + BrowserCoreConstants.LINE_SEPARATOR + "delete: cn" + BrowserCoreConstants.LINE_SEPARATOR + "-" //$NON-NLS-1$ //$NON-NLS-2$
+ + BrowserCoreConstants.LINE_SEPARATOR + "replace: cn" + BrowserCoreConstants.LINE_SEPARATOR //$NON-NLS-1$
+ + "cn: modify record" + BrowserCoreConstants.LINE_SEPARATOR + "-" + BrowserCoreConstants.LINE_SEPARATOR + "" //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$
+ BrowserCoreConstants.LINE_SEPARATOR
- + "# Delete record" + BrowserCoreConstants.LINE_SEPARATOR + "dn: cn=delete record"
- + BrowserCoreConstants.LINE_SEPARATOR + "changetype: delete" + BrowserCoreConstants.LINE_SEPARATOR + ""
+ + "# Delete record" + BrowserCoreConstants.LINE_SEPARATOR + "dn: cn=delete record" //$NON-NLS-1$ //$NON-NLS-2$
+ + BrowserCoreConstants.LINE_SEPARATOR + "changetype: delete" + BrowserCoreConstants.LINE_SEPARATOR + "" //$NON-NLS-1$ //$NON-NLS-2$
+ BrowserCoreConstants.LINE_SEPARATOR
- + "# Modify DN record" + BrowserCoreConstants.LINE_SEPARATOR + "dn: cn=moddn record"
- + BrowserCoreConstants.LINE_SEPARATOR + "changetype: moddn" + BrowserCoreConstants.LINE_SEPARATOR
- + "newrdn: cn=new rdn" + BrowserCoreConstants.LINE_SEPARATOR + "deleteoldrdn: 1"
- + BrowserCoreConstants.LINE_SEPARATOR + "newsuperior: cn=new superior" + BrowserCoreConstants.LINE_SEPARATOR
- + "" + BrowserCoreConstants.LINE_SEPARATOR;
+ + "# Modify DN record" + BrowserCoreConstants.LINE_SEPARATOR + "dn: cn=moddn record" //$NON-NLS-1$ //$NON-NLS-2$
+ + BrowserCoreConstants.LINE_SEPARATOR + "changetype: moddn" + BrowserCoreConstants.LINE_SEPARATOR //$NON-NLS-1$
+ + "newrdn: cn=new rdn" + BrowserCoreConstants.LINE_SEPARATOR + "deleteoldrdn: 1" //$NON-NLS-1$ //$NON-NLS-2$
+ + BrowserCoreConstants.LINE_SEPARATOR + "newsuperior: cn=new superior" + BrowserCoreConstants.LINE_SEPARATOR //$NON-NLS-1$
+ + "" + BrowserCoreConstants.LINE_SEPARATOR; //$NON-NLS-1$
private LdifEditorWidget ldifEditorWidget;
@@ -191,7 +191,7 @@
public LdifEditorSyntaxColoringPreferencePage()
{
- super( "Syntax Coloring" );
+ super( Messages.getString("LdifEditorSyntaxColoringPreferencePage.SyntaxColoring") ); //$NON-NLS-1$
super.setPreferenceStore( LdifEditorActivator.getDefault().getPreferenceStore() );
// super.setDescription("");
}
@@ -231,21 +231,21 @@
createPreviewer( composite );
syntaxItems = new SyntaxItem[10];
- syntaxItems[0] = new SyntaxItem( "Comments", LdifEditorConstants.PREFERENCE_LDIFEDITOR_SYNTAX_COMMENT );
- syntaxItems[1] = new SyntaxItem( "DN", LdifEditorConstants.PREFERENCE_LDIFEDITOR_SYNTAX_DN );
- syntaxItems[2] = new SyntaxItem( "Attribute Descriptions",
+ syntaxItems[0] = new SyntaxItem( Messages.getString("LdifEditorSyntaxColoringPreferencePage.Comments"), LdifEditorConstants.PREFERENCE_LDIFEDITOR_SYNTAX_COMMENT ); //$NON-NLS-1$
+ syntaxItems[1] = new SyntaxItem( Messages.getString("LdifEditorSyntaxColoringPreferencePage.DN"), LdifEditorConstants.PREFERENCE_LDIFEDITOR_SYNTAX_DN ); //$NON-NLS-1$
+ syntaxItems[2] = new SyntaxItem( Messages.getString("LdifEditorSyntaxColoringPreferencePage.AttributeDescriptions"), //$NON-NLS-1$
LdifEditorConstants.PREFERENCE_LDIFEDITOR_SYNTAX_ATTRIBUTE );
- syntaxItems[3] = new SyntaxItem( "Value Types", LdifEditorConstants.PREFERENCE_LDIFEDITOR_SYNTAX_VALUETYPE );
- syntaxItems[4] = new SyntaxItem( "Values", LdifEditorConstants.PREFERENCE_LDIFEDITOR_SYNTAX_VALUE );
- syntaxItems[5] = new SyntaxItem( "Keywords (w/o changetypes)",
+ syntaxItems[3] = new SyntaxItem( Messages.getString("LdifEditorSyntaxColoringPreferencePage.ValueTypes"), LdifEditorConstants.PREFERENCE_LDIFEDITOR_SYNTAX_VALUETYPE ); //$NON-NLS-1$
+ syntaxItems[4] = new SyntaxItem( Messages.getString("LdifEditorSyntaxColoringPreferencePage.Values"), LdifEditorConstants.PREFERENCE_LDIFEDITOR_SYNTAX_VALUE ); //$NON-NLS-1$
+ syntaxItems[5] = new SyntaxItem( Messages.getString("LdifEditorSyntaxColoringPreferencePage.Keywords"), //$NON-NLS-1$
LdifEditorConstants.PREFERENCE_LDIFEDITOR_SYNTAX_KEYWORD );
- syntaxItems[6] = new SyntaxItem( "Changetype 'add'",
+ syntaxItems[6] = new SyntaxItem( Messages.getString("LdifEditorSyntaxColoringPreferencePage.ChangetypeAdd"), //$NON-NLS-1$
LdifEditorConstants.PREFERENCE_LDIFEDITOR_SYNTAX_CHANGETYPEADD );
- syntaxItems[7] = new SyntaxItem( "Changetype 'modify'",
+ syntaxItems[7] = new SyntaxItem( Messages.getString("LdifEditorSyntaxColoringPreferencePage.ChangetypeModify"), //$NON-NLS-1$
LdifEditorConstants.PREFERENCE_LDIFEDITOR_SYNTAX_CHANGETYPEMODIFY );
- syntaxItems[8] = new SyntaxItem( "Changetype 'delete'",
+ syntaxItems[8] = new SyntaxItem( Messages.getString("LdifEditorSyntaxColoringPreferencePage.ChangetypeDelete"), //$NON-NLS-1$
LdifEditorConstants.PREFERENCE_LDIFEDITOR_SYNTAX_CHANGETYPEDELETE );
- syntaxItems[9] = new SyntaxItem( "Changetype 'moddn'",
+ syntaxItems[9] = new SyntaxItem( Messages.getString("LdifEditorSyntaxColoringPreferencePage.ChangetypeModdn"), //$NON-NLS-1$
LdifEditorConstants.PREFERENCE_LDIFEDITOR_SYNTAX_CHANGETYPEMODDN );
syntaxItemViewer.setInput( syntaxItems );
syntaxItemViewer.setSelection( new StructuredSelection( syntaxItems[0] ) );
@@ -257,7 +257,7 @@
private void createSyntaxPage( Composite parent )
{
- BaseWidgetUtils.createLabel( parent, "Element:", 1 );
+ BaseWidgetUtils.createLabel( parent, Messages.getString("LdifEditorSyntaxColoringPreferencePage.Element"), 1 ); //$NON-NLS-1$
Composite editorComposite = BaseWidgetUtils.createColumnContainer( parent, 2, 1 );
@@ -273,12 +273,12 @@
Composite stylesComposite = BaseWidgetUtils.createColumnContainer( editorComposite, 1, 1 );
stylesComposite.setLayoutData( new GridData( GridData.FILL_BOTH ) );
Composite colorComposite = BaseWidgetUtils.createColumnContainer( stylesComposite, 2, 1 );
- BaseWidgetUtils.createLabel( colorComposite, "Color:", 1 );
+ BaseWidgetUtils.createLabel( colorComposite, Messages.getString("LdifEditorSyntaxColoringPreferencePage.Color"), 1 ); //$NON-NLS-1$
colorSelector = new ColorSelector( colorComposite );
- boldCheckBox = BaseWidgetUtils.createCheckbox( stylesComposite, "Bold", 1 );
- italicCheckBox = BaseWidgetUtils.createCheckbox( stylesComposite, "Italic", 1 );
- strikethroughCheckBox = BaseWidgetUtils.createCheckbox( stylesComposite, "Strikethrough", 1 );
- underlineCheckBox = BaseWidgetUtils.createCheckbox( stylesComposite, "Underline", 1 );
+ boldCheckBox = BaseWidgetUtils.createCheckbox( stylesComposite, Messages.getString("LdifEditorSyntaxColoringPreferencePage.Bold"), 1 ); //$NON-NLS-1$
+ italicCheckBox = BaseWidgetUtils.createCheckbox( stylesComposite, Messages.getString("LdifEditorSyntaxColoringPreferencePage.Italic"), 1 ); //$NON-NLS-1$
+ strikethroughCheckBox = BaseWidgetUtils.createCheckbox( stylesComposite, Messages.getString("LdifEditorSyntaxColoringPreferencePage.Strikethrough"), 1 ); //$NON-NLS-1$
+ underlineCheckBox = BaseWidgetUtils.createCheckbox( stylesComposite, Messages.getString("LdifEditorSyntaxColoringPreferencePage.Underline"), 1 ); //$NON-NLS-1$
syntaxItemViewer.addSelectionChangedListener( new ISelectionChangedListener()
{
@@ -416,7 +416,7 @@
private void createPreviewer( Composite parent )
{
- BaseWidgetUtils.createLabel( parent, "Preview:", 1 );
+ BaseWidgetUtils.createLabel( parent, Messages.getString("LdifEditorSyntaxColoringPreferencePage.Preview"), 1 ); //$NON-NLS-1$
ldifEditorWidget = new LdifEditorWidget( null, LDIF_INITIAL, false );
ldifEditorWidget.createWidget( parent );
Added: directory/studio/trunk/ldifeditor/src/main/java/org/apache/directory/studio/ldifeditor/dialogs/preferences/Messages.java
URL: http://svn.apache.org/viewvc/directory/studio/trunk/ldifeditor/src/main/java/org/apache/directory/studio/ldifeditor/dialogs/preferences/Messages.java?rev=741944&view=auto
==============================================================================
--- directory/studio/trunk/ldifeditor/src/main/java/org/apache/directory/studio/ldifeditor/dialogs/preferences/Messages.java (added)
+++ directory/studio/trunk/ldifeditor/src/main/java/org/apache/directory/studio/ldifeditor/dialogs/preferences/Messages.java Sat Feb 7 19:45:20 2009
@@ -0,0 +1,51 @@
+/*
+ * 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.
+ *
+ */
+
+package org.apache.directory.studio.ldifeditor.dialogs.preferences;
+
+
+import java.util.MissingResourceException;
+import java.util.ResourceBundle;
+
+
+public class Messages
+{
+ private static final String BUNDLE_NAME = "org.apache.directory.studio.ldifeditor.dialogs.preferences.messages"; //$NON-NLS-1$
+
+ private static final ResourceBundle RESOURCE_BUNDLE = ResourceBundle.getBundle( BUNDLE_NAME );
+
+
+ private Messages()
+ {
+ }
+
+
+ public static String getString( String key )
+ {
+ try
+ {
+ return RESOURCE_BUNDLE.getString( key );
+ }
+ catch ( MissingResourceException e )
+ {
+ return '!' + key + '!';
+ }
+ }
+}
Added: directory/studio/trunk/ldifeditor/src/main/java/org/apache/directory/studio/ldifeditor/dialogs/preferences/messages.properties
URL: http://svn.apache.org/viewvc/directory/studio/trunk/ldifeditor/src/main/java/org/apache/directory/studio/ldifeditor/dialogs/preferences/messages.properties?rev=741944&view=auto
==============================================================================
--- directory/studio/trunk/ldifeditor/src/main/java/org/apache/directory/studio/ldifeditor/dialogs/preferences/messages.properties (added)
+++ directory/studio/trunk/ldifeditor/src/main/java/org/apache/directory/studio/ldifeditor/dialogs/preferences/messages.properties Sat Feb 7 19:45:20 2009
@@ -0,0 +1,58 @@
+# 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.
+
+LdifEditorContentAssistPreferencePage.AutoActivationDelay=Auto activation delay:
+LdifEditorContentAssistPreferencePage.ContentAssist=Content Assist
+LdifEditorContentAssistPreferencePage.EnableAutoAction=Enable auto activation
+LdifEditorContentAssistPreferencePage.InsertSingleProposalAutomatically=Insert single proposal automatically
+LdifEditorContentAssistPreferencePage.MilliSecons=ms
+LdifEditorContentAssistPreferencePage.SmartInsertAttributeName=Smart insert attribute name in modification items
+LdifEditorContentAssistPreferencePage.SmartInsertMustAttributes=TODO: Smart insert must attributes
+LdifEditorPreferencePage.Comments=Comments
+LdifEditorPreferencePage.ContinueOnError=Continue on error
+LdifEditorPreferencePage.DoubleClickBehaviour=Double Click Behaviour
+LdifEditorPreferencePage.EnableFolding=Enable Folding
+LdifEditorPreferencePage.ExecuteOptions=Execute Options
+LdifEditorPreferencePage.Folding=Folding
+LdifEditorPreferencePage.InitiallyFold=Initially fold:
+LdifEditorPreferencePage.LDIFEditor=LDIF Editor
+LdifEditorPreferencePage.LinkToTextEditors=See <a>Text Editors</a> for the general text editor preferences.
+LdifEditorPreferencePage.LinkToTextFormats=See <a>Text Formats</a> for LDIF format preferences.
+LdifEditorPreferencePage.Records=Records
+LdifEditorPreferencePage.SelectWholeAttributeOnDoubleClick=Select whole attribute or value on double click
+LdifEditorPreferencePage.UpdateExistingEntries=Update existing entries
+LdifEditorPreferencePage.UpdateExistingEntriesToolTip1=This options applies for LDIF content records and LDIF add records.
+LdifEditorPreferencePage.UpdateExistingEntriesToolTip2=If enabled and the entry to add already exists it will be updated with the attributes defined in the LDIF record.
+LdifEditorPreferencePage.WrappedLines=Wrapped lines
+LdifEditorSyntaxColoringPreferencePage.AttributeDescriptions=Attribute Descriptions
+LdifEditorSyntaxColoringPreferencePage.Bold=Bold
+LdifEditorSyntaxColoringPreferencePage.ChangetypeAdd=Changetype 'add'
+LdifEditorSyntaxColoringPreferencePage.ChangetypeDelete=Changetype 'delete'
+LdifEditorSyntaxColoringPreferencePage.ChangetypeModdn=Changetype 'moddn'
+LdifEditorSyntaxColoringPreferencePage.ChangetypeModify=Changetype 'modify'
+LdifEditorSyntaxColoringPreferencePage.Color=Color:
+LdifEditorSyntaxColoringPreferencePage.Comments=Comments
+LdifEditorSyntaxColoringPreferencePage.DN=DN
+LdifEditorSyntaxColoringPreferencePage.Element=Element:
+LdifEditorSyntaxColoringPreferencePage.Italic=Italic
+LdifEditorSyntaxColoringPreferencePage.Keywords=Keywords (w/o changetypes)
+LdifEditorSyntaxColoringPreferencePage.Preview=Preview:
+LdifEditorSyntaxColoringPreferencePage.Strikethrough=Strikethrough
+LdifEditorSyntaxColoringPreferencePage.SyntaxColoring=Syntax Coloring
+LdifEditorSyntaxColoringPreferencePage.Underline=Underline
+LdifEditorSyntaxColoringPreferencePage.Values=Values
+LdifEditorSyntaxColoringPreferencePage.ValueTypes=Value Types
Added: directory/studio/trunk/ldifeditor/src/main/java/org/apache/directory/studio/ldifeditor/dialogs/preferences/messages_de.properties
URL: http://svn.apache.org/viewvc/directory/studio/trunk/ldifeditor/src/main/java/org/apache/directory/studio/ldifeditor/dialogs/preferences/messages_de.properties?rev=741944&view=auto
==============================================================================
--- directory/studio/trunk/ldifeditor/src/main/java/org/apache/directory/studio/ldifeditor/dialogs/preferences/messages_de.properties (added)
+++ directory/studio/trunk/ldifeditor/src/main/java/org/apache/directory/studio/ldifeditor/dialogs/preferences/messages_de.properties Sat Feb 7 19:45:20 2009
@@ -0,0 +1,58 @@
+# 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.
+
+LdifEditorContentAssistPreferencePage.AutoActivationDelay=Verzögerung der Auto-Aktivierung:
+LdifEditorContentAssistPreferencePage.ContentAssist=Inhalts-Assistent
+LdifEditorContentAssistPreferencePage.EnableAutoAction=Auto-Aktivierung aktivieren
+LdifEditorContentAssistPreferencePage.InsertSingleProposalAutomatically=Eindeutige Vorschläge automatisch einfügen
+LdifEditorContentAssistPreferencePage.MilliSecons=ms
+LdifEditorContentAssistPreferencePage.SmartInsertAttributeName=Attributenamen klever einfügen
+LdifEditorContentAssistPreferencePage.SmartInsertMustAttributes=TODO: Pflichattribute klever einfügen
+LdifEditorPreferencePage.Comments=Kommentare
+LdifEditorPreferencePage.ContinueOnError=Bei Fehler fortfahren
+LdifEditorPreferencePage.DoubleClickBehaviour=Doppel-Klick Verhalten
+LdifEditorPreferencePage.EnableFolding=Faltung aktivieren
+LdifEditorPreferencePage.ExecuteOptions=Ausführungsoptionen
+LdifEditorPreferencePage.Folding=Faltung
+LdifEditorPreferencePage.InitiallyFold=Initial falten:
+LdifEditorPreferencePage.LDIFEditor=LDIF Editor
+LdifEditorPreferencePage.LinkToTextEditors=Siehe <a>Text Editors</a> für allgemeine Text Editor Einstellungen.
+LdifEditorPreferencePage.LinkToTextFormats=Siehe <a>Text Formate</a> für LDIF Format Einstellungen.
+LdifEditorPreferencePage.Records=LDIF-Eintrag
+LdifEditorPreferencePage.SelectWholeAttributeOnDoubleClick=Ganzes Attribut oder Wert bei Doppel-Klick auswählen
+LdifEditorPreferencePage.UpdateExistingEntries=Existierende Einträge aktualisieren
+LdifEditorPreferencePage.UpdateExistingEntriesToolTip1=Diese Option gilt für LDIF Einträge.
+LdifEditorPreferencePage.UpdateExistingEntriesToolTip2=Wenn aktiviert und der Eintrag bereits existiert wird er mit den Attributen aus dem LDIF Eintrag aktualisiert.
+LdifEditorPreferencePage.WrappedLines=Umgebrochene Zeilen
+LdifEditorSyntaxColoringPreferencePage.AttributeDescriptions=Attribut Beschreibungen
+LdifEditorSyntaxColoringPreferencePage.Bold=Fett
+LdifEditorSyntaxColoringPreferencePage.ChangetypeAdd=Änderungstyp 'add'
+LdifEditorSyntaxColoringPreferencePage.ChangetypeDelete=Änderungstyp 'delete'
+LdifEditorSyntaxColoringPreferencePage.ChangetypeModdn=Änderungstyp 'moddn'
+LdifEditorSyntaxColoringPreferencePage.ChangetypeModify=Änderungstyp 'modify'
+LdifEditorSyntaxColoringPreferencePage.Color=Farbe:
+LdifEditorSyntaxColoringPreferencePage.Comments=Kommentare
+LdifEditorSyntaxColoringPreferencePage.DN=DN
+LdifEditorSyntaxColoringPreferencePage.Element=Element:
+LdifEditorSyntaxColoringPreferencePage.Italic=Kursiv
+LdifEditorSyntaxColoringPreferencePage.Keywords=Schlüsselworte (ohne changetypes)
+LdifEditorSyntaxColoringPreferencePage.Preview=Vorschau:
+LdifEditorSyntaxColoringPreferencePage.Strikethrough=Durchgestrichen
+LdifEditorSyntaxColoringPreferencePage.SyntaxColoring=Syntax Hervorhebung
+LdifEditorSyntaxColoringPreferencePage.Underline=Unterstrichen
+LdifEditorSyntaxColoringPreferencePage.Values=Werte
+LdifEditorSyntaxColoringPreferencePage.ValueTypes=Wert Typen
Modified: directory/studio/trunk/ldifeditor/src/main/java/org/apache/directory/studio/ldifeditor/editor/ExecuteLdifAction.java
URL: http://svn.apache.org/viewvc/directory/studio/trunk/ldifeditor/src/main/java/org/apache/directory/studio/ldifeditor/editor/ExecuteLdifAction.java?rev=741944&r1=741943&r2=741944&view=diff
==============================================================================
--- directory/studio/trunk/ldifeditor/src/main/java/org/apache/directory/studio/ldifeditor/editor/ExecuteLdifAction.java (original)
+++ directory/studio/trunk/ldifeditor/src/main/java/org/apache/directory/studio/ldifeditor/editor/ExecuteLdifAction.java Sat Feb 7 19:45:20 2009
@@ -49,8 +49,8 @@
*/
public ExecuteLdifAction( LdifEditor editor )
{
- super( "Execute LDIF", LdifEditorActivator.getDefault().getImageDescriptor( LdifEditorConstants.IMG_EXECUTE ) );
- super.setToolTipText( "Execute LDIF" );
+ super( Messages.getString("ExecuteLdifAction.ExecuteLDIF"), LdifEditorActivator.getDefault().getImageDescriptor( LdifEditorConstants.IMG_EXECUTE ) ); //$NON-NLS-1$
+ super.setToolTipText( Messages.getString("ExecuteLdifAction.ExecuteLDIF") ); //$NON-NLS-1$
this.editor = editor;
}
Modified: directory/studio/trunk/ldifeditor/src/main/java/org/apache/directory/studio/ldifeditor/editor/LdifDocumentProvider.java
URL: http://svn.apache.org/viewvc/directory/studio/trunk/ldifeditor/src/main/java/org/apache/directory/studio/ldifeditor/editor/LdifDocumentProvider.java?rev=741944&r1=741943&r2=741944&view=diff
==============================================================================
--- directory/studio/trunk/ldifeditor/src/main/java/org/apache/directory/studio/ldifeditor/editor/LdifDocumentProvider.java (original)
+++ directory/studio/trunk/ldifeditor/src/main/java/org/apache/directory/studio/ldifeditor/editor/LdifDocumentProvider.java Sat Feb 7 19:45:20 2009
@@ -253,8 +253,8 @@
{
reader = new FileReader( ( ( IPathEditorInput ) input ).getPath().toFile() );
}
- else if ( inputClassName.equals( "org.eclipse.ui.internal.editors.text.JavaFileEditorInput" )
- || inputClassName.equals( "org.eclipse.ui.ide.FileStoreEditorInput" ) )
+ else if ( inputClassName.equals( "org.eclipse.ui.internal.editors.text.JavaFileEditorInput" ) //$NON-NLS-1$
+ || inputClassName.equals( "org.eclipse.ui.ide.FileStoreEditorInput" ) ) //$NON-NLS-1$
// The class 'org.eclipse.ui.internal.editors.text.JavaFileEditorInput'
// is used when opening a file from the menu File > Open... in Eclipse 3.2.x
// The class 'org.eclipse.ui.ide.FileStoreEditorInput' is used when
@@ -382,8 +382,8 @@
IPath path = pei.getPath();
file = path.toFile();
}
- else if ( elementClassName.equals( "org.eclipse.ui.internal.editors.text.JavaFileEditorInput" )
- || elementClassName.equals( "org.eclipse.ui.ide.FileStoreEditorInput" ) )
+ else if ( elementClassName.equals( "org.eclipse.ui.internal.editors.text.JavaFileEditorInput" ) //$NON-NLS-1$
+ || elementClassName.equals( "org.eclipse.ui.ide.FileStoreEditorInput" ) ) //$NON-NLS-1$
// The class 'org.eclipse.ui.internal.editors.text.JavaFileEditorInput'
// is used when opening a file from the menu File > Open... in Eclipse 3.2.x
// The class 'org.eclipse.ui.ide.FileStoreEditorInput' is used when
@@ -470,8 +470,8 @@
File file = pei.getPath().toFile();
return file.canWrite() || !file.exists(); // Allow to edit new files
}
- else if ( elementClassName.equals( "org.eclipse.ui.internal.editors.text.JavaFileEditorInput" )
- || elementClassName.equals( "org.eclipse.ui.ide.FileStoreEditorInput" ) )
+ else if ( elementClassName.equals( "org.eclipse.ui.internal.editors.text.JavaFileEditorInput" ) //$NON-NLS-1$
+ || elementClassName.equals( "org.eclipse.ui.ide.FileStoreEditorInput" ) ) //$NON-NLS-1$
// The class 'org.eclipse.ui.internal.editors.text.JavaFileEditorInput'
// is used when opening a file from the menu File > Open... in Eclipse 3.2.x
// The class 'org.eclipse.ui.ide.FileStoreEditorInput' is used when
Modified: directory/studio/trunk/ldifeditor/src/main/java/org/apache/directory/studio/ldifeditor/editor/LdifEditor.java
URL: http://svn.apache.org/viewvc/directory/studio/trunk/ldifeditor/src/main/java/org/apache/directory/studio/ldifeditor/editor/LdifEditor.java?rev=741944&r1=741943&r2=741944&view=diff
==============================================================================
--- directory/studio/trunk/ldifeditor/src/main/java/org/apache/directory/studio/ldifeditor/editor/LdifEditor.java (original)
+++ directory/studio/trunk/ldifeditor/src/main/java/org/apache/directory/studio/ldifeditor/editor/LdifEditor.java Sat Feb 7 19:45:20 2009
@@ -156,7 +156,7 @@
{ browserStore, editorStore } );
setPreferenceStore( combinedStore );
- setHelpContextId( LdifEditorConstants.PLUGIN_ID + "." + "tools_ldif_editor" );
+ setHelpContextId( LdifEditorConstants.PLUGIN_ID + "." + "tools_ldif_editor" ); //$NON-NLS-1$ //$NON-NLS-2$
}
@@ -227,8 +227,8 @@
long fileLength = javaIoFile.length();
if ( fileLength > ( 1 * 1024 * 1024 ) )
{
- MessageDialog.openError( site.getShell(), "LDIF file is too big",
- "The selected LDIF file is too big. Perhaps it is possilbe to open it in a further version..." );
+ MessageDialog.openError( site.getShell(), Messages.getString("LdifEditor.LDIFFileIsTooBig"), //$NON-NLS-1$
+ Messages.getString("LdifEditor.LDIFFileIsTooBigDescription") ); //$NON-NLS-1$
super.init( site, new NonExistingLdifEditorInput() );
return;
}
@@ -342,7 +342,7 @@
LdifEditorConstants.ACTION_ID_EDIT_ATTRIBUTE_DESCRIPTION );
addAction( menu, ITextEditorActionConstants.GROUP_EDIT, BrowserCommonConstants.ACTION_ID_EDIT_VALUE );
- MenuManager valueEditorMenuManager = new MenuManager( "Edit Value With" );
+ MenuManager valueEditorMenuManager = new MenuManager( Messages.getString("LdifEditor.EditValueWith") ); //$NON-NLS-1$
if ( this.openBestValueEditorAction.isEnabled() )
{
valueEditorMenuManager.add( this.openBestValueEditorAction );
@@ -366,7 +366,7 @@
addAction( menu, ITextEditorActionConstants.GROUP_EDIT, LdifEditorConstants.ACTION_ID_EDIT_RECORD );
// add Format actions
- MenuManager formatMenuManager = new MenuManager( "Format" );
+ MenuManager formatMenuManager = new MenuManager( Messages.getString("LdifEditor.Format") ); //$NON-NLS-1$
addAction( formatMenuManager, LdifEditorConstants.ACTION_ID_FORMAT_LDIF_DOCUMENT );
addAction( formatMenuManager, LdifEditorConstants.ACTION_ID_FORMAT_LDIF_RECORD );
menu.appendToGroup( ITextEditorActionConstants.GROUP_EDIT, formatMenuManager );
@@ -447,7 +447,7 @@
*/
public void createPartControl( Composite parent )
{
- setHelpContextId( LdifEditorConstants.PLUGIN_ID + "." + "tools_ldif_editor" );
+ setHelpContextId( LdifEditorConstants.PLUGIN_ID + "." + "tools_ldif_editor" ); //$NON-NLS-1$ //$NON-NLS-2$
Composite composite = new Composite( parent, SWT.NONE );
composite.setLayoutData( new GridData( GridData.FILL_BOTH ) );
@@ -570,8 +570,8 @@
{
this.browserConnection = browserConnection;
getEditorSite().getActionBars().getStatusLineManager().setMessage(
- "Used Connection: "
- + ( browserConnection == null || browserConnection.getConnection() == null ? "-" : browserConnection
+ Messages.getString("LdifEditor.UsedConnection") //$NON-NLS-1$
+ + ( browserConnection == null || browserConnection.getConnection() == null ? "-" : browserConnection //$NON-NLS-1$
.getConnection().getName() ) );
// getStatusField("ldapconnection").setText();
@@ -682,7 +682,7 @@
{
// Just call super implementation for now
IPreferenceStore store = EditorsUI.getPreferenceStore();
- String key = getEditorSite().getId() + ".internal.delegateSaveAs"; // $NON-NLS-1$
+ String key = getEditorSite().getId() + ".internal.delegateSaveAs"; // $NON-NLS-1$ //$NON-NLS-1$
store.setValue( key, true );
super.performSaveAs( progressMonitor );
}
@@ -711,7 +711,7 @@
final File externalFile = new File( path );
if ( externalFile.exists() )
{
- MessageDialog overwriteDialog = new MessageDialog( shell, "Overwrite", null, "Overwrite?",
+ MessageDialog overwriteDialog = new MessageDialog( shell, Messages.getString("LdifEditor.Overwrite"), null, Messages.getString("OverwriteQuestion"), //$NON-NLS-1$ //$NON-NLS-2$
MessageDialog.WARNING, new String[]
{ IDialogConstants.YES_LABEL, IDialogConstants.NO_LABEL }, 1 ); // 'No' is the default
if ( overwriteDialog.open() != Window.OK )
@@ -739,8 +739,8 @@
final IStatus status = x.getStatus();
if ( status == null || status.getSeverity() != IStatus.CANCEL )
{
- String title = "Error in Save As...";
- String msg = "Error in Save As... " + x.getMessage();
+ String title = Messages.getString("LdifEditor.ErrorInSaveAs"); //$NON-NLS-1$
+ String msg = Messages.getString("LdifEditor.ErrorInSaveAs") + x.getMessage(); //$NON-NLS-1$
MessageDialog.openError( shell, title, msg );
}
}
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=741944&r1=741943&r2=741944&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 Sat Feb 7 19:45:20 2009
@@ -54,7 +54,7 @@
super();
contentAssist = new RetargetTextEditorAction( LdifEditorActivator.getDefault().getResourceBundle(),
- "ContentAssistProposal." );
+ "ContentAssistProposal." ); //$NON-NLS-1$
contentAssist.setActionDefinitionId( ITextEditorActionDefinitionIds.CONTENT_ASSIST_PROPOSALS );
}
Modified: directory/studio/trunk/ldifeditor/src/main/java/org/apache/directory/studio/ldifeditor/editor/LdifOutlinePage.java
URL: http://svn.apache.org/viewvc/directory/studio/trunk/ldifeditor/src/main/java/org/apache/directory/studio/ldifeditor/editor/LdifOutlinePage.java?rev=741944&r1=741943&r2=741944&view=diff
==============================================================================
--- directory/studio/trunk/ldifeditor/src/main/java/org/apache/directory/studio/ldifeditor/editor/LdifOutlinePage.java (original)
+++ directory/studio/trunk/ldifeditor/src/main/java/org/apache/directory/studio/ldifeditor/editor/LdifOutlinePage.java Sat Feb 7 19:45:20 2009
@@ -363,14 +363,14 @@
else if ( element instanceof List && ( ( List ) element ).get( 0 ) instanceof LdifAttrValLine )
{
List list = ( List ) element;
- return ( ( LdifAttrValLine ) list.get( 0 ) ).getUnfoldedAttributeDescription() + " (" + list.size()
- + ")";
+ return ( ( LdifAttrValLine ) list.get( 0 ) ).getUnfoldedAttributeDescription() + " (" + list.size() //$NON-NLS-1$
+ + ")"; //$NON-NLS-1$
}
else if ( element instanceof LdifModSpec )
{
LdifModSpec modSpec = ( LdifModSpec ) element;
- return modSpec.getModSpecType().getUnfoldedAttributeDescription() + " (" + modSpec.getAttrVals().length
- + ")";
+ return modSpec.getModSpecType().getUnfoldedAttributeDescription() + " (" + modSpec.getAttrVals().length //$NON-NLS-1$
+ + ")"; //$NON-NLS-1$
}
// AttrValLine
@@ -382,7 +382,7 @@
else
{
- return "";
+ return ""; //$NON-NLS-1$
}
}
Added: directory/studio/trunk/ldifeditor/src/main/java/org/apache/directory/studio/ldifeditor/editor/Messages.java
URL: http://svn.apache.org/viewvc/directory/studio/trunk/ldifeditor/src/main/java/org/apache/directory/studio/ldifeditor/editor/Messages.java?rev=741944&view=auto
==============================================================================
--- directory/studio/trunk/ldifeditor/src/main/java/org/apache/directory/studio/ldifeditor/editor/Messages.java (added)
+++ directory/studio/trunk/ldifeditor/src/main/java/org/apache/directory/studio/ldifeditor/editor/Messages.java Sat Feb 7 19:45:20 2009
@@ -0,0 +1,51 @@
+/*
+ * 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.
+ *
+ */
+
+package org.apache.directory.studio.ldifeditor.editor;
+
+
+import java.util.MissingResourceException;
+import java.util.ResourceBundle;
+
+
+public class Messages
+{
+ private static final String BUNDLE_NAME = "org.apache.directory.studio.ldifeditor.editor.messages"; //$NON-NLS-1$
+
+ private static final ResourceBundle RESOURCE_BUNDLE = ResourceBundle.getBundle( BUNDLE_NAME );
+
+
+ private Messages()
+ {
+ }
+
+
+ public static String getString( String key )
+ {
+ try
+ {
+ return RESOURCE_BUNDLE.getString( key );
+ }
+ catch ( MissingResourceException e )
+ {
+ return '!' + key + '!';
+ }
+ }
+}
Modified: directory/studio/trunk/ldifeditor/src/main/java/org/apache/directory/studio/ldifeditor/editor/NonExistingLdifEditorInput.java
URL: http://svn.apache.org/viewvc/directory/studio/trunk/ldifeditor/src/main/java/org/apache/directory/studio/ldifeditor/editor/NonExistingLdifEditorInput.java?rev=741944&r1=741943&r2=741944&view=diff
==============================================================================
--- directory/studio/trunk/ldifeditor/src/main/java/org/apache/directory/studio/ldifeditor/editor/NonExistingLdifEditorInput.java (original)
+++ directory/studio/trunk/ldifeditor/src/main/java/org/apache/directory/studio/ldifeditor/editor/NonExistingLdifEditorInput.java Sat Feb 7 19:45:20 2009
@@ -178,7 +178,7 @@
*/
public IPath getPath()
{
- return LdifEditorActivator.getDefault().getStateLocation().append( name + ".ldif" );
+ return LdifEditorActivator.getDefault().getStateLocation().append( name + ".ldif" ); //$NON-NLS-1$
}
}
Modified: directory/studio/trunk/ldifeditor/src/main/java/org/apache/directory/studio/ldifeditor/editor/actions/AbstractOpenValueEditorAction.java
URL: http://svn.apache.org/viewvc/directory/studio/trunk/ldifeditor/src/main/java/org/apache/directory/studio/ldifeditor/editor/actions/AbstractOpenValueEditorAction.java?rev=741944&r1=741943&r2=741944&view=diff
==============================================================================
--- directory/studio/trunk/ldifeditor/src/main/java/org/apache/directory/studio/ldifeditor/editor/actions/AbstractOpenValueEditorAction.java (original)
+++ directory/studio/trunk/ldifeditor/src/main/java/org/apache/directory/studio/ldifeditor/editor/actions/AbstractOpenValueEditorAction.java Sat Feb 7 19:45:20 2009
@@ -59,7 +59,7 @@
public AbstractOpenValueEditorAction( LdifEditor editor )
{
- super( "Edit Value", editor );
+ super( Messages.getString("AbstractOpenValueEditorAction.EditValue"), editor ); //$NON-NLS-1$
valueEditorManager = editor.getValueEditorManager();
}
@@ -213,7 +213,7 @@
if ( line instanceof LdifControlLine )
{
- attributeDescription = "";
+ attributeDescription = ""; //$NON-NLS-1$
}
else
{
Modified: directory/studio/trunk/ldifeditor/src/main/java/org/apache/directory/studio/ldifeditor/editor/actions/EditLdifAttributeAction.java
URL: http://svn.apache.org/viewvc/directory/studio/trunk/ldifeditor/src/main/java/org/apache/directory/studio/ldifeditor/editor/actions/EditLdifAttributeAction.java?rev=741944&r1=741943&r2=741944&view=diff
==============================================================================
--- directory/studio/trunk/ldifeditor/src/main/java/org/apache/directory/studio/ldifeditor/editor/actions/EditLdifAttributeAction.java (original)
+++ directory/studio/trunk/ldifeditor/src/main/java/org/apache/directory/studio/ldifeditor/editor/actions/EditLdifAttributeAction.java Sat Feb 7 19:45:20 2009
@@ -60,7 +60,7 @@
public EditLdifAttributeAction( LdifEditor editor )
{
- super( "Edit Attribute Description", editor );
+ super( Messages.getString("EditLdifAttributeAction.EditAttributeDescription"), editor ); //$NON-NLS-1$
super.setActionDefinitionId( BrowserCommonConstants.ACTION_ID_EDIT_ATTRIBUTE_DESCRIPTION );
manager = new ValueEditorManager( editor.getSite().getShell() );
@@ -130,7 +130,7 @@
dummyEntry = new DummyEntry( new LdapDN(), dummyConnection );
}
- AttributeWizard wizard = new AttributeWizard( "Edit Attribute Description", true, false,
+ AttributeWizard wizard = new AttributeWizard( Messages.getString("EditLdifAttributeAction.EditAttributeDescription"), true, false, //$NON-NLS-1$
attributeDescription, dummyEntry );
WizardDialog dialog = new WizardDialog( Display.getDefault().getActiveShell(), wizard );
dialog.setBlockOnOpen( true );
Modified: directory/studio/trunk/ldifeditor/src/main/java/org/apache/directory/studio/ldifeditor/editor/actions/EditLdifRecordAction.java
URL: http://svn.apache.org/viewvc/directory/studio/trunk/ldifeditor/src/main/java/org/apache/directory/studio/ldifeditor/editor/actions/EditLdifRecordAction.java?rev=741944&r1=741943&r2=741944&view=diff
==============================================================================
--- directory/studio/trunk/ldifeditor/src/main/java/org/apache/directory/studio/ldifeditor/editor/actions/EditLdifRecordAction.java (original)
+++ directory/studio/trunk/ldifeditor/src/main/java/org/apache/directory/studio/ldifeditor/editor/actions/EditLdifRecordAction.java Sat Feb 7 19:45:20 2009
@@ -37,7 +37,7 @@
public EditLdifRecordAction( LdifEditor editor )
{
- super( "Edit Record", editor );
+ super( Messages.getString("EditLdifRecordAction.EditRecord"), editor ); //$NON-NLS-1$
super.setActionDefinitionId( LdifEditorConstants.ACTION_ID_EDIT_RECORD );
}
Modified: directory/studio/trunk/ldifeditor/src/main/java/org/apache/directory/studio/ldifeditor/editor/actions/FormatLdifDocumentAction.java
URL: http://svn.apache.org/viewvc/directory/studio/trunk/ldifeditor/src/main/java/org/apache/directory/studio/ldifeditor/editor/actions/FormatLdifDocumentAction.java?rev=741944&r1=741943&r2=741944&view=diff
==============================================================================
--- directory/studio/trunk/ldifeditor/src/main/java/org/apache/directory/studio/ldifeditor/editor/actions/FormatLdifDocumentAction.java (original)
+++ directory/studio/trunk/ldifeditor/src/main/java/org/apache/directory/studio/ldifeditor/editor/actions/FormatLdifDocumentAction.java Sat Feb 7 19:45:20 2009
@@ -32,7 +32,7 @@
public FormatLdifDocumentAction( LdifEditor editor )
{
- super( "Format Document", editor );
+ super( Messages.getString("FormatLdifDocumentAction.FormatDocument"), editor ); //$NON-NLS-1$
}
Modified: directory/studio/trunk/ldifeditor/src/main/java/org/apache/directory/studio/ldifeditor/editor/actions/FormatLdifRecordAction.java
URL: http://svn.apache.org/viewvc/directory/studio/trunk/ldifeditor/src/main/java/org/apache/directory/studio/ldifeditor/editor/actions/FormatLdifRecordAction.java?rev=741944&r1=741943&r2=741944&view=diff
==============================================================================
--- directory/studio/trunk/ldifeditor/src/main/java/org/apache/directory/studio/ldifeditor/editor/actions/FormatLdifRecordAction.java (original)
+++ directory/studio/trunk/ldifeditor/src/main/java/org/apache/directory/studio/ldifeditor/editor/actions/FormatLdifRecordAction.java Sat Feb 7 19:45:20 2009
@@ -34,7 +34,7 @@
public FormatLdifRecordAction( LdifEditor editor )
{
- super( "Format Record", editor );
+ super( Messages.getString("FormatLdifRecordAction.FormatRecord"), editor ); //$NON-NLS-1$
}
Added: directory/studio/trunk/ldifeditor/src/main/java/org/apache/directory/studio/ldifeditor/editor/actions/Messages.java
URL: http://svn.apache.org/viewvc/directory/studio/trunk/ldifeditor/src/main/java/org/apache/directory/studio/ldifeditor/editor/actions/Messages.java?rev=741944&view=auto
==============================================================================
--- directory/studio/trunk/ldifeditor/src/main/java/org/apache/directory/studio/ldifeditor/editor/actions/Messages.java (added)
+++ directory/studio/trunk/ldifeditor/src/main/java/org/apache/directory/studio/ldifeditor/editor/actions/Messages.java Sat Feb 7 19:45:20 2009
@@ -0,0 +1,51 @@
+/*
+ * 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.
+ *
+ */
+
+package org.apache.directory.studio.ldifeditor.editor.actions;
+
+
+import java.util.MissingResourceException;
+import java.util.ResourceBundle;
+
+
+public class Messages
+{
+ private static final String BUNDLE_NAME = "org.apache.directory.studio.ldifeditor.editor.actions.messages"; //$NON-NLS-1$
+
+ private static final ResourceBundle RESOURCE_BUNDLE = ResourceBundle.getBundle( BUNDLE_NAME );
+
+
+ private Messages()
+ {
+ }
+
+
+ public static String getString( String key )
+ {
+ try
+ {
+ return RESOURCE_BUNDLE.getString( key );
+ }
+ catch ( MissingResourceException e )
+ {
+ return '!' + key + '!';
+ }
+ }
+}