directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From pamarce...@apache.org
Subject svn commit: r809648 - in /directory/studio/trunk/ldapbrowser-ui: ./ src/main/java/org/apache/directory/studio/entryeditors/ src/main/java/org/apache/directory/studio/ldapbrowser/ui/ src/main/java/org/apache/directory/studio/ldapbrowser/ui/dialogs/prefe...
Date Mon, 31 Aug 2009 16:19:00 GMT
Author: pamarcelot
Date: Mon Aug 31 16:18:59 2009
New Revision: 809648

URL: http://svn.apache.org/viewvc?rev=809648&view=rev
Log:
DIRSTUDIO-516:
o Preference page is finished.

Modified:
    directory/studio/trunk/ldapbrowser-ui/plugin_fr.properties
    directory/studio/trunk/ldapbrowser-ui/src/main/java/org/apache/directory/studio/entryeditors/EntryEditorManager.java
    directory/studio/trunk/ldapbrowser-ui/src/main/java/org/apache/directory/studio/ldapbrowser/ui/BrowserUIConstants.java
    directory/studio/trunk/ldapbrowser-ui/src/main/java/org/apache/directory/studio/ldapbrowser/ui/BrowserUIPreferencesInitializer.java
    directory/studio/trunk/ldapbrowser-ui/src/main/java/org/apache/directory/studio/ldapbrowser/ui/dialogs/preferences/EntryEditorsPreferencePage.java
    directory/studio/trunk/ldapbrowser-ui/src/main/java/org/apache/directory/studio/ldapbrowser/ui/dialogs/preferences/messages.properties
    directory/studio/trunk/ldapbrowser-ui/src/main/java/org/apache/directory/studio/ldapbrowser/ui/dialogs/preferences/messages_de.properties
    directory/studio/trunk/ldapbrowser-ui/src/main/java/org/apache/directory/studio/ldapbrowser/ui/dialogs/preferences/messages_fr.properties

Modified: directory/studio/trunk/ldapbrowser-ui/plugin_fr.properties
URL: http://svn.apache.org/viewvc/directory/studio/trunk/ldapbrowser-ui/plugin_fr.properties?rev=809648&r1=809647&r2=809648&view=diff
==============================================================================
--- directory/studio/trunk/ldapbrowser-ui/plugin_fr.properties (original)
+++ directory/studio/trunk/ldapbrowser-ui/plugin_fr.properties Mon Aug 31 16:18:59 2009
@@ -55,7 +55,7 @@
 PrefPage_SearchResultEditorPreferencePage_name=Editeur de recherche
 PrefPage_ModificationLogsPreferencePage_name=Logs de modification
 PrefPage_SearchLogsPreferencePage_name=Logs de recherche
-PrefPage_EntryEditorsPreferencePage_name=Editeur d'entr\u00E9e
+PrefPage_EntryEditorsPreferencePage_name=Editeurs d'entr\u00E9e
 
 PropPage_Schema_name=Sch\u00E9ma
 PropPage_RootDSE_name=Root DSE

Modified: directory/studio/trunk/ldapbrowser-ui/src/main/java/org/apache/directory/studio/entryeditors/EntryEditorManager.java
URL: http://svn.apache.org/viewvc/directory/studio/trunk/ldapbrowser-ui/src/main/java/org/apache/directory/studio/entryeditors/EntryEditorManager.java?rev=809648&r1=809647&r2=809648&view=diff
==============================================================================
--- directory/studio/trunk/ldapbrowser-ui/src/main/java/org/apache/directory/studio/entryeditors/EntryEditorManager.java
(original)
+++ directory/studio/trunk/ldapbrowser-ui/src/main/java/org/apache/directory/studio/entryeditors/EntryEditorManager.java
Mon Aug 31 16:18:59 2009
@@ -28,7 +28,6 @@
 import java.util.List;
 import java.util.Map;
 
-import org.apache.directory.studio.connection.core.ConnectionCorePlugin;
 import org.apache.directory.studio.ldapbrowser.ui.BrowserUIConstants;
 import org.apache.directory.studio.ldapbrowser.ui.BrowserUIPlugin;
 import org.eclipse.core.runtime.IConfigurationElement;
@@ -177,7 +176,7 @@
      */
     public Collection<EntryEditorExtension> getSortedEntryEditorExtensions()
     {
-        boolean useUserPriority = ConnectionCorePlugin.getDefault().getPluginPreferences().getBoolean(
+        boolean useUserPriority = BrowserUIPlugin.getDefault().getPluginPreferences().getBoolean(
             BrowserUIConstants.PREFERENCE_ENTRYEDITORS_USE_USER_PRIORITIES );
 
         if ( useUserPriority )
@@ -236,7 +235,7 @@
             entryEditorExtensions.size() );
 
         // Getting the user's priorities
-        String userPriorities = ConnectionCorePlugin.getDefault().getPluginPreferences().getString(
+        String userPriorities = BrowserUIPlugin.getDefault().getPluginPreferences().getString(
             BrowserUIConstants.PREFERENCE_ENTRYEDITORS_USER_PRIORITIES );
         if ( ( userPriorities != null ) && ( !"".equals( userPriorities ) ) )
         {

Modified: directory/studio/trunk/ldapbrowser-ui/src/main/java/org/apache/directory/studio/ldapbrowser/ui/BrowserUIConstants.java
URL: http://svn.apache.org/viewvc/directory/studio/trunk/ldapbrowser-ui/src/main/java/org/apache/directory/studio/ldapbrowser/ui/BrowserUIConstants.java?rev=809648&r1=809647&r2=809648&view=diff
==============================================================================
--- directory/studio/trunk/ldapbrowser-ui/src/main/java/org/apache/directory/studio/ldapbrowser/ui/BrowserUIConstants.java
(original)
+++ directory/studio/trunk/ldapbrowser-ui/src/main/java/org/apache/directory/studio/ldapbrowser/ui/BrowserUIConstants.java
Mon Aug 31 16:18:59 2009
@@ -50,7 +50,7 @@
     public static final String PREFERENCEPAGEID_ENTRYEDITOR = BrowserUIPlugin.getDefault().getPluginProperties()
         .getString( "PrefPage_EntryEditorPreferencePage_id" ); //$NON-NLS-1$
     public static final String PREFERENCEPAGEID_ENTRYEDITORS = BrowserUIPlugin.getDefault().getPluginProperties()
-    .getString( "PrefPage_EntryEditorsPreferencePage_id" ); //$NON-NLS-1$
+        .getString( "PrefPage_EntryEditorsPreferencePage_id" ); //$NON-NLS-1$
     public static final String PREFERENCEPAGEID_SEARCHRESULTEDITOR = BrowserUIPlugin.getDefault().getPluginProperties()
         .getString( "PrefPage_SearchResultEditorPreferencePage_id" ); //$NON-NLS-1$
     public static final String PREFERENCEPAGEID_MODIFICATIONLOGS = BrowserUIPlugin.getDefault().getPluginProperties()
@@ -66,6 +66,11 @@
     /** The constant used to identify the "user user priorities" preference  */
     public static final String PREFERENCE_ENTRYEDITORS_USER_PRIORITIES = "userPriorities";
//$NON-NLS-1$
 
+    /** The constant used to identify the "open mode" preference  */
+    public static final String PREFERENCE_ENTRYEDITORS_OPEN_MODE = "openMode"; //$NON-NLS-1$
+    public static final int PREFERENCE_ENTRYEDITORS_OPEN_MODE_HISTORICAL_BEHAVIOR = 0; //$NON-NLS-1$
+    public static final int PREFERENCE_ENTRYEDITORS_OPEN_MODE_APPLICATION_WIDE = 1; //$NON-NLS-1$
+
     public static final String IMG_LINK_WITH_EDITOR = "resources/icons/link_with_editor.gif";
//$NON-NLS-1$
     public static final String IMG_BATCH = "resources/icons/batch.gif"; //$NON-NLS-1$
     public static final String IMG_IMPORT = "resources/icons/import.gif"; //$NON-NLS-1$

Modified: directory/studio/trunk/ldapbrowser-ui/src/main/java/org/apache/directory/studio/ldapbrowser/ui/BrowserUIPreferencesInitializer.java
URL: http://svn.apache.org/viewvc/directory/studio/trunk/ldapbrowser-ui/src/main/java/org/apache/directory/studio/ldapbrowser/ui/BrowserUIPreferencesInitializer.java?rev=809648&r1=809647&r2=809648&view=diff
==============================================================================
--- directory/studio/trunk/ldapbrowser-ui/src/main/java/org/apache/directory/studio/ldapbrowser/ui/BrowserUIPreferencesInitializer.java
(original)
+++ directory/studio/trunk/ldapbrowser-ui/src/main/java/org/apache/directory/studio/ldapbrowser/ui/BrowserUIPreferencesInitializer.java
Mon Aug 31 16:18:59 2009
@@ -50,6 +50,8 @@
         // Entry Editors
         store.setDefault( BrowserUIConstants.PREFERENCE_ENTRYEDITORS_USE_USER_PRIORITIES,
false );
         store.setDefault( BrowserUIConstants.PREFERENCE_ENTRYEDITORS_USER_PRIORITIES, ""
);
+        store.setDefault( BrowserUIConstants.PREFERENCE_ENTRYEDITORS_OPEN_MODE,
+            BrowserUIConstants.PREFERENCE_ENTRYEDITORS_OPEN_MODE_HISTORICAL_BEHAVIOR );
     }
 
 }

Modified: directory/studio/trunk/ldapbrowser-ui/src/main/java/org/apache/directory/studio/ldapbrowser/ui/dialogs/preferences/EntryEditorsPreferencePage.java
URL: http://svn.apache.org/viewvc/directory/studio/trunk/ldapbrowser-ui/src/main/java/org/apache/directory/studio/ldapbrowser/ui/dialogs/preferences/EntryEditorsPreferencePage.java?rev=809648&r1=809647&r2=809648&view=diff
==============================================================================
--- directory/studio/trunk/ldapbrowser-ui/src/main/java/org/apache/directory/studio/ldapbrowser/ui/dialogs/preferences/EntryEditorsPreferencePage.java
(original)
+++ directory/studio/trunk/ldapbrowser-ui/src/main/java/org/apache/directory/studio/ldapbrowser/ui/dialogs/preferences/EntryEditorsPreferencePage.java
Mon Aug 31 16:18:59 2009
@@ -23,7 +23,6 @@
 import java.util.ArrayList;
 import java.util.List;
 
-import org.apache.directory.studio.connection.core.ConnectionCorePlugin;
 import org.apache.directory.studio.connection.ui.widgets.BaseWidgetUtils;
 import org.apache.directory.studio.entryeditors.EntryEditorExtension;
 import org.apache.directory.studio.entryeditors.EntryEditorManager;
@@ -45,9 +44,12 @@
 import org.eclipse.swt.widgets.Button;
 import org.eclipse.swt.widgets.Composite;
 import org.eclipse.swt.widgets.Control;
+import org.eclipse.swt.widgets.Group;
+import org.eclipse.swt.widgets.Link;
 import org.eclipse.swt.widgets.Text;
 import org.eclipse.ui.IWorkbench;
 import org.eclipse.ui.IWorkbenchPreferencePage;
+import org.eclipse.ui.dialogs.PreferencesUtil;
 
 
 /**
@@ -59,17 +61,22 @@
  */
 public class EntryEditorsPreferencePage extends PreferencePage implements IWorkbenchPreferencePage
 {
-
     /** A flag indicating whether or not to use the user's priority for entry editors */
     private boolean useUserPriority = false;
 
+    /** The open mode setting value */
+    private int openMode = 0;
+
     /** The ordered list of entry editors */
     private List<EntryEditorExtension> sortedEntryEditorsList;
 
     // UI fields
+    private Button historicalBehaviorButton;
+    private Button useApplicationWideOpenModeButton;
     private TableViewer entryEditorsTableViewer;
-    private Button upButton;
-    private Button downButton;
+    private Button upEntryEditorButton;
+    private Button downEntryEditorButton;
+    private Button restoreDefaultsEntryEditorsButton;
 
 
     /**
@@ -77,9 +84,9 @@
      */
     public EntryEditorsPreferencePage()
     {
-        super( "Entry Editors" );
+        super( Messages.getString("EntryEditorsPreferencePage.EntryEditorsPrefPageTitle")
); //$NON-NLS-1$
         super.setPreferenceStore( BrowserUIPlugin.getDefault().getPreferenceStore() );
-        super.setDescription( "Description" );
+        super.setDescription( Messages.getString("EntryEditorsPreferencePage.EntryEditorsPrefPageDescription")
); //$NON-NLS-1$
     }
 
 
@@ -88,7 +95,10 @@
      */
     public void init( IWorkbench workbench )
     {
-        useUserPriority = ConnectionCorePlugin.getDefault().getPluginPreferences().getBoolean(
+        openMode = BrowserUIPlugin.getDefault().getPluginPreferences().getInt(
+            BrowserUIConstants.PREFERENCE_ENTRYEDITORS_OPEN_MODE );
+
+        useUserPriority = BrowserUIPlugin.getDefault().getPluginPreferences().getBoolean(
             BrowserUIConstants.PREFERENCE_ENTRYEDITORS_USE_USER_PRIORITIES );
     }
 
@@ -102,11 +112,55 @@
         composite.setLayout( new GridLayout() );
         composite.setLayoutData( new GridData( SWT.FILL, SWT.FILL, true, true ) );
 
-        // Entry Editors Label
-        BaseWidgetUtils.createLabel( composite, "Entry Editors:", 1 );
+        // Open Mode Group
+        Group openModeGroup = BaseWidgetUtils.createGroup( composite, Messages.getString("EntryEditorsPreferencePage.OpenMode"),
1 ); //$NON-NLS-1$
+        openModeGroup.setLayoutData( new GridData( SWT.FILL, SWT.NONE, true, false ) );
+
+        // Historical Behavior Button
+        historicalBehaviorButton = BaseWidgetUtils.createRadiobutton( openModeGroup,
+            Messages.getString("EntryEditorsPreferencePage.HistoricalBehavior"), 1 ); //$NON-NLS-1$
+        Composite historicalBehaviorComposite = BaseWidgetUtils.createColumnContainer( openModeGroup,
2, 1 );
+        BaseWidgetUtils.createRadioIndent( historicalBehaviorComposite, 1 );
+        BaseWidgetUtils.createWrappedLabel( historicalBehaviorComposite,
+            Messages.getString("EntryEditorsPreferencePage.HistoricalBehaviorTooltip"), 1
); //$NON-NLS-1$
+
+        // Use Application Wide Open Mode Button
+        useApplicationWideOpenModeButton = BaseWidgetUtils.createRadiobutton( openModeGroup,
+            Messages.getString("EntryEditorsPreferencePage.ApplicationWideSetting"), 1 );
//$NON-NLS-1$
+        Composite useApplicationWideOpenModeComposite = BaseWidgetUtils.createColumnContainer(
openModeGroup, 2, 1 );
+        BaseWidgetUtils.createRadioIndent( useApplicationWideOpenModeComposite, 1 );
+        Link link = BaseWidgetUtils
+            .createLink(
+                useApplicationWideOpenModeComposite,
+                Messages.getString("EntryEditorsPreferencePage.ApplicationWideSettingTooltip"),
//$NON-NLS-1$
+                1 );
+        link.addSelectionListener( new SelectionAdapter()
+        {
+            public void widgetSelected( SelectionEvent e )
+            {
+                PreferencesUtil.createPreferenceDialogOn( getShell(),
+                    "org.eclipse.ui.preferencePages.Workbench", null, null ); //$NON-NLS-1$
+            }
+        } );
+
+        // Initializing the UI from the preferences value
+        if ( openMode == BrowserUIConstants.PREFERENCE_ENTRYEDITORS_OPEN_MODE_HISTORICAL_BEHAVIOR
)
+        {
+            historicalBehaviorButton.setSelection( true );
+            useApplicationWideOpenModeButton.setSelection( false );
+        }
+        else if ( openMode == BrowserUIConstants.PREFERENCE_ENTRYEDITORS_OPEN_MODE_APPLICATION_WIDE
)
+        {
+            historicalBehaviorButton.setSelection( false );
+            useApplicationWideOpenModeButton.setSelection( true );
+        }
+
+        // Entry Editors Group
+        Group entryEditorsGroup = BaseWidgetUtils.createGroup( composite, Messages.getString("EntryEditorsPreferencePage.EntryEditors"),
1 ); //$NON-NLS-1$
+        openModeGroup.setLayoutData( new GridData( SWT.FILL, SWT.NONE, true, false ) );
 
         // Entry Editors Composite
-        Composite entryEditorsComposite = new Composite( composite, SWT.NONE );
+        Composite entryEditorsComposite = new Composite( entryEditorsGroup, SWT.NONE );
         GridLayout gl = new GridLayout( 2, false );
         gl.marginHeight = gl.marginWidth = 0;
         entryEditorsComposite.setLayout( gl );
@@ -114,7 +168,7 @@
 
         // SchemaConnectors TableViewer
         entryEditorsTableViewer = new TableViewer( entryEditorsComposite, SWT.BORDER | SWT.SINGLE
| SWT.FULL_SELECTION );
-        GridData gridData = new GridData( SWT.FILL, SWT.NONE, true, false, 1, 2 );
+        GridData gridData = new GridData( SWT.FILL, SWT.NONE, true, false, 1, 3 );
         gridData.heightHint = 125;
         entryEditorsTableViewer.getTable().setLayoutData( gridData );
         entryEditorsTableViewer.setContentProvider( new ArrayContentProvider() );
@@ -131,15 +185,14 @@
                 return ( ( EntryEditorExtension ) element ).getIcon().createImage();
             }
         } );
-
         entryEditorsTableViewer.setInput( BrowserUIPlugin.getDefault().getEntryEditorManager()
             .getEntryEditorExtensions() );
 
         // Up Button
-        upButton = BaseWidgetUtils.createButton( entryEditorsComposite, "Up", 1 );
-        upButton.setLayoutData( new GridData( SWT.FILL, SWT.BEGINNING, false, false ) );
-        upButton.setEnabled( false );
-        upButton.addSelectionListener( new SelectionAdapter()
+        upEntryEditorButton = BaseWidgetUtils.createButton( entryEditorsComposite, Messages.getString("EntryEditorsPreferencePage.Up"),
1 ); //$NON-NLS-1$
+        upEntryEditorButton.setLayoutData( new GridData( SWT.FILL, SWT.BEGINNING, false,
false ) );
+        upEntryEditorButton.setEnabled( false );
+        upEntryEditorButton.addSelectionListener( new SelectionAdapter()
         {
             public void widgetSelected( SelectionEvent e )
             {
@@ -148,10 +201,10 @@
         } );
 
         // Down Button
-        downButton = BaseWidgetUtils.createButton( entryEditorsComposite, "Down", 1 );
-        downButton.setLayoutData( new GridData( SWT.FILL, SWT.BEGINNING, false, false ) );
-        downButton.setEnabled( false );
-        downButton.addSelectionListener( new SelectionAdapter()
+        downEntryEditorButton = BaseWidgetUtils.createButton( entryEditorsComposite, Messages.getString("EntryEditorsPreferencePage.Down"),
1 ); //$NON-NLS-1$
+        downEntryEditorButton.setLayoutData( new GridData( SWT.FILL, SWT.BEGINNING, false,
false ) );
+        downEntryEditorButton.setEnabled( false );
+        downEntryEditorButton.addSelectionListener( new SelectionAdapter()
         {
             public void widgetSelected( SelectionEvent e )
             {
@@ -159,16 +212,26 @@
             }
         } );
 
+        // Restore Defaults Button
+        restoreDefaultsEntryEditorsButton = BaseWidgetUtils.createButton( entryEditorsComposite,
Messages.getString("EntryEditorsPreferencePage.RestoreDefaults"), 1 ); //$NON-NLS-1$
+        restoreDefaultsEntryEditorsButton.setLayoutData( new GridData( SWT.FILL, SWT.BEGINNING,
false, false ) );
+        restoreDefaultsEntryEditorsButton.addSelectionListener( new SelectionAdapter()
+        {
+            public void widgetSelected( SelectionEvent e )
+            {
+                performDefaultsEntryEditors();
+            }
+        } );
+
         // Description Label
-        BaseWidgetUtils.createLabel( composite, "Description:", 1 );
+        BaseWidgetUtils.createLabel( entryEditorsGroup, Messages.getString("EntryEditorsPreferencePage.DescriptionColon"),
1 ); //$NON-NLS-1$
 
         // Description Text
-        final Text descriptionText = new Text( composite, SWT.BORDER | SWT.MULTI | SWT.READ_ONLY
);
+        final Text descriptionText = new Text( entryEditorsGroup, SWT.BORDER | SWT.MULTI
| SWT.READ_ONLY );
         descriptionText.setEditable( false );
         gridData = new GridData( SWT.FILL, SWT.NONE, true, false );
         gridData.heightHint = 27;
         descriptionText.setLayoutData( gridData );
-
         entryEditorsTableViewer.addSelectionChangedListener( new ISelectionChangedListener()
         {
             public void selectionChanged( SelectionChangedEvent event )
@@ -289,24 +352,10 @@
         int index = sortedEntryEditorsList.indexOf( entryEditor );
 
         // Updating up button state
-        if ( index > 0 )
-        {
-            upButton.setEnabled( true );
-        }
-        else
-        {
-            upButton.setEnabled( false );
-        }
+        upEntryEditorButton.setEnabled( index > 0 );
 
         // Updating down button state
-        if ( index <= sortedEntryEditorsList.size() - 2 )
-        {
-            downButton.setEnabled( true );
-        }
-        else
-        {
-            downButton.setEnabled( false );
-        }
+        downEntryEditorButton.setEnabled( index <= ( sortedEntryEditorsList.size() - 2
) );
     }
 
 
@@ -343,7 +392,20 @@
      */
     public boolean performOk()
     {
-        ConnectionCorePlugin.getDefault().getPluginPreferences().setValue(
+        if ( historicalBehaviorButton.getSelection() )
+        {
+            BrowserUIPlugin.getDefault().getPluginPreferences().setValue(
+                BrowserUIConstants.PREFERENCE_ENTRYEDITORS_OPEN_MODE,
+                BrowserUIConstants.PREFERENCE_ENTRYEDITORS_OPEN_MODE_HISTORICAL_BEHAVIOR
);
+        }
+        else if ( useApplicationWideOpenModeButton.getSelection() )
+        {
+            BrowserUIPlugin.getDefault().getPluginPreferences().setValue(
+                BrowserUIConstants.PREFERENCE_ENTRYEDITORS_OPEN_MODE,
+                BrowserUIConstants.PREFERENCE_ENTRYEDITORS_OPEN_MODE_APPLICATION_WIDE );
+        }
+
+        BrowserUIPlugin.getDefault().getPluginPreferences().setValue(
             BrowserUIConstants.PREFERENCE_ENTRYEDITORS_USE_USER_PRIORITIES, useUserPriority
);
 
         if ( useUserPriority )
@@ -359,7 +421,7 @@
                 sb.deleteCharAt( sb.length() - 1 );
             }
 
-            ConnectionCorePlugin.getDefault().getPluginPreferences().setValue(
+            BrowserUIPlugin.getDefault().getPluginPreferences().setValue(
                 BrowserUIConstants.PREFERENCE_ENTRYEDITORS_USER_PRIORITIES, sb.toString()
);
         }
 
@@ -372,7 +434,32 @@
      */
     protected void performDefaults()
     {
-        useUserPriority = ConnectionCorePlugin.getDefault().getPluginPreferences().getDefaultBoolean(
+        openMode = BrowserUIPlugin.getDefault().getPluginPreferences().getDefaultInt(
+            BrowserUIConstants.PREFERENCE_ENTRYEDITORS_OPEN_MODE );
+
+        if ( openMode == BrowserUIConstants.PREFERENCE_ENTRYEDITORS_OPEN_MODE_HISTORICAL_BEHAVIOR
)
+        {
+            historicalBehaviorButton.setSelection( true );
+            useApplicationWideOpenModeButton.setSelection( false );
+        }
+        else if ( openMode == BrowserUIConstants.PREFERENCE_ENTRYEDITORS_OPEN_MODE_APPLICATION_WIDE
)
+        {
+            historicalBehaviorButton.setSelection( false );
+            useApplicationWideOpenModeButton.setSelection( true );
+        }
+
+        performDefaultsEntryEditors();
+
+        super.performDefaults();
+    }
+
+
+    /**
+     * Restore defaults to the entry editors part of the UI.
+     */
+    private void performDefaultsEntryEditors()
+    {
+        useUserPriority = BrowserUIPlugin.getDefault().getPluginPreferences().getDefaultBoolean(
             BrowserUIConstants.PREFERENCE_ENTRYEDITORS_USE_USER_PRIORITIES );
 
         if ( useUserPriority )
@@ -385,7 +472,5 @@
         }
 
         updateButtonsState();
-
-        super.performDefaults();
     }
 }
\ No newline at end of file

Modified: directory/studio/trunk/ldapbrowser-ui/src/main/java/org/apache/directory/studio/ldapbrowser/ui/dialogs/preferences/messages.properties
URL: http://svn.apache.org/viewvc/directory/studio/trunk/ldapbrowser-ui/src/main/java/org/apache/directory/studio/ldapbrowser/ui/dialogs/preferences/messages.properties?rev=809648&r1=809647&r2=809648&view=diff
==============================================================================
--- directory/studio/trunk/ldapbrowser-ui/src/main/java/org/apache/directory/studio/ldapbrowser/ui/dialogs/preferences/messages.properties
(original)
+++ directory/studio/trunk/ldapbrowser-ui/src/main/java/org/apache/directory/studio/ldapbrowser/ui/dialogs/preferences/messages.properties
Mon Aug 31 16:18:59 2009
@@ -36,3 +36,15 @@
 SearchResultEditorPreferencePage.DNAsLink=Show DN as link
 SearchResultEditorPreferencePage.GeneralSettings=General settings for the LDAP search result
editor:
 SearchResultEditorPreferencePage.ResultEditor=Search Result Editor
+EntryEditorsPreferencePage.ApplicationWideSetting=Use the application-wide open mode setting
+EntryEditorsPreferencePage.ApplicationWideSettingTooltip=Allows multiple options for opening
editors (ie. single/double click and more). See <a>'General'</a> for the open
mode configuration.
+EntryEditorsPreferencePage.DescriptionColon=Description:
+EntryEditorsPreferencePage.Down=Down
+EntryEditorsPreferencePage.EntryEditors=Entry editors
+EntryEditorsPreferencePage.EntryEditorsPrefPageDescription=General settings for entry editors:
+EntryEditorsPreferencePage.EntryEditorsPrefPageTitle=Entry Editors
+EntryEditorsPreferencePage.HistoricalBehavior=Historical Apache Directory Studio behavior
+EntryEditorsPreferencePage.HistoricalBehaviorTooltip=Editors open on single-click, using
arrow keys triggers the opening of a new editor.
+EntryEditorsPreferencePage.OpenMode=Open mode
+EntryEditorsPreferencePage.RestoreDefaults=Restore Defaults
+EntryEditorsPreferencePage.Up=Up

Modified: directory/studio/trunk/ldapbrowser-ui/src/main/java/org/apache/directory/studio/ldapbrowser/ui/dialogs/preferences/messages_de.properties
URL: http://svn.apache.org/viewvc/directory/studio/trunk/ldapbrowser-ui/src/main/java/org/apache/directory/studio/ldapbrowser/ui/dialogs/preferences/messages_de.properties?rev=809648&r1=809647&r2=809648&view=diff
==============================================================================
--- directory/studio/trunk/ldapbrowser-ui/src/main/java/org/apache/directory/studio/ldapbrowser/ui/dialogs/preferences/messages_de.properties
(original)
+++ directory/studio/trunk/ldapbrowser-ui/src/main/java/org/apache/directory/studio/ldapbrowser/ui/dialogs/preferences/messages_de.properties
Mon Aug 31 16:18:59 2009
@@ -34,3 +34,15 @@
 SearchResultEditorPreferencePage.DNAsLink=Zeige DN als Verweis
 SearchResultEditorPreferencePage.GeneralSettings=Allgemeine Einstellungen f\u00FCr den LDAP
Suchresultate Editor\:
 SearchResultEditorPreferencePage.ResultEditor=Suchresultate Editor
+EntryEditorsPreferencePage.ApplicationWideSetting=TODO:Use the application-wide open mode
setting
+EntryEditorsPreferencePage.ApplicationWideSettingTooltip=TODO:Allows multiple options for
opening editors (ie. single/double click and more). See <a>'General'</a> for the
open mode configuration.
+EntryEditorsPreferencePage.DescriptionColon=TODO:Description:
+EntryEditorsPreferencePage.Down=TODO:Down
+EntryEditorsPreferencePage.EntryEditors=TODO:Entry editors
+EntryEditorsPreferencePage.EntryEditorsPrefPageDescription=TODO:General settings for entry
editors:
+EntryEditorsPreferencePage.EntryEditorsPrefPageTitle=TODO:Entry Editors
+EntryEditorsPreferencePage.HistoricalBehavior=TODO:Historical Apache Directory Studio behavior
+EntryEditorsPreferencePage.HistoricalBehaviorTooltip=TODO:Editors open on single-click, using
arrow keys triggers the opening of a new editor.
+EntryEditorsPreferencePage.OpenMode=TODO:Open mode
+EntryEditorsPreferencePage.RestoreDefaults=TODO:Restore Defaults
+EntryEditorsPreferencePage.Up=TODO:Up

Modified: directory/studio/trunk/ldapbrowser-ui/src/main/java/org/apache/directory/studio/ldapbrowser/ui/dialogs/preferences/messages_fr.properties
URL: http://svn.apache.org/viewvc/directory/studio/trunk/ldapbrowser-ui/src/main/java/org/apache/directory/studio/ldapbrowser/ui/dialogs/preferences/messages_fr.properties?rev=809648&r1=809647&r2=809648&view=diff
==============================================================================
--- directory/studio/trunk/ldapbrowser-ui/src/main/java/org/apache/directory/studio/ldapbrowser/ui/dialogs/preferences/messages_fr.properties
(original)
+++ directory/studio/trunk/ldapbrowser-ui/src/main/java/org/apache/directory/studio/ldapbrowser/ui/dialogs/preferences/messages_fr.properties
Mon Aug 31 16:18:59 2009
@@ -36,3 +36,15 @@
 SearchResultEditorPreferencePage.DNAsLink=Afficher le DN sous forme de lien
 SearchResultEditorPreferencePage.GeneralSettings=R\u00E9glages g\u00E9n\u00E9raux pour l'\u00E9diteur
de r\u00E9sultat de recherche LDAP:
 SearchResultEditorPreferencePage.ResultEditor=Editeur de r\u00E9sultat de recherche
+EntryEditorsPreferencePage.ApplicationWideSetting=Utiliser le réglage global de mode d'ouverture
de l'application
+EntryEditorsPreferencePage.ApplicationWideSettingTooltip=Permet de multiples options pour
l'ouverture des éditeurs (ie. simple/double clic et plus). Voir <a>'Général'</a>
pour la configuration du mode d'ouverture.
+EntryEditorsPreferencePage.DescriptionColon=Description:
+EntryEditorsPreferencePage.Down=Descendre
+EntryEditorsPreferencePage.EntryEditors=Editeurs d'entr\u00E9e
+EntryEditorsPreferencePage.EntryEditorsPrefPageDescription=R\u00E9glages g\u00E9n\u00E9raux
pour les \u00E9diteurs d'entr\u00E9e
+EntryEditorsPreferencePage.EntryEditorsPrefPageTitle=Editeurs d'entr\u00E9e
+EntryEditorsPreferencePage.HistoricalBehavior=Comportement historique d'Apache Directory
Studio
+EntryEditorsPreferencePage.HistoricalBehaviorTooltip=Les éditeurs s'ouvrent par simple clic,
l'utilisation des touches flêchées entraîne l'ouverture d'un nouvel éditeur.
+EntryEditorsPreferencePage.OpenMode=Mode d'ouverture
+EntryEditorsPreferencePage.RestoreDefaults=Valeur par d\u00E9fault
+EntryEditorsPreferencePage.Up=Monter



Mime
View raw message