directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From seelm...@apache.org
Subject svn commit: r741930 [5/6] - in /directory/studio/trunk/ldapbrowser-common/src/main/java/org/apache/directory/studio: ldapbrowser/common/ ldapbrowser/common/actions/ ldapbrowser/common/dialogs/ ldapbrowser/common/dialogs/preferences/ ldapbrowser/common/...
Date Sat, 07 Feb 2009 18:26:31 GMT
Modified: directory/studio/trunk/ldapbrowser-common/src/main/java/org/apache/directory/studio/ldapbrowser/common/widgets/entryeditor/EntryEditorWidgetActionGroupWithAttribute.java
URL: http://svn.apache.org/viewvc/directory/studio/trunk/ldapbrowser-common/src/main/java/org/apache/directory/studio/ldapbrowser/common/widgets/entryeditor/EntryEditorWidgetActionGroupWithAttribute.java?rev=741930&r1=741929&r2=741930&view=diff
==============================================================================
--- directory/studio/trunk/ldapbrowser-common/src/main/java/org/apache/directory/studio/ldapbrowser/common/widgets/entryeditor/EntryEditorWidgetActionGroupWithAttribute.java (original)
+++ directory/studio/trunk/ldapbrowser-common/src/main/java/org/apache/directory/studio/ldapbrowser/common/widgets/entryeditor/EntryEditorWidgetActionGroupWithAttribute.java Sat Feb  7 18:26:27 2009
@@ -43,13 +43,13 @@
 {
 
     /** The Constant editAttributeDescriptionAction. */
-    private static final String editAttributeDescriptionAction = "editAttributeDescriptionAction";
+    private static final String editAttributeDescriptionAction = "editAttributeDescriptionAction"; //$NON-NLS-1$
 
     /** The Constant newAttributeAction. */
-    private static final String newAttributeAction = "newAttributeAction";
+    private static final String newAttributeAction = "newAttributeAction"; //$NON-NLS-1$
 
     /** The Constant deleteAllValuesAction. */
-    private static final String deleteAllValuesAction = "deleteAllValuesAction";
+    private static final String deleteAllValuesAction = "deleteAllValuesAction"; //$NON-NLS-1$
 
 
     /**
@@ -104,7 +104,7 @@
         menuManager.add( ( IAction ) entryEditorActionMap.get( pasteAction ) );
         menuManager.add( ( IAction ) entryEditorActionMap.get( deleteAction ) );
         menuManager.add( ( IAction ) entryEditorActionMap.get( selectAllAction ) );
-        MenuManager copyMenuManager = new MenuManager( "Advanced" );
+        MenuManager copyMenuManager = new MenuManager( Messages.getString("EntryEditorWidgetActionGroupWithAttribute.Advanced") ); //$NON-NLS-1$
         copyMenuManager.add( ( IAction ) entryEditorActionMap.get( deleteAllValuesAction ) );
         menuManager.add( copyMenuManager );
         menuManager.add( new Separator() );

Modified: directory/studio/trunk/ldapbrowser-common/src/main/java/org/apache/directory/studio/ldapbrowser/common/widgets/entryeditor/EntryEditorWidgetCellModifier.java
URL: http://svn.apache.org/viewvc/directory/studio/trunk/ldapbrowser-common/src/main/java/org/apache/directory/studio/ldapbrowser/common/widgets/entryeditor/EntryEditorWidgetCellModifier.java?rev=741930&r1=741929&r2=741930&view=diff
==============================================================================
--- directory/studio/trunk/ldapbrowser-common/src/main/java/org/apache/directory/studio/ldapbrowser/common/widgets/entryeditor/EntryEditorWidgetCellModifier.java (original)
+++ directory/studio/trunk/ldapbrowser-common/src/main/java/org/apache/directory/studio/ldapbrowser/common/widgets/entryeditor/EntryEditorWidgetCellModifier.java Sat Feb  7 18:26:27 2009
@@ -113,7 +113,7 @@
             }
             else
             {
-                returnValue = "";
+                returnValue = ""; //$NON-NLS-1$
             }
             return returnValue;
         }

Modified: directory/studio/trunk/ldapbrowser-common/src/main/java/org/apache/directory/studio/ldapbrowser/common/widgets/entryeditor/EntryEditorWidgetContentProvider.java
URL: http://svn.apache.org/viewvc/directory/studio/trunk/ldapbrowser-common/src/main/java/org/apache/directory/studio/ldapbrowser/common/widgets/entryeditor/EntryEditorWidgetContentProvider.java?rev=741930&r1=741929&r2=741930&view=diff
==============================================================================
--- directory/studio/trunk/ldapbrowser-common/src/main/java/org/apache/directory/studio/ldapbrowser/common/widgets/entryeditor/EntryEditorWidgetContentProvider.java (original)
+++ directory/studio/trunk/ldapbrowser-common/src/main/java/org/apache/directory/studio/ldapbrowser/common/widgets/entryeditor/EntryEditorWidgetContentProvider.java Sat Feb  7 18:26:27 2009
@@ -77,22 +77,22 @@
     {
         if ( mainWidget != null )
         {
-            String dn = "";
+            String dn = ""; //$NON-NLS-1$
             boolean enabled = true;
 
             if ( newInput != null && newInput instanceof IEntry )
             {
                 IEntry entry = ( IEntry ) newInput;
-                dn = "DN: " + entry.getDn().getUpName();
+                dn = Messages.getString("EntryEditorWidgetContentProvider.DNLabel") + entry.getDn().getUpName(); //$NON-NLS-1$
             }
             else if ( newInput != null && newInput instanceof AttributeHierarchy )
             {
                 AttributeHierarchy ah = ( AttributeHierarchy ) newInput;
-                dn = "DN: " + ah.getAttribute().getEntry().getDn().getUpName();
+                dn = Messages.getString("EntryEditorWidgetContentProvider.DNLabel") + ah.getAttribute().getEntry().getDn().getUpName(); //$NON-NLS-1$
             }
             else
             {
-                dn = "No entry selected";
+                dn = Messages.getString("EntryEditorWidgetContentProvider.NoEntrySelected"); //$NON-NLS-1$
                 enabled = false;
             }
 

Modified: directory/studio/trunk/ldapbrowser-common/src/main/java/org/apache/directory/studio/ldapbrowser/common/widgets/entryeditor/EntryEditorWidgetFilter.java
URL: http://svn.apache.org/viewvc/directory/studio/trunk/ldapbrowser-common/src/main/java/org/apache/directory/studio/ldapbrowser/common/widgets/entryeditor/EntryEditorWidgetFilter.java?rev=741930&r1=741929&r2=741930&view=diff
==============================================================================
--- directory/studio/trunk/ldapbrowser-common/src/main/java/org/apache/directory/studio/ldapbrowser/common/widgets/entryeditor/EntryEditorWidgetFilter.java (original)
+++ directory/studio/trunk/ldapbrowser-common/src/main/java/org/apache/directory/studio/ldapbrowser/common/widgets/entryeditor/EntryEditorWidgetFilter.java Sat Feb  7 18:26:27 2009
@@ -54,8 +54,8 @@
      */
     public EntryEditorWidgetFilter()
     {
-        this.quickFilterAttribute = "";
-        this.quickFilterValue = "";
+        this.quickFilterAttribute = ""; //$NON-NLS-1$
+        this.quickFilterValue = ""; //$NON-NLS-1$
     }
 
 
@@ -147,7 +147,7 @@
     private boolean goesThroughQuickFilter( IValue value )
     {
         // filter attribute description
-        if ( quickFilterAttribute != null && !"".equals( quickFilterAttribute ) )
+        if ( quickFilterAttribute != null && !"".equals( quickFilterAttribute ) ) //$NON-NLS-1$
         {
             if ( value.getAttribute().getDescription().toUpperCase().indexOf( quickFilterAttribute.toUpperCase() ) == -1 )
             {
@@ -156,7 +156,7 @@
         }
 
         // fitler value
-        if ( quickFilterValue != null && !"".equals( quickFilterValue ) )
+        if ( quickFilterValue != null && !"".equals( quickFilterValue ) ) //$NON-NLS-1$
         {
             if ( value.isString()
                 && value.getStringValue().toUpperCase().indexOf( quickFilterValue.toUpperCase() ) == -1 )

Modified: directory/studio/trunk/ldapbrowser-common/src/main/java/org/apache/directory/studio/ldapbrowser/common/widgets/entryeditor/EntryEditorWidgetLabelProvider.java
URL: http://svn.apache.org/viewvc/directory/studio/trunk/ldapbrowser-common/src/main/java/org/apache/directory/studio/ldapbrowser/common/widgets/entryeditor/EntryEditorWidgetLabelProvider.java?rev=741930&r1=741929&r2=741930&view=diff
==============================================================================
--- directory/studio/trunk/ldapbrowser-common/src/main/java/org/apache/directory/studio/ldapbrowser/common/widgets/entryeditor/EntryEditorWidgetLabelProvider.java (original)
+++ directory/studio/trunk/ldapbrowser-common/src/main/java/org/apache/directory/studio/ldapbrowser/common/widgets/entryeditor/EntryEditorWidgetLabelProvider.java Sat Feb  7 18:26:27 2009
@@ -32,6 +32,7 @@
 import org.eclipse.jface.viewers.IFontProvider;
 import org.eclipse.jface.viewers.ITableLabelProvider;
 import org.eclipse.jface.viewers.LabelProvider;
+import org.eclipse.osgi.util.NLS;
 import org.eclipse.swt.graphics.Color;
 import org.eclipse.swt.graphics.Font;
 import org.eclipse.swt.graphics.FontData;
@@ -97,7 +98,7 @@
                     String dv = vp.getDisplayValue( value );
                     return dv;
                 default:
-                    return "";
+                    return ""; //$NON-NLS-1$
             }
         }
         else if ( obj != null && obj instanceof IAttribute )
@@ -105,16 +106,16 @@
             IAttribute attribute = ( IAttribute ) obj;
             if ( index == EntryEditorWidgetTableMetadata.KEY_COLUMN_INDEX )
             {
-                return attribute.getDescription() + " (" + attribute.getValueSize() + " values)";
+                return NLS.bind( Messages.getString("EntryEditorWidgetLabelProvider.AttributeLabel"), attribute.getDescription(), attribute.getValueSize() ); //$NON-NLS-1$
             }
             else
             {
-                return "";
+                return ""; //$NON-NLS-1$
             }
         }
         else
         {
-            return "";
+            return ""; //$NON-NLS-1$
         }
     }
 

Modified: directory/studio/trunk/ldapbrowser-common/src/main/java/org/apache/directory/studio/ldapbrowser/common/widgets/entryeditor/EntryEditorWidgetQuickFilterWidget.java
URL: http://svn.apache.org/viewvc/directory/studio/trunk/ldapbrowser-common/src/main/java/org/apache/directory/studio/ldapbrowser/common/widgets/entryeditor/EntryEditorWidgetQuickFilterWidget.java?rev=741930&r1=741929&r2=741930&view=diff
==============================================================================
--- directory/studio/trunk/ldapbrowser-common/src/main/java/org/apache/directory/studio/ldapbrowser/common/widgets/entryeditor/EntryEditorWidgetQuickFilterWidget.java (original)
+++ directory/studio/trunk/ldapbrowser-common/src/main/java/org/apache/directory/studio/ldapbrowser/common/widgets/entryeditor/EntryEditorWidgetQuickFilterWidget.java Sat Feb  7 18:26:27 2009
@@ -123,9 +123,9 @@
             public void modifyText( ModifyEvent e )
             {
                 filter.setQuickFilterAttribute( quickFilterAttributeText.getText() );
-                clearQuickFilterButton.setEnabled( !"".equals( quickFilterAttributeText.getText() )
-                    || !"".equals( quickFilterValueText.getText() ) );
-                if ( !"".equals( quickFilterAttributeText.getText() ) )
+                clearQuickFilterButton.setEnabled( !"".equals( quickFilterAttributeText.getText() ) //$NON-NLS-1$
+                    || !"".equals( quickFilterValueText.getText() ) ); //$NON-NLS-1$
+                if ( !"".equals( quickFilterAttributeText.getText() ) ) //$NON-NLS-1$
                 {
                     RGB fgRgb = PreferenceConverter.getColor( BrowserCommonActivator.getDefault().getPreferenceStore(),
                         BrowserCommonConstants.PREFERENCE_QUICKFILTER_FOREGROUND_COLOR );
@@ -154,9 +154,9 @@
             public void modifyText( ModifyEvent e )
             {
                 filter.setQuickFilterValue( quickFilterValueText.getText() );
-                clearQuickFilterButton.setEnabled( !"".equals( quickFilterAttributeText.getText() )
-                    || !"".equals( quickFilterValueText.getText() ) );
-                if ( !"".equals( quickFilterValueText.getText() ) )
+                clearQuickFilterButton.setEnabled( !"".equals( quickFilterAttributeText.getText() ) //$NON-NLS-1$
+                    || !"".equals( quickFilterValueText.getText() ) ); //$NON-NLS-1$
+                if ( !"".equals( quickFilterValueText.getText() ) ) //$NON-NLS-1$
                 {
                     RGB fgRgb = PreferenceConverter.getColor( BrowserCommonActivator.getDefault().getPreferenceStore(),
                         BrowserCommonConstants.PREFERENCE_QUICKFILTER_FOREGROUND_COLOR );
@@ -179,7 +179,7 @@
         } );
 
         clearQuickFilterButton = new Button( innerComposite, SWT.PUSH );
-        clearQuickFilterButton.setToolTipText( "Clear Quick Filter" );
+        clearQuickFilterButton.setToolTipText( Messages.getString("EntryEditorWidgetQuickFilterWidget.ClearQuickFilter") ); //$NON-NLS-1$
         clearQuickFilterButton.setImage( BrowserCommonActivator.getDefault()
             .getImage( BrowserCommonConstants.IMG_CLEAR ) );
         clearQuickFilterButton.setEnabled( false );
@@ -187,13 +187,13 @@
         {
             public void widgetSelected( SelectionEvent e )
             {
-                if ( !"".equals( quickFilterAttributeText.getText() ) )
+                if ( !"".equals( quickFilterAttributeText.getText() ) ) //$NON-NLS-1$
                 {
-                    quickFilterAttributeText.setText( "" );
+                    quickFilterAttributeText.setText( "" ); //$NON-NLS-1$
                 }
-                if ( !"".equals( quickFilterValueText.getText() ) )
+                if ( !"".equals( quickFilterValueText.getText() ) ) //$NON-NLS-1$
                 {
-                    quickFilterValueText.setText( "" );
+                    quickFilterValueText.setText( "" ); //$NON-NLS-1$
                 }
             }
         } );
@@ -210,13 +210,13 @@
      */
     private void destroy()
     {
-        if ( !"".equals( quickFilterAttributeText.getText() ) )
+        if ( !"".equals( quickFilterAttributeText.getText() ) ) //$NON-NLS-1$
         {
-            quickFilterAttributeText.setText( "" );
+            quickFilterAttributeText.setText( "" ); //$NON-NLS-1$
         }
-        if ( !"".equals( quickFilterValueText.getText() ) )
+        if ( !"".equals( quickFilterValueText.getText() ) ) //$NON-NLS-1$
         {
-            quickFilterValueText.setText( "" );
+            quickFilterValueText.setText( "" ); //$NON-NLS-1$
         }
         innerComposite.dispose();
         innerComposite = null;

Modified: directory/studio/trunk/ldapbrowser-common/src/main/java/org/apache/directory/studio/ldapbrowser/common/widgets/entryeditor/EntryEditorWidgetSorterDialog.java
URL: http://svn.apache.org/viewvc/directory/studio/trunk/ldapbrowser-common/src/main/java/org/apache/directory/studio/ldapbrowser/common/widgets/entryeditor/EntryEditorWidgetSorterDialog.java?rev=741930&r1=741929&r2=741930&view=diff
==============================================================================
--- directory/studio/trunk/ldapbrowser-common/src/main/java/org/apache/directory/studio/ldapbrowser/common/widgets/entryeditor/EntryEditorWidgetSorterDialog.java (original)
+++ directory/studio/trunk/ldapbrowser-common/src/main/java/org/apache/directory/studio/ldapbrowser/common/widgets/entryeditor/EntryEditorWidgetSorterDialog.java Sat Feb  7 18:26:27 2009
@@ -49,16 +49,16 @@
 {
 
     /** The Constant DIALOG_TITLE. */
-    public static final String DIALOG_TITLE = "Entry Editor Sorting";
+    public static final String DIALOG_TITLE = Messages.getString("EntryEditorWidgetSorterDialog.EntryEditorSorting"); //$NON-NLS-1$
 
     /** The Constant SORT_BY_NONE. */
-    public static final String SORT_BY_NONE = "No Default Sorting";
+    public static final String SORT_BY_NONE = Messages.getString("EntryEditorWidgetSorterDialog.NoDefaultSorting"); //$NON-NLS-1$
 
     /** The Constant SORT_BY_ATTRIBUTE. */
-    public static final String SORT_BY_ATTRIBUTE = "Attribute Description";
+    public static final String SORT_BY_ATTRIBUTE = Messages.getString("EntryEditorWidgetSorterDialog.AttributeDescription"); //$NON-NLS-1$
 
     /** The Constant SORT_BY_VALUE. */
-    public static final String SORT_BY_VALUE = "Value";
+    public static final String SORT_BY_VALUE = Messages.getString("EntryEditorWidgetSorterDialog.Value"); //$NON-NLS-1$
 
     /** The preferences. */
     private EntryEditorWidgetPreferences preferences;
@@ -138,22 +138,22 @@
     {
         Composite composite = ( Composite ) super.createDialogArea( parent );
 
-        Group group = BaseWidgetUtils.createGroup( composite, "Group attributes", 1 );
+        Group group = BaseWidgetUtils.createGroup( composite, Messages.getString("EntryEditorWidgetSorterDialog.GroupAttributes"), 1 ); //$NON-NLS-1$
         GridData gd = new GridData( GridData.FILL_BOTH | GridData.GRAB_HORIZONTAL );
         gd.widthHint = convertHorizontalDLUsToPixels( IDialogConstants.MINIMUM_MESSAGE_AREA_WIDTH );
         group.setLayoutData( gd );
 
         objectClassAndMustAttributesFirstButton = BaseWidgetUtils.createCheckbox( group,
-            "ObjectClass and must attributes first", 1 );
+            Messages.getString("EntryEditorWidgetSorterDialog.ObjectClassAndMustAttributesFirst"), 1 ); //$NON-NLS-1$
         objectClassAndMustAttributesFirstButton.setSelection( preferences.isObjectClassAndMustAttributesFirst() );
 
-        operationalAttributesLastButton = BaseWidgetUtils.createCheckbox( group, "Operational attributes last", 1 );
+        operationalAttributesLastButton = BaseWidgetUtils.createCheckbox( group, Messages.getString("EntryEditorWidgetSorterDialog.OperationalAttributesLast"), 1 ); //$NON-NLS-1$
         operationalAttributesLastButton.setSelection( preferences.isOperationalAttributesLast() );
 
-        Group sortingGroup = BaseWidgetUtils.createGroup( composite, "Sort attributes", 1 );
+        Group sortingGroup = BaseWidgetUtils.createGroup( composite, Messages.getString("EntryEditorWidgetSorterDialog.SortAttributes"), 1 ); //$NON-NLS-1$
 
         Composite sortByComposite = BaseWidgetUtils.createColumnContainer( sortingGroup, 4, 1 );
-        BaseWidgetUtils.createLabel( sortByComposite, "Sort by", 1 );
+        BaseWidgetUtils.createLabel( sortByComposite, Messages.getString("EntryEditorWidgetSorterDialog.SortBy"), 1 ); //$NON-NLS-1$
         sortByCombo = BaseWidgetUtils.createReadonlyCombo( sortByComposite, new String[]
             { SORT_BY_NONE, SORT_BY_ATTRIBUTE, SORT_BY_VALUE }, 0, 1 );
         sortByCombo.select( preferences.getDefaultSortBy() == BrowserCoreConstants.SORT_BY_VALUE ? 2 : preferences
@@ -167,12 +167,12 @@
             }
         } );
 
-        sortAcendingButton = BaseWidgetUtils.createRadiobutton( sortByComposite, "Ascending", 1 );
+        sortAcendingButton = BaseWidgetUtils.createRadiobutton( sortByComposite, Messages.getString("EntryEditorWidgetSorterDialog.Ascending"), 1 ); //$NON-NLS-1$
         sortAcendingButton
             .setSelection( preferences.getDefaultSortOrder() == BrowserCoreConstants.SORT_ORDER_ASCENDING );
         sortAcendingButton.setEnabled( sortByCombo.getSelectionIndex() != 0 );
 
-        sortDescendingButton = BaseWidgetUtils.createRadiobutton( sortByComposite, "Descending", 1 );
+        sortDescendingButton = BaseWidgetUtils.createRadiobutton( sortByComposite, Messages.getString("EntryEditorWidgetSorterDialog.Descending"), 1 ); //$NON-NLS-1$
         sortDescendingButton
             .setSelection( preferences.getDefaultSortOrder() == BrowserCoreConstants.SORT_ORDER_DESCENDING );
         sortDescendingButton.setEnabled( sortByCombo.getSelectionIndex() != 0 );
@@ -180,7 +180,7 @@
         BaseWidgetUtils.createSpacer( composite, 2 );
 
         BaseWidgetUtils.createLabel( composite,
-            "Please click to table headers to sort by attribute description or value.", 1 );
+            Messages.getString("EntryEditorWidgetSorterDialog.SortTableHint"), 1 ); //$NON-NLS-1$
 
         applyDialogFont( composite );
         return composite;

Modified: directory/studio/trunk/ldapbrowser-common/src/main/java/org/apache/directory/studio/ldapbrowser/common/widgets/entryeditor/EntryEditorWidgetTableMetadata.java
URL: http://svn.apache.org/viewvc/directory/studio/trunk/ldapbrowser-common/src/main/java/org/apache/directory/studio/ldapbrowser/common/widgets/entryeditor/EntryEditorWidgetTableMetadata.java?rev=741930&r1=741929&r2=741930&view=diff
==============================================================================
--- directory/studio/trunk/ldapbrowser-common/src/main/java/org/apache/directory/studio/ldapbrowser/common/widgets/entryeditor/EntryEditorWidgetTableMetadata.java (original)
+++ directory/studio/trunk/ldapbrowser-common/src/main/java/org/apache/directory/studio/ldapbrowser/common/widgets/entryeditor/EntryEditorWidgetTableMetadata.java Sat Feb  7 18:26:27 2009
@@ -38,10 +38,10 @@
     public static final int VALUE_COLUMN_INDEX = 1;
 
     /** The Constant KEY_COLUMN_NAME. */
-    public static final String KEY_COLUMN_NAME = "Attribute Description";
+    public static final String KEY_COLUMN_NAME = Messages.getString("EntryEditorWidgetTableMetadata.AttributeDescription"); //$NON-NLS-1$
 
     /** The Constant VALUE_COLUMN_NAME. */
-    public static final String VALUE_COLUMN_NAME = "Value";
+    public static final String VALUE_COLUMN_NAME = Messages.getString("EntryEditorWidgetTableMetadata.Value"); //$NON-NLS-1$
 
     /** The Constant COLUM_NAMES. */
     public static final String[] COLUM_NAMES =

Added: directory/studio/trunk/ldapbrowser-common/src/main/java/org/apache/directory/studio/ldapbrowser/common/widgets/entryeditor/Messages.java
URL: http://svn.apache.org/viewvc/directory/studio/trunk/ldapbrowser-common/src/main/java/org/apache/directory/studio/ldapbrowser/common/widgets/entryeditor/Messages.java?rev=741930&view=auto
==============================================================================
--- directory/studio/trunk/ldapbrowser-common/src/main/java/org/apache/directory/studio/ldapbrowser/common/widgets/entryeditor/Messages.java (added)
+++ directory/studio/trunk/ldapbrowser-common/src/main/java/org/apache/directory/studio/ldapbrowser/common/widgets/entryeditor/Messages.java Sat Feb  7 18:26:27 2009
@@ -0,0 +1,50 @@
+/*
+ *  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.ldapbrowser.common.widgets.entryeditor;
+
+
+import java.util.MissingResourceException;
+import java.util.ResourceBundle;
+
+
+public class Messages
+{
+    private static final String BUNDLE_NAME = "org.apache.directory.studio.ldapbrowser.common.widgets.entryeditor.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/ldapbrowser-common/src/main/java/org/apache/directory/studio/ldapbrowser/common/widgets/entryeditor/OpenDefaultEditorAction.java
URL: http://svn.apache.org/viewvc/directory/studio/trunk/ldapbrowser-common/src/main/java/org/apache/directory/studio/ldapbrowser/common/widgets/entryeditor/OpenDefaultEditorAction.java?rev=741930&r1=741929&r2=741930&view=diff
==============================================================================
--- directory/studio/trunk/ldapbrowser-common/src/main/java/org/apache/directory/studio/ldapbrowser/common/widgets/entryeditor/OpenDefaultEditorAction.java (original)
+++ directory/studio/trunk/ldapbrowser-common/src/main/java/org/apache/directory/studio/ldapbrowser/common/widgets/entryeditor/OpenDefaultEditorAction.java Sat Feb  7 18:26:27 2009
@@ -108,7 +108,7 @@
      */
     public String getText()
     {
-        return "Edit Value";
+        return Messages.getString("OpenDefaultEditorAction.EditValue"); //$NON-NLS-1$
     }
 
 

Modified: directory/studio/trunk/ldapbrowser-common/src/main/java/org/apache/directory/studio/ldapbrowser/common/widgets/entryeditor/OpenSortDialogAction.java
URL: http://svn.apache.org/viewvc/directory/studio/trunk/ldapbrowser-common/src/main/java/org/apache/directory/studio/ldapbrowser/common/widgets/entryeditor/OpenSortDialogAction.java?rev=741930&r1=741929&r2=741930&view=diff
==============================================================================
--- directory/studio/trunk/ldapbrowser-common/src/main/java/org/apache/directory/studio/ldapbrowser/common/widgets/entryeditor/OpenSortDialogAction.java (original)
+++ directory/studio/trunk/ldapbrowser-common/src/main/java/org/apache/directory/studio/ldapbrowser/common/widgets/entryeditor/OpenSortDialogAction.java Sat Feb  7 18:26:27 2009
@@ -35,8 +35,8 @@
 
     public OpenSortDialogAction( EntryEditorWidgetPreferences preferences )
     {
-        super.setText( "Sorting..." );
-        super.setToolTipText( "Sorting..." );
+        super.setText( Messages.getString("OpenSortDialogAction.Sorting") ); //$NON-NLS-1$
+        super.setToolTipText( Messages.getString("OpenSortDialogAction.Sorting") ); //$NON-NLS-1$
         super.setImageDescriptor( BrowserCommonActivator.getDefault().getImageDescriptor( BrowserCommonConstants.IMG_SORT ) );
         super.setEnabled( true );
 

Modified: directory/studio/trunk/ldapbrowser-common/src/main/java/org/apache/directory/studio/ldapbrowser/common/widgets/entryeditor/ShowQuickFilterAction.java
URL: http://svn.apache.org/viewvc/directory/studio/trunk/ldapbrowser-common/src/main/java/org/apache/directory/studio/ldapbrowser/common/widgets/entryeditor/ShowQuickFilterAction.java?rev=741930&r1=741929&r2=741930&view=diff
==============================================================================
--- directory/studio/trunk/ldapbrowser-common/src/main/java/org/apache/directory/studio/ldapbrowser/common/widgets/entryeditor/ShowQuickFilterAction.java (original)
+++ directory/studio/trunk/ldapbrowser-common/src/main/java/org/apache/directory/studio/ldapbrowser/common/widgets/entryeditor/ShowQuickFilterAction.java Sat Feb  7 18:26:27 2009
@@ -38,7 +38,7 @@
 
     /** The Constant SHOW_QUICKFILTER_DIALOGSETTING_KEY. */
     public static final String SHOW_QUICKFILTER_DIALOGSETTING_KEY = ShowQuickFilterAction.class.getName()
-        + ".showQuickFilter";
+        + ".showQuickFilter"; //$NON-NLS-1$
 
     /** The quick filter widget. */
     private EntryEditorWidgetQuickFilterWidget quickFilterWidget;
@@ -51,8 +51,8 @@
      */
     public ShowQuickFilterAction( EntryEditorWidgetQuickFilterWidget quickFilterWidget )
     {
-        super( "Show Quick Filter", AS_CHECK_BOX );
-        setToolTipText( "Show Quick Filter" );
+        super( Messages.getString("ShowQuickFilterAction.ShowQuickFilter"), AS_CHECK_BOX ); //$NON-NLS-1$
+        setToolTipText( Messages.getString("ShowQuickFilterAction.ShowQuickFilter") ); //$NON-NLS-1$
         setImageDescriptor( BrowserCommonActivator.getDefault().getImageDescriptor( BrowserCommonConstants.IMG_FILTER ) );
         setActionDefinitionId( IWorkbenchActionDefinitionIds.FIND_REPLACE );
         setEnabled( true );

Added: directory/studio/trunk/ldapbrowser-common/src/main/java/org/apache/directory/studio/ldapbrowser/common/widgets/entryeditor/messages.properties
URL: http://svn.apache.org/viewvc/directory/studio/trunk/ldapbrowser-common/src/main/java/org/apache/directory/studio/ldapbrowser/common/widgets/entryeditor/messages.properties?rev=741930&view=auto
==============================================================================
--- directory/studio/trunk/ldapbrowser-common/src/main/java/org/apache/directory/studio/ldapbrowser/common/widgets/entryeditor/messages.properties (added)
+++ directory/studio/trunk/ldapbrowser-common/src/main/java/org/apache/directory/studio/ldapbrowser/common/widgets/entryeditor/messages.properties Sat Feb  7 18:26:27 2009
@@ -0,0 +1,40 @@
+# 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.
+EditAttributeDescriptionAction.EditAttributeDescription=Edit Attribute Description
+EntryEditorWidgetActionGroup.EditValueWith=Edit Value With
+EntryEditorWidgetActionGroupWithAttribute.Advanced=Advanced
+EntryEditorWidgetContentProvider.DNLabel=DN: 
+EntryEditorWidgetContentProvider.NoEntrySelected=No entry selected
+EntryEditorWidgetLabelProvider.AttributeLabel={0} ({1} values)
+EntryEditorWidgetQuickFilterWidget.ClearQuickFilter=Clear Quick Filter
+EntryEditorWidgetSorterDialog.Ascending=Ascending
+EntryEditorWidgetSorterDialog.AttributeDescription=Attribute Description
+EntryEditorWidgetSorterDialog.Descending=Descending
+EntryEditorWidgetSorterDialog.EntryEditorSorting=Entry Editor Sorting
+EntryEditorWidgetSorterDialog.GroupAttributes=Group attributes
+EntryEditorWidgetSorterDialog.NoDefaultSorting=No Default Sorting
+EntryEditorWidgetSorterDialog.ObjectClassAndMustAttributesFirst=ObjectClass and must attributes first
+EntryEditorWidgetSorterDialog.OperationalAttributesLast=Operational attributes last
+EntryEditorWidgetSorterDialog.SortAttributes=Sort attributes
+EntryEditorWidgetSorterDialog.SortBy=Sort by
+EntryEditorWidgetSorterDialog.SortTableHint=Please click to table headers to sort by attribute description or value.
+EntryEditorWidgetSorterDialog.Value=Value
+EntryEditorWidgetTableMetadata.AttributeDescription=Attribute Description
+EntryEditorWidgetTableMetadata.Value=Value
+OpenDefaultEditorAction.EditValue=Edit Value
+OpenSortDialogAction.Sorting=Sorting...
+ShowQuickFilterAction.ShowQuickFilter=Show Quick Filter

Added: directory/studio/trunk/ldapbrowser-common/src/main/java/org/apache/directory/studio/ldapbrowser/common/widgets/entryeditor/messages_de.properties
URL: http://svn.apache.org/viewvc/directory/studio/trunk/ldapbrowser-common/src/main/java/org/apache/directory/studio/ldapbrowser/common/widgets/entryeditor/messages_de.properties?rev=741930&view=auto
==============================================================================
--- directory/studio/trunk/ldapbrowser-common/src/main/java/org/apache/directory/studio/ldapbrowser/common/widgets/entryeditor/messages_de.properties (added)
+++ directory/studio/trunk/ldapbrowser-common/src/main/java/org/apache/directory/studio/ldapbrowser/common/widgets/entryeditor/messages_de.properties Sat Feb  7 18:26:27 2009
@@ -0,0 +1,40 @@
+# 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.
+EditAttributeDescriptionAction.EditAttributeDescription=Attributbschreibung bearbeiten
+EntryEditorWidgetActionGroup.EditValueWith=Wert bearbeiten mit
+EntryEditorWidgetActionGroupWithAttribute.Advanced=Erweitert
+EntryEditorWidgetContentProvider.DNLabel=DN: 
+EntryEditorWidgetContentProvider.NoEntrySelected=Kein Eintrag ausgewählt
+EntryEditorWidgetLabelProvider.AttributeLabel={0} ({1} Werte)
+EntryEditorWidgetQuickFilterWidget.ClearQuickFilter=Schnell-Filter entfernen
+EntryEditorWidgetSorterDialog.Ascending=Aufsteigend
+EntryEditorWidgetSorterDialog.AttributeDescription=Attributbschreibung
+EntryEditorWidgetSorterDialog.Descending=Absteigend
+EntryEditorWidgetSorterDialog.EntryEditorSorting=Sortierung des Eintrag-Editors
+EntryEditorWidgetSorterDialog.GroupAttributes=Attribute gruppieren
+EntryEditorWidgetSorterDialog.NoDefaultSorting=Keine Sortierung
+EntryEditorWidgetSorterDialog.ObjectClassAndMustAttributesFirst=Objektklassen und Pflichtattribute zuerst
+EntryEditorWidgetSorterDialog.OperationalAttributesLast=Operationale Attribute zuletzt
+EntryEditorWidgetSorterDialog.SortAttributes=Attribute sortieren
+EntryEditorWidgetSorterDialog.SortBy=Sortieren nach
+EntryEditorWidgetSorterDialog.SortTableHint=Bitte zum sortieren auf die Tabellenüberschriften klicken.
+EntryEditorWidgetSorterDialog.Value=Wert
+EntryEditorWidgetTableMetadata.AttributeDescription=Attributbeschreibung
+EntryEditorWidgetTableMetadata.Value=Wert
+OpenDefaultEditorAction.EditValue=Wert bearbeiten
+OpenSortDialogAction.Sorting=Sortierung...
+ShowQuickFilterAction.ShowQuickFilter=Schnell-Filer anzeigen

Added: directory/studio/trunk/ldapbrowser-common/src/main/java/org/apache/directory/studio/ldapbrowser/common/widgets/messages.properties
URL: http://svn.apache.org/viewvc/directory/studio/trunk/ldapbrowser-common/src/main/java/org/apache/directory/studio/ldapbrowser/common/widgets/messages.properties?rev=741930&view=auto
==============================================================================
--- directory/studio/trunk/ldapbrowser-common/src/main/java/org/apache/directory/studio/ldapbrowser/common/widgets/messages.properties (added)
+++ directory/studio/trunk/ldapbrowser-common/src/main/java/org/apache/directory/studio/ldapbrowser/common/widgets/messages.properties Sat Feb  7 18:26:27 2009
@@ -0,0 +1,28 @@
+# 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.
+BinaryEncodingInput.BinaryEncoding=Binary Encoding
+BinaryEncodingInput.Ignore=Ignore
+DnBuilderWidget.DNPreview=DN Preview: 
+DnBuilderWidget.ErrorInParentDN=Error in Parent DN 
+DnBuilderWidget.ErrorInRDN=Error in RDN 
+DnBuilderWidget.Parent=Parent:
+DnBuilderWidget.RDN=RDN:
+DnBuilderWidget.RDNPrevei=RDN Preview: 
+FileBrowserWidget.BrowseButton=Bro&wse...
+FileEncodingInput.FileEncoding=File Encoding
+LineSeparatorInput.LineSeparator=Line Separator
+OptionsInput.Other=Other: 

Added: directory/studio/trunk/ldapbrowser-common/src/main/java/org/apache/directory/studio/ldapbrowser/common/widgets/messages_de.properties
URL: http://svn.apache.org/viewvc/directory/studio/trunk/ldapbrowser-common/src/main/java/org/apache/directory/studio/ldapbrowser/common/widgets/messages_de.properties?rev=741930&view=auto
==============================================================================
--- directory/studio/trunk/ldapbrowser-common/src/main/java/org/apache/directory/studio/ldapbrowser/common/widgets/messages_de.properties (added)
+++ directory/studio/trunk/ldapbrowser-common/src/main/java/org/apache/directory/studio/ldapbrowser/common/widgets/messages_de.properties Sat Feb  7 18:26:27 2009
@@ -0,0 +1,28 @@
+# 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.
+BinaryEncodingInput.BinaryEncoding=Binäre Codierung
+BinaryEncodingInput.Ignore=Ignorieren
+DnBuilderWidget.DNPreview=DN Vorschau: 
+DnBuilderWidget.ErrorInParentDN=Fehler im Eltern-DN 
+DnBuilderWidget.ErrorInRDN=Fehler im RDN 
+DnBuilderWidget.Parent=Eltern-DN:
+DnBuilderWidget.RDN=RDN:
+DnBuilderWidget.RDNPrevei=RDN Vorschau: 
+FileBrowserWidget.BrowseButton=Bro&wsen...
+FileEncodingInput.FileEncoding=Datei Codierung
+LineSeparatorInput.LineSeparator=Zeilenumbruch
+OptionsInput.Other=Andere: 

Modified: directory/studio/trunk/ldapbrowser-common/src/main/java/org/apache/directory/studio/ldapbrowser/common/widgets/search/AliasesDereferencingWidget.java
URL: http://svn.apache.org/viewvc/directory/studio/trunk/ldapbrowser-common/src/main/java/org/apache/directory/studio/ldapbrowser/common/widgets/search/AliasesDereferencingWidget.java?rev=741930&r1=741929&r2=741930&view=diff
==============================================================================
--- directory/studio/trunk/ldapbrowser-common/src/main/java/org/apache/directory/studio/ldapbrowser/common/widgets/search/AliasesDereferencingWidget.java (original)
+++ directory/studio/trunk/ldapbrowser-common/src/main/java/org/apache/directory/studio/ldapbrowser/common/widgets/search/AliasesDereferencingWidget.java Sat Feb  7 18:26:27 2009
@@ -85,10 +85,10 @@
     public void createWidget( Composite parent )
     {
 
-        group = BaseWidgetUtils.createGroup( parent, "Aliases Dereferencing", 1 );
+        group = BaseWidgetUtils.createGroup( parent, Messages.getString("AliasesDereferencingWidget.AliasesDereferencing"), 1 ); //$NON-NLS-1$
         Composite groupComposite = BaseWidgetUtils.createColumnContainer( group, 1, 1 );
 
-        findingButton = BaseWidgetUtils.createCheckbox( groupComposite, "Finding Base DN", 1 );
+        findingButton = BaseWidgetUtils.createCheckbox( groupComposite, Messages.getString("AliasesDereferencingWidget.FindingBaseDN"), 1 ); //$NON-NLS-1$
         findingButton.addSelectionListener( new SelectionAdapter()
         {
             public void widgetSelected( SelectionEvent e )
@@ -97,7 +97,7 @@
             }
         } );
 
-        searchButton = BaseWidgetUtils.createCheckbox( groupComposite, "Search", 1 );
+        searchButton = BaseWidgetUtils.createCheckbox( groupComposite, Messages.getString("AliasesDereferencingWidget.Search"), 1 ); //$NON-NLS-1$
         searchButton.addSelectionListener( new SelectionAdapter()
         {
             public void widgetSelected( SelectionEvent e )

Modified: directory/studio/trunk/ldapbrowser-common/src/main/java/org/apache/directory/studio/ldapbrowser/common/widgets/search/BrowserConnectionWidget.java
URL: http://svn.apache.org/viewvc/directory/studio/trunk/ldapbrowser-common/src/main/java/org/apache/directory/studio/ldapbrowser/common/widgets/search/BrowserConnectionWidget.java?rev=741930&r1=741929&r2=741930&view=diff
==============================================================================
--- directory/studio/trunk/ldapbrowser-common/src/main/java/org/apache/directory/studio/ldapbrowser/common/widgets/search/BrowserConnectionWidget.java (original)
+++ directory/studio/trunk/ldapbrowser-common/src/main/java/org/apache/directory/studio/ldapbrowser/common/widgets/search/BrowserConnectionWidget.java Sat Feb  7 18:26:27 2009
@@ -81,16 +81,16 @@
     public void createWidget( final Composite parent )
     {
         // Text
-        browserConnectionText = BaseWidgetUtils.createReadonlyText( parent, "", 1 );
+        browserConnectionText = BaseWidgetUtils.createReadonlyText( parent, "", 1 ); //$NON-NLS-1$
 
         // Button
-        connectionBrowseButton = BaseWidgetUtils.createButton( parent, "B&rowse...", 1 );
+        connectionBrowseButton = BaseWidgetUtils.createButton( parent, Messages.getString("BrowserConnectionWidget.BrowseButton"), 1 ); //$NON-NLS-1$
         connectionBrowseButton.addSelectionListener( new SelectionAdapter()
         {
             public void widgetSelected( SelectionEvent e )
             {
                 SelectBrowserConnectionDialog dialog = new SelectBrowserConnectionDialog( parent.getShell(),
-                    "Select Connection", selectedBrowserConnection );
+                    Messages.getString("BrowserConnectionWidget.SelectConnection"), selectedBrowserConnection ); //$NON-NLS-1$
                 dialog.open();
                 IBrowserConnection browserConnection = dialog.getSelectedBrowserConnection();
                 if ( browserConnection != null )
@@ -127,7 +127,7 @@
         selectedBrowserConnection = connection;
         browserConnectionText.setText( selectedBrowserConnection != null
             && selectedBrowserConnection.getConnection() != null ? selectedBrowserConnection.getConnection().getName()
-            : "" );
+            : "" ); //$NON-NLS-1$
     }
 
 

Modified: directory/studio/trunk/ldapbrowser-common/src/main/java/org/apache/directory/studio/ldapbrowser/common/widgets/search/EntryWidget.java
URL: http://svn.apache.org/viewvc/directory/studio/trunk/ldapbrowser-common/src/main/java/org/apache/directory/studio/ldapbrowser/common/widgets/search/EntryWidget.java?rev=741930&r1=741929&r2=741930&view=diff
==============================================================================
--- directory/studio/trunk/ldapbrowser-common/src/main/java/org/apache/directory/studio/ldapbrowser/common/widgets/search/EntryWidget.java (original)
+++ directory/studio/trunk/ldapbrowser-common/src/main/java/org/apache/directory/studio/ldapbrowser/common/widgets/search/EntryWidget.java Sat Feb  7 18:26:27 2009
@@ -157,7 +157,7 @@
 
         // Up button
         upButton = new Button( textAndUpComposite, SWT.PUSH );
-        upButton.setToolTipText( "Parent" );
+        upButton.setToolTipText( Messages.getString("EntryWidget.Parent") ); //$NON-NLS-1$
         upButton.setImage( BrowserCommonActivator.getDefault().getImage( BrowserCommonConstants.IMG_PARENT ) );
         upButton.setEnabled( false );
         upButton.addSelectionListener( new SelectionAdapter()
@@ -175,7 +175,7 @@
         } );
 
         // Browse button
-        entryBrowseButton = BaseWidgetUtils.createButton( parent, "Br&owse...", 1 );
+        entryBrowseButton = BaseWidgetUtils.createButton( parent, Messages.getString("EntryWidget.BrowseButton"), 1 ); //$NON-NLS-1$
         entryBrowseButton.addSelectionListener( new SelectionAdapter()
         {
             public void widgetSelected( SelectionEvent e )
@@ -219,7 +219,7 @@
                     }
 
                     // open dialog
-                    SelectEntryDialog dialog = new SelectEntryDialog( parent.getShell(), "Select DN", rootEntry, entry );
+                    SelectEntryDialog dialog = new SelectEntryDialog( parent.getShell(), Messages.getString("EntryWidget.SelectDN"), rootEntry, entry ); //$NON-NLS-1$
                     dialog.open();
                     IEntry selectedEntry = dialog.getSelectedEntry();
 
@@ -251,7 +251,7 @@
     {
         if ( dnCombo != null && entryBrowseButton != null )
         {
-            dnCombo.setText( dn != null ? dn.getUpName() : "" );
+            dnCombo.setText( dn != null ? dn.getUpName() : "" ); //$NON-NLS-1$
         }
     }
 

Modified: directory/studio/trunk/ldapbrowser-common/src/main/java/org/apache/directory/studio/ldapbrowser/common/widgets/search/FilterWidget.java
URL: http://svn.apache.org/viewvc/directory/studio/trunk/ldapbrowser-common/src/main/java/org/apache/directory/studio/ldapbrowser/common/widgets/search/FilterWidget.java?rev=741930&r1=741929&r2=741930&view=diff
==============================================================================
--- directory/studio/trunk/ldapbrowser-common/src/main/java/org/apache/directory/studio/ldapbrowser/common/widgets/search/FilterWidget.java (original)
+++ directory/studio/trunk/ldapbrowser-common/src/main/java/org/apache/directory/studio/ldapbrowser/common/widgets/search/FilterWidget.java Sat Feb  7 18:26:27 2009
@@ -149,14 +149,14 @@
         new FilterWidgetAutoEditStrategyAdapter( filterCombo, parser );
 
         // Filter editor button
-        filterEditorButton = BaseWidgetUtils.createButton( parent, "F&ilter Editor...", 1 );
+        filterEditorButton = BaseWidgetUtils.createButton( parent, Messages.getString("FilterWidget.FilterEditorButton"), 1 ); //$NON-NLS-1$
         filterEditorButton.addSelectionListener( new SelectionAdapter()
         {
             public void widgetSelected( SelectionEvent e )
             {
                 if ( browserConnection != null )
                 {
-                    FilterDialog dialog = new FilterDialog( parent.getShell(), "Filter Editor", filterCombo.getText(),
+                    FilterDialog dialog = new FilterDialog( parent.getShell(), Messages.getString("FilterWidget.FilterEditor"), filterCombo.getText(), //$NON-NLS-1$
                         browserConnection );
                     dialog.open();
                     String filter = dialog.getFilter();
@@ -173,7 +173,7 @@
         filterCombo.setItems( history );
 
         // initial values
-        filterCombo.setText( initalFilter == null ? "(objectClass=*)" : initalFilter );
+        filterCombo.setText( initalFilter == null ? "(objectClass=*)" : initalFilter ); //$NON-NLS-1$
     }
 
 

Modified: directory/studio/trunk/ldapbrowser-common/src/main/java/org/apache/directory/studio/ldapbrowser/common/widgets/search/FilterWidgetAutoEditStrategyAdapter.java
URL: http://svn.apache.org/viewvc/directory/studio/trunk/ldapbrowser-common/src/main/java/org/apache/directory/studio/ldapbrowser/common/widgets/search/FilterWidgetAutoEditStrategyAdapter.java?rev=741930&r1=741929&r2=741930&view=diff
==============================================================================
--- directory/studio/trunk/ldapbrowser-common/src/main/java/org/apache/directory/studio/ldapbrowser/common/widgets/search/FilterWidgetAutoEditStrategyAdapter.java (original)
+++ directory/studio/trunk/ldapbrowser-common/src/main/java/org/apache/directory/studio/ldapbrowser/common/widgets/search/FilterWidgetAutoEditStrategyAdapter.java Sat Feb  7 18:26:27 2009
@@ -145,7 +145,7 @@
             Point oldSelection = combo.getSelection();
 
             // compose new text
-            String newText = "";
+            String newText = ""; //$NON-NLS-1$
             newText += oldText.substring( 0, autoEditParameters.offset );
             newText += autoEditParameters.text;
             newText += oldText.substring( autoEditParameters.offset + autoEditParameters.length, oldText.length() );

Modified: directory/studio/trunk/ldapbrowser-common/src/main/java/org/apache/directory/studio/ldapbrowser/common/widgets/search/LimitWidget.java
URL: http://svn.apache.org/viewvc/directory/studio/trunk/ldapbrowser-common/src/main/java/org/apache/directory/studio/ldapbrowser/common/widgets/search/LimitWidget.java?rev=741930&r1=741929&r2=741930&view=diff
==============================================================================
--- directory/studio/trunk/ldapbrowser-common/src/main/java/org/apache/directory/studio/ldapbrowser/common/widgets/search/LimitWidget.java (original)
+++ directory/studio/trunk/ldapbrowser-common/src/main/java/org/apache/directory/studio/ldapbrowser/common/widgets/search/LimitWidget.java Sat Feb  7 18:26:27 2009
@@ -97,24 +97,21 @@
     public void createWidget( Composite parent )
     {
 
-        limitGroup = BaseWidgetUtils.createGroup( parent, "Limits", 1 );
+        limitGroup = BaseWidgetUtils.createGroup( parent, Messages.getString("LimitWidget.Limits"), 1 ); //$NON-NLS-1$
         GridLayout gl = new GridLayout( 2, false );
         limitGroup.setLayout( gl );
 
         // Count limit
-        String countLimitToolTipText = "A size limit that restricts the maximum number of entries to be "
-            + "returned as a result of the search.  A value of zero in this field "
-            + "indicates that no client-requested size limit restrictions are in "
-            + "effect for the search.  Note: Servers may also enforce a maximum number of entries to return.";
-        countLimitLabel = BaseWidgetUtils.createLabel( limitGroup, "&Count Limit:", 1 );
+        String countLimitToolTipText = Messages.getString("LimitWidget.CountLimitTooltip"); //$NON-NLS-1$
+        countLimitLabel = BaseWidgetUtils.createLabel( limitGroup, Messages.getString("LimitWidget.CountLimit"), 1 ); //$NON-NLS-1$
         countLimitLabel.setToolTipText( countLimitToolTipText );
-        countLimitText = BaseWidgetUtils.createText( limitGroup, "", 1 );
+        countLimitText = BaseWidgetUtils.createText( limitGroup, "", 1 ); //$NON-NLS-1$
         countLimitText.setToolTipText( countLimitToolTipText );
         countLimitText.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;
                 }
@@ -129,19 +126,16 @@
         } );
 
         // Time limit
-        String timeLimitToolTipText = "A time limit that restricts the maximum time (in seconds) allowed for "
-            + "a search.  A value of zero in this field indicates that no client-"
-            + "requested time limit restrictions are in effect for the search. "
-            + "Note: Servers may also enforce a maximum time limit for the search.";
-        timeLimitLabel = BaseWidgetUtils.createLabel( limitGroup, "&Time Limit (s):", 1 );
+        String timeLimitToolTipText = Messages.getString("LimitWidget.TimeLimitToolTip"); //$NON-NLS-1$
+        timeLimitLabel = BaseWidgetUtils.createLabel( limitGroup, Messages.getString("LimitWidget.TimeLimit"), 1 ); //$NON-NLS-1$
         timeLimitLabel.setToolTipText( timeLimitToolTipText );
-        timeLimitText = BaseWidgetUtils.createText( limitGroup, "", 1 );
+        timeLimitText = BaseWidgetUtils.createText( limitGroup, "", 1 ); //$NON-NLS-1$
         timeLimitText.setToolTipText( timeLimitToolTipText );
         timeLimitText.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;
                 }

Added: directory/studio/trunk/ldapbrowser-common/src/main/java/org/apache/directory/studio/ldapbrowser/common/widgets/search/Messages.java
URL: http://svn.apache.org/viewvc/directory/studio/trunk/ldapbrowser-common/src/main/java/org/apache/directory/studio/ldapbrowser/common/widgets/search/Messages.java?rev=741930&view=auto
==============================================================================
--- directory/studio/trunk/ldapbrowser-common/src/main/java/org/apache/directory/studio/ldapbrowser/common/widgets/search/Messages.java (added)
+++ directory/studio/trunk/ldapbrowser-common/src/main/java/org/apache/directory/studio/ldapbrowser/common/widgets/search/Messages.java Sat Feb  7 18:26:27 2009
@@ -0,0 +1,50 @@
+/*
+ *  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.ldapbrowser.common.widgets.search;
+
+
+import java.util.MissingResourceException;
+import java.util.ResourceBundle;
+
+
+public class Messages
+{
+    private static final String BUNDLE_NAME = "org.apache.directory.studio.ldapbrowser.common.widgets.search.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/ldapbrowser-common/src/main/java/org/apache/directory/studio/ldapbrowser/common/widgets/search/ReferralsHandlingWidget.java
URL: http://svn.apache.org/viewvc/directory/studio/trunk/ldapbrowser-common/src/main/java/org/apache/directory/studio/ldapbrowser/common/widgets/search/ReferralsHandlingWidget.java?rev=741930&r1=741929&r2=741930&view=diff
==============================================================================
--- directory/studio/trunk/ldapbrowser-common/src/main/java/org/apache/directory/studio/ldapbrowser/common/widgets/search/ReferralsHandlingWidget.java (original)
+++ directory/studio/trunk/ldapbrowser-common/src/main/java/org/apache/directory/studio/ldapbrowser/common/widgets/search/ReferralsHandlingWidget.java Sat Feb  7 18:26:27 2009
@@ -87,10 +87,10 @@
      */
     public void createWidget( Composite parent )
     {
-        group = BaseWidgetUtils.createGroup( parent, "Referrals Handling", 1 );
+        group = BaseWidgetUtils.createGroup( parent, Messages.getString("ReferralsHandlingWidget.ReferralsHandling"), 1 ); //$NON-NLS-1$
         Composite groupComposite = BaseWidgetUtils.createColumnContainer( group, 1, 1 );
         
-        followButton = BaseWidgetUtils.createRadiobutton( groupComposite, "Follow", 1 );
+        followButton = BaseWidgetUtils.createRadiobutton( groupComposite, Messages.getString("ReferralsHandlingWidget.Follow"), 1 ); //$NON-NLS-1$
         followButton.addSelectionListener( new SelectionAdapter()
         {
             public void widgetSelected( SelectionEvent e )
@@ -99,7 +99,7 @@
             }
         } );
 
-        ignoreButton = BaseWidgetUtils.createRadiobutton( groupComposite, "Ignore", 1 );
+        ignoreButton = BaseWidgetUtils.createRadiobutton( groupComposite, Messages.getString("ReferralsHandlingWidget.Ignore"), 1 ); //$NON-NLS-1$
         ignoreButton.addSelectionListener( new SelectionAdapter()
         {
             public void widgetSelected( SelectionEvent e )
@@ -108,7 +108,7 @@
             }
         } );
         
-        manageButton = BaseWidgetUtils.createRadiobutton( groupComposite, "Manage", 1 );
+        manageButton = BaseWidgetUtils.createRadiobutton( groupComposite, Messages.getString("ReferralsHandlingWidget.Manage"), 1 ); //$NON-NLS-1$
         manageButton.addSelectionListener( new SelectionAdapter()
         {
             public void widgetSelected( SelectionEvent e )

Modified: directory/studio/trunk/ldapbrowser-common/src/main/java/org/apache/directory/studio/ldapbrowser/common/widgets/search/ReturningAttributesContentAssistProcessor.java
URL: http://svn.apache.org/viewvc/directory/studio/trunk/ldapbrowser-common/src/main/java/org/apache/directory/studio/ldapbrowser/common/widgets/search/ReturningAttributesContentAssistProcessor.java?rev=741930&r1=741929&r2=741930&view=diff
==============================================================================
--- directory/studio/trunk/ldapbrowser-common/src/main/java/org/apache/directory/studio/ldapbrowser/common/widgets/search/ReturningAttributesContentAssistProcessor.java (original)
+++ directory/studio/trunk/ldapbrowser-common/src/main/java/org/apache/directory/studio/ldapbrowser/common/widgets/search/ReturningAttributesContentAssistProcessor.java Sat Feb  7 18:26:27 2009
@@ -95,29 +95,29 @@
         {
             public int compare( String o1, String o2 )
             {
-                if ( "+".equals( o1 ) && !"+".equals( o2 ) )
+                if ( "+".equals( o1 ) && !"+".equals( o2 ) ) //$NON-NLS-1$ //$NON-NLS-2$
                 {
                     return 4;
                 }
-                if ( "+".equals( o2 ) && !"+".equals( o1 ) )
+                if ( "+".equals( o2 ) && !"+".equals( o1 ) ) //$NON-NLS-1$ //$NON-NLS-2$
                 {
                     return -4;
                 }
 
-                if ( "*".equals( o1 ) && !"*".equals( o2 ) )
+                if ( "*".equals( o1 ) && !"*".equals( o2 ) ) //$NON-NLS-1$ //$NON-NLS-2$
                 {
                     return 3;
                 }
-                if ( "*".equals( o2 ) && !"*".equals( o1 ) )
+                if ( "*".equals( o2 ) && !"*".equals( o1 ) ) //$NON-NLS-1$ //$NON-NLS-2$
                 {
                     return -3;
                 }
 
-                if ( o1.startsWith( "@" ) && !o2.startsWith( "@" ) )
+                if ( o1.startsWith( "@" ) && !o2.startsWith( "@" ) ) //$NON-NLS-1$ //$NON-NLS-2$
                 {
                     return 2;
                 }
-                if ( o2.startsWith( "@" ) && !o1.startsWith( "@" ) )
+                if ( o2.startsWith( "@" ) && !o1.startsWith( "@" ) ) //$NON-NLS-1$ //$NON-NLS-2$
                 {
                     return -2;
                 }
@@ -189,7 +189,7 @@
         {
             if ( string.toUpperCase().startsWith( attribute.toUpperCase() ) )
             {
-                ICompletionProposal proposal = new CompletionProposal( string + ", ", start,
+                ICompletionProposal proposal = new CompletionProposal( string + ", ", start, //$NON-NLS-1$
                     documentOffset - start, string.length() + 2, null, string,
                     null, null );
                 proposalList.add( proposal );

Modified: directory/studio/trunk/ldapbrowser-common/src/main/java/org/apache/directory/studio/ldapbrowser/common/widgets/search/ReturningAttributesWidget.java
URL: http://svn.apache.org/viewvc/directory/studio/trunk/ldapbrowser-common/src/main/java/org/apache/directory/studio/ldapbrowser/common/widgets/search/ReturningAttributesWidget.java?rev=741930&r1=741929&r2=741930&view=diff
==============================================================================
--- directory/studio/trunk/ldapbrowser-common/src/main/java/org/apache/directory/studio/ldapbrowser/common/widgets/search/ReturningAttributesWidget.java (original)
+++ directory/studio/trunk/ldapbrowser-common/src/main/java/org/apache/directory/studio/ldapbrowser/common/widgets/search/ReturningAttributesWidget.java Sat Feb  7 18:26:27 2009
@@ -154,11 +154,11 @@
                 .getObjectClassDescriptions() );
             for ( String ocName : ocNames )
             {
-                proposals.add( "@" + ocName );
+                proposals.add( "@" + ocName ); //$NON-NLS-1$
             }
 
-            proposals.add( "+" );
-            proposals.add( "*" );
+            proposals.add( "+" ); //$NON-NLS-1$
+            proposals.add( "*" ); //$NON-NLS-1$
         }
 
         contentAssistProcessor.setProposals( proposals );

Modified: directory/studio/trunk/ldapbrowser-common/src/main/java/org/apache/directory/studio/ldapbrowser/common/widgets/search/ScopeWidget.java
URL: http://svn.apache.org/viewvc/directory/studio/trunk/ldapbrowser-common/src/main/java/org/apache/directory/studio/ldapbrowser/common/widgets/search/ScopeWidget.java?rev=741930&r1=741929&r2=741930&view=diff
==============================================================================
--- directory/studio/trunk/ldapbrowser-common/src/main/java/org/apache/directory/studio/ldapbrowser/common/widgets/search/ScopeWidget.java (original)
+++ directory/studio/trunk/ldapbrowser-common/src/main/java/org/apache/directory/studio/ldapbrowser/common/widgets/search/ScopeWidget.java Sat Feb  7 18:26:27 2009
@@ -91,13 +91,13 @@
 
         // Scope group
         scopeGroup = new Group( parent, SWT.NONE );
-        scopeGroup.setText( "Scope" );
+        scopeGroup.setText( Messages.getString("ScopeWidget.Scope") ); //$NON-NLS-1$
         scopeGroup.setLayout( new GridLayout( 1, false ) );
         scopeGroup.setLayoutData( new GridData( GridData.FILL_BOTH ) );
 
         // Object radio
         scopeObjectButton = new Button( scopeGroup, SWT.RADIO );
-        scopeObjectButton.setText( "&Object" );
+        scopeObjectButton.setText( Messages.getString("ScopeWidget.Object") ); //$NON-NLS-1$
         scopeObjectButton.addSelectionListener( new SelectionAdapter()
         {
             public void widgetSelected( SelectionEvent e )
@@ -108,7 +108,7 @@
 
         // Onelevel radio
         scopeOnelevelButton = new Button( scopeGroup, SWT.RADIO );
-        scopeOnelevelButton.setText( "One &Level" );
+        scopeOnelevelButton.setText( Messages.getString("ScopeWidget.OneLevel") ); //$NON-NLS-1$
         scopeOnelevelButton.addSelectionListener( new SelectionAdapter()
         {
             public void widgetSelected( SelectionEvent e )
@@ -119,7 +119,7 @@
 
         // subtree button
         scopeSubtreeButton = new Button( scopeGroup, SWT.RADIO );
-        scopeSubtreeButton.setText( "&Subtree" );
+        scopeSubtreeButton.setText( Messages.getString("ScopeWidget.Subtree") ); //$NON-NLS-1$
         scopeSubtreeButton.addSelectionListener( new SelectionAdapter()
         {
             public void widgetSelected( SelectionEvent e )

Modified: directory/studio/trunk/ldapbrowser-common/src/main/java/org/apache/directory/studio/ldapbrowser/common/widgets/search/SearchPageWrapper.java
URL: http://svn.apache.org/viewvc/directory/studio/trunk/ldapbrowser-common/src/main/java/org/apache/directory/studio/ldapbrowser/common/widgets/search/SearchPageWrapper.java?rev=741930&r1=741929&r2=741930&view=diff
==============================================================================
--- directory/studio/trunk/ldapbrowser-common/src/main/java/org/apache/directory/studio/ldapbrowser/common/widgets/search/SearchPageWrapper.java (original)
+++ directory/studio/trunk/ldapbrowser-common/src/main/java/org/apache/directory/studio/ldapbrowser/common/widgets/search/SearchPageWrapper.java Sat Feb  7 18:26:27 2009
@@ -277,14 +277,14 @@
             return;
         }
 
-        searchNameLabel = BaseWidgetUtils.createLabel( composite, "Search Name:", 1 );
+        searchNameLabel = BaseWidgetUtils.createLabel( composite, Messages.getString("SearchPageWrapper.SearchName"), 1 ); //$NON-NLS-1$
         if ( isActive( NAME_READONLY ) )
         {
-            searchNameText = BaseWidgetUtils.createReadonlyText( composite, "", 2 );
+            searchNameText = BaseWidgetUtils.createReadonlyText( composite, "", 2 ); //$NON-NLS-1$
         }
         else
         {
-            searchNameText = BaseWidgetUtils.createText( composite, "", 2 );
+            searchNameText = BaseWidgetUtils.createText( composite, "", 2 ); //$NON-NLS-1$
         }
         searchNameText.addModifyListener( new ModifyListener()
         {
@@ -310,7 +310,7 @@
             return;
         }
 
-        connectionLabel = BaseWidgetUtils.createLabel( composite, "Connection:", 1 );
+        connectionLabel = BaseWidgetUtils.createLabel( composite, Messages.getString("SearchPageWrapper.Connection"), 1 ); //$NON-NLS-1$
         browserConnectionWidget = new BrowserConnectionWidget();
         browserConnectionWidget.createWidget( composite );
         browserConnectionWidget.setEnabled( !isActive( CONNECTION_READONLY ) );
@@ -337,7 +337,7 @@
             return;
         }
 
-        searchBaseLabel = BaseWidgetUtils.createLabel( composite, "Search Base:", 1 );
+        searchBaseLabel = BaseWidgetUtils.createLabel( composite, Messages.getString("SearchPageWrapper.SearchBase"), 1 ); //$NON-NLS-1$
         searchBaseWidget = new EntryWidget();
         searchBaseWidget.createWidget( composite );
         searchBaseWidget.setEnabled( !isActive( SEARCHBASE_READONLY ) );
@@ -364,7 +364,7 @@
             return;
         }
 
-        filterLabel = BaseWidgetUtils.createLabel( composite, "Filter:", 1 );
+        filterLabel = BaseWidgetUtils.createLabel( composite, Messages.getString("SearchPageWrapper.Filter"), 1 ); //$NON-NLS-1$
         filterWidget = new FilterWidget();
         filterWidget.createWidget( composite );
         filterWidget.setEnabled( !isActive( FILTER_READONLY ) );
@@ -391,7 +391,7 @@
             return;
         }
 
-        BaseWidgetUtils.createLabel( composite, "Returning Attributes:", 1 );
+        BaseWidgetUtils.createLabel( composite, Messages.getString("SearchPageWrapper.ReturningAttributes"), 1 ); //$NON-NLS-1$
         Composite retComposite = BaseWidgetUtils.createColumnContainer( composite, 1, 2 );
         returningAttributesWidget = new ReturningAttributesWidget();
         returningAttributesWidget.createWidget( retComposite );
@@ -412,7 +412,7 @@
             Composite buttonComposite = BaseWidgetUtils.createColumnContainer( composite, 3, 1 );
             if ( isActive( RETURN_DN_VISIBLE ) )
             {
-                returnDnButton = BaseWidgetUtils.createCheckbox( buttonComposite, "Export DN", 1 );
+                returnDnButton = BaseWidgetUtils.createCheckbox( buttonComposite, Messages.getString("SearchPageWrapper.ExportDN"), 1 ); //$NON-NLS-1$
                 returnDnButton.addSelectionListener( new SelectionAdapter()
                 {
                     public void widgetSelected( SelectionEvent e )
@@ -424,7 +424,7 @@
             }
             if ( isActive( RETURN_ALLATTRIBUTES_VISIBLE ) )
             {
-                returnAllAttributesButton = BaseWidgetUtils.createCheckbox( buttonComposite, "All user attributes", 1 );
+                returnAllAttributesButton = BaseWidgetUtils.createCheckbox( buttonComposite, Messages.getString("SearchPageWrapper.AllUserAttributes"), 1 ); //$NON-NLS-1$
                 returnAllAttributesButton.addSelectionListener( new SelectionAdapter()
                 {
                     public void widgetSelected( SelectionEvent e )
@@ -437,7 +437,7 @@
             if ( isActive( RETURN_OPERATIONALATTRIBUTES_VISIBLE ) )
             {
                 returnOperationalAttributesButton = BaseWidgetUtils.createCheckbox( buttonComposite,
-                    "Operational attributes", 1 );
+                    Messages.getString("SearchPageWrapper.OperationalAttributes"), 1 ); //$NON-NLS-1$
                 returnOperationalAttributesButton.addSelectionListener( new SelectionAdapter()
                 {
                     public void widgetSelected( SelectionEvent e )
@@ -527,12 +527,12 @@
         }
 
         Composite controlComposite = BaseWidgetUtils.createColumnContainer( composite, 1, 3 );
-        Group controlGroup = BaseWidgetUtils.createGroup( controlComposite, "Controls", 1 );
+        Group controlGroup = BaseWidgetUtils.createGroup( controlComposite, Messages.getString("SearchPageWrapper.Controls"), 1 ); //$NON-NLS-1$
 
         // subentries control
-        subentriesControlButton = BaseWidgetUtils.createCheckbox( controlGroup, "Subentries", 1 );
+        subentriesControlButton = BaseWidgetUtils.createCheckbox( controlGroup, Messages.getString("SearchPageWrapper.Subentries"), 1 ); //$NON-NLS-1$
         subentriesControlButton
-            .setToolTipText( "If enabled only subentries according to RFC 3672 are retrieved, no normal entries." );
+            .setToolTipText( Messages.getString("SearchPageWrapper.SubentriesTooltip") ); //$NON-NLS-1$
         subentriesControlButton.addSelectionListener( new SelectionAdapter()
         {
             public void widgetSelected( SelectionEvent e )
@@ -543,8 +543,8 @@
 
         // simple paged results control
         Composite sprcComposite = BaseWidgetUtils.createColumnContainer( controlGroup, 4, 1 );
-        pagedSearchControlButton = BaseWidgetUtils.createCheckbox( sprcComposite, "Paged Search", 1 );
-        pagedSearchControlButton.setToolTipText( "If enabled simple paged results control is used." );
+        pagedSearchControlButton = BaseWidgetUtils.createCheckbox( sprcComposite, Messages.getString("SearchPageWrapper.PagedSearch"), 1 ); //$NON-NLS-1$
+        pagedSearchControlButton.setToolTipText( Messages.getString("SearchPageWrapper.PagedSearchToolTip") ); //$NON-NLS-1$
         pagedSearchControlButton.addSelectionListener( new SelectionAdapter()
         {
             public void widgetSelected( SelectionEvent e )
@@ -552,13 +552,13 @@
                 validate();
             }
         } );
-        pagedSearchControlSizeLabel = BaseWidgetUtils.createLabel( sprcComposite, " Page Size:", 1 );
-        pagedSearchControlSizeText = BaseWidgetUtils.createText( sprcComposite, "100", 5, 1 );
+        pagedSearchControlSizeLabel = BaseWidgetUtils.createLabel( sprcComposite, Messages.getString("SearchPageWrapper.PageSize"), 1 ); //$NON-NLS-1$
+        pagedSearchControlSizeText = BaseWidgetUtils.createText( sprcComposite, "100", 5, 1 ); //$NON-NLS-1$
         pagedSearchControlSizeText.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;
                 }
@@ -571,11 +571,8 @@
                 validate();
             }
         } );
-        pagedSearchControlScrollButton = BaseWidgetUtils.createCheckbox( sprcComposite, "Scroll Mode", 1 );
-        pagedSearchControlScrollButton.setToolTipText( "If enabled only one page is fetched from the server at once, "
-            + "you could 'scroll' through the pages by using the 'next page' and 'top page' items. "
-            + "If disabled _all_ entries are fetched from the server, the paged result control "
-            + "is only used in background to avoid server-side limits." );
+        pagedSearchControlScrollButton = BaseWidgetUtils.createCheckbox( sprcComposite, Messages.getString("SearchPageWrapper.ScrollMode"), 1 ); //$NON-NLS-1$
+        pagedSearchControlScrollButton.setToolTipText( Messages.getString("SearchPageWrapper.ScrollModeToolTip") ); //$NON-NLS-1$
         pagedSearchControlScrollButton.setSelection( true );
         pagedSearchControlScrollButton.addSelectionListener( new SelectionAdapter()
         {
@@ -692,7 +689,7 @@
                         else if ( c.getOid().equalsIgnoreCase( StudioPagedResultsControl.OID ) )
                         {
                             pagedSearchControlButton.setSelection( true );
-                            pagedSearchControlSizeText.setText( "" + ( ( StudioPagedResultsControl ) c ).getSize() );
+                            pagedSearchControlSizeText.setText( "" + ( ( StudioPagedResultsControl ) c ).getSize() ); //$NON-NLS-1$
                             pagedSearchControlScrollButton.setSelection( ( ( StudioPagedResultsControl ) c )
                                 .isScrollMode() );
                         }
@@ -909,7 +906,7 @@
         {
             return false;
         }
-        if ( searchNameText != null && "".equals( searchNameText.getText() ) )
+        if ( searchNameText != null && "".equals( searchNameText.getText() ) ) //$NON-NLS-1$
         {
             return false;
         }
@@ -918,7 +915,7 @@
             return false;
         }
         if ( pagedSearchControlButton != null && pagedSearchControlButton.isEnabled()
-            && "".equals( pagedSearchControlButton.getText() ) )
+            && "".equals( pagedSearchControlButton.getText() ) ) //$NON-NLS-1$
         {
             return false;
         }
@@ -936,19 +933,19 @@
     {
         if ( browserConnectionWidget != null && browserConnectionWidget.getBrowserConnection() == null )
         {
-            return "Please select a connection.";
+            return Messages.getString("SearchPageWrapper.SelectConnection"); //$NON-NLS-1$
         }
         if ( searchBaseWidget != null && searchBaseWidget.getDn() == null )
         {
-            return "Please enter a valid search base DN.";
+            return Messages.getString("SearchPageWrapper.EnterValidSearchBase"); //$NON-NLS-1$
         }
-        if ( searchNameText != null && "".equals( searchNameText.getText() ) )
+        if ( searchNameText != null && "".equals( searchNameText.getText() ) ) //$NON-NLS-1$
         {
-            return "Please enter a search name.";
+            return Messages.getString("SearchPageWrapper.EnterSearchName"); //$NON-NLS-1$
         }
         if ( filterWidget != null && filterWidget.getFilter() == null )
         {
-            return "Please enter a valid filter.";
+            return Messages.getString("SearchPageWrapper.EnterValidFilter"); //$NON-NLS-1$
         }
 
         return null;

Added: directory/studio/trunk/ldapbrowser-common/src/main/java/org/apache/directory/studio/ldapbrowser/common/widgets/search/messages.properties
URL: http://svn.apache.org/viewvc/directory/studio/trunk/ldapbrowser-common/src/main/java/org/apache/directory/studio/ldapbrowser/common/widgets/search/messages.properties?rev=741930&view=auto
==============================================================================
--- directory/studio/trunk/ldapbrowser-common/src/main/java/org/apache/directory/studio/ldapbrowser/common/widgets/search/messages.properties (added)
+++ directory/studio/trunk/ldapbrowser-common/src/main/java/org/apache/directory/studio/ldapbrowser/common/widgets/search/messages.properties Sat Feb  7 18:26:27 2009
@@ -0,0 +1,59 @@
+# 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.
+AliasesDereferencingWidget.FindingBaseDN=Finding Base DN
+AliasesDereferencingWidget.Search=Search
+AliasesDereferencingWidget.AliasesDereferencing=Aliases Dereferencing
+BrowserConnectionWidget.BrowseButton=B&rowse...
+BrowserConnectionWidget.SelectConnection=Select Connection
+EntryWidget.BrowseButton=Br&owse...
+EntryWidget.Parent=Parent
+EntryWidget.SelectDN=Select DN
+FilterWidget.FilterEditor=Filter Editor
+FilterWidget.FilterEditorButton=F&ilter Editor...
+LimitWidget.CountLimit=&Count Limit:
+LimitWidget.CountLimitTooltip=A size limit that restricts the maximum number of entries to be returned as a result of the search.  A value of zero in this field indicates that no client-requested size limit restrictions are in effect for the search.  Note: Servers may also enforce a maximum number of entries to return.
+LimitWidget.Limits=Limits
+LimitWidget.TimeLimit=&Time Limit (s):
+LimitWidget.TimeLimitToolTip=A time limit that restricts the maximum time (in seconds) allowed for a search.  A value of zero in this field indicates that no client-requested time limit restrictions are in effect for the search. Note: Servers may also enforce a maximum time limit for the search.
+ReferralsHandlingWidget.Follow=Follow Referrals
+ReferralsHandlingWidget.Ignore=Ignore Referrals
+ReferralsHandlingWidget.Manage=Show and Edit Referral Entries
+ReferralsHandlingWidget.ReferralsHandling=Referrals Handling
+ScopeWidget.Object=&Object
+ScopeWidget.OneLevel=One &Level
+ScopeWidget.Scope=Scope
+ScopeWidget.Subtree=&Subtree
+SearchPageWrapper.AllUserAttributes=All user attributes
+SearchPageWrapper.Connection=Connection:
+SearchPageWrapper.Controls=Controls
+SearchPageWrapper.EnterSearchName=Please enter a search name.
+SearchPageWrapper.EnterValidFilter=Please enter a valid filter.
+SearchPageWrapper.EnterValidSearchBase=Please enter a valid search base DN.
+SearchPageWrapper.ExportDN=Export DN
+SearchPageWrapper.Filter=Filter:
+SearchPageWrapper.OperationalAttributes=Operational attributes
+SearchPageWrapper.PagedSearch=Paged Search
+SearchPageWrapper.PagedSearchToolTip=If enabled simple paged results control is used.
+SearchPageWrapper.PageSize=\ Page Size:
+SearchPageWrapper.ReturningAttributes=Returning Attributes:
+SearchPageWrapper.ScrollMode=Scroll Mode
+SearchPageWrapper.ScrollModeToolTip=If enabled only one page is fetched from the server at once, you could 'scroll' through the pages by using the 'next page' and 'top page' items. If disabled _all_ entries are fetched from the server, the paged result control is only used in background to avoid server-side limits.
+SearchPageWrapper.SearchBase=Search Base:
+SearchPageWrapper.SearchName=Search Name:
+SearchPageWrapper.SelectConnection=Please select a connection.
+SearchPageWrapper.Subentries=Subentries
+SearchPageWrapper.SubentriesTooltip=If enabled only subentries according to RFC 3672 are retrieved, no normal entries.

Added: directory/studio/trunk/ldapbrowser-common/src/main/java/org/apache/directory/studio/ldapbrowser/common/widgets/search/messages_de.properties
URL: http://svn.apache.org/viewvc/directory/studio/trunk/ldapbrowser-common/src/main/java/org/apache/directory/studio/ldapbrowser/common/widgets/search/messages_de.properties?rev=741930&view=auto
==============================================================================
--- directory/studio/trunk/ldapbrowser-common/src/main/java/org/apache/directory/studio/ldapbrowser/common/widgets/search/messages_de.properties (added)
+++ directory/studio/trunk/ldapbrowser-common/src/main/java/org/apache/directory/studio/ldapbrowser/common/widgets/search/messages_de.properties Sat Feb  7 18:26:27 2009
@@ -0,0 +1,59 @@
+# 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.
+AliasesDereferencingWidget.FindingBaseDN=Finden des Basis-DN
+AliasesDereferencingWidget.Search=Suchen
+AliasesDereferencingWidget.AliasesDereferencing=Alias Dereferenzierung
+BrowserConnectionWidget.BrowseButton=B&rowsen...
+BrowserConnectionWidget.SelectConnection=Verbindung auswählen
+EntryWidget.BrowseButton=Br&owsen...
+EntryWidget.Parent=Eltern Eintrag
+EntryWidget.SelectDN=DN auswählen
+FilterWidget.FilterEditor=Filter Editor
+FilterWidget.FilterEditorButton=F&ilter Editor...
+LimitWidget.CountLimit=&Max. Anzahl:
+LimitWidget.CountLimitTooltip=Die maximale Anzahl der Einträge, die vom Server zurückgeliefert werden sollen. Der Wert '0' bedeutet keine Beschränkung. Allerdings kann auch eine server-seitiges Beschränkung bestehen.
+LimitWidget.Limits=Limits
+LimitWidget.TimeLimit=&Max. Suchzeit (s):
+LimitWidget.TimeLimitToolTip=Die maximale Zeit (in Sekunden) die für die Suche verwendet werden soll. Der Wert '0' bedeuted keine Beschränkung.
+ReferralsHandlingWidget.Follow=Verweisen folgen
+ReferralsHandlingWidget.Ignore=Verweise ignorieren
+ReferralsHandlingWidget.Manage=Verweis-Einträge bearbeiten
+ReferralsHandlingWidget.ReferralsHandling=Verweisbehandlung
+ScopeWidget.Object=&Objekt
+ScopeWidget.OneLevel=One &Level
+ScopeWidget.Scope=Scope
+ScopeWidget.Subtree=&Subtree
+SearchPageWrapper.AllUserAttributes=Alle Benutzer Attribute
+SearchPageWrapper.Connection=Verbindung:
+SearchPageWrapper.Controls=Steuerungen
+SearchPageWrapper.EnterSearchName=Bitte Name der Suche eingeben.
+SearchPageWrapper.EnterValidFilter=Bitte gültigen Filter eingeben.
+SearchPageWrapper.EnterValidSearchBase=Bitte gültige Suchbasis eingeben.
+SearchPageWrapper.ExportDN=DN exportieren
+SearchPageWrapper.Filter=Filter:
+SearchPageWrapper.OperationalAttributes=Operationale Attributes
+SearchPageWrapper.PagedSearch=Seitenweise Suche
+SearchPageWrapper.PagedSearchToolTip=Wenn aktiviert, wird eine seitenweise Suche durchgeführt.
+SearchPageWrapper.PageSize=\ Seitengröße:
+SearchPageWrapper.ReturningAttributes=Abgerufene Attribute:
+SearchPageWrapper.ScrollMode=Blättern
+SearchPageWrapper.ScrollModeToolTip=Wenn aktiviert, wird nur eine Seite vom Server abgerufen. Sie können durch die einzelnen Seiten Blättern indem Sie auf 'Nächste Seite' bzw. 'Erste Seite' klicken. Wenn deaktiviert, werden alle Einträge vom Server abgerufen. Die seitenwiese Suche wird nur im Hintergrund genutzt, um server-seitige Begrenzungen zu vermeiden.
+SearchPageWrapper.SearchBase=Suchbasis:
+SearchPageWrapper.SearchName=Name der Suche:
+SearchPageWrapper.SelectConnection=Bitte eine Verbindung auswählen.
+SearchPageWrapper.Subentries=Sub-Einträge
+SearchPageWrapper.SubentriesTooltip=Wenn aktiviert werden nur Sub-Einträge nach RFC 3672 abgerufen, keine normalen Einträge.



Mime
View raw message