directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From seelm...@apache.org
Subject svn commit: r823681 - /directory/studio/trunk/apacheds/src/main/java/org/apache/directory/studio/apacheds/actions/PropertiesAction.java
Date Fri, 09 Oct 2009 20:48:38 GMT
Author: seelmann
Date: Fri Oct  9 20:48:37 2009
New Revision: 823681

URL: http://svn.apache.org/viewvc?rev=823681&view=rev
Log:
Fix for DIRSTUDIO-537 (Error in the title of the Properties window of a server in the Apache
DS plugin)

Modified:
    directory/studio/trunk/apacheds/src/main/java/org/apache/directory/studio/apacheds/actions/PropertiesAction.java

Modified: directory/studio/trunk/apacheds/src/main/java/org/apache/directory/studio/apacheds/actions/PropertiesAction.java
URL: http://svn.apache.org/viewvc/directory/studio/trunk/apacheds/src/main/java/org/apache/directory/studio/apacheds/actions/PropertiesAction.java?rev=823681&r1=823680&r2=823681&view=diff
==============================================================================
--- directory/studio/trunk/apacheds/src/main/java/org/apache/directory/studio/apacheds/actions/PropertiesAction.java
(original)
+++ directory/studio/trunk/apacheds/src/main/java/org/apache/directory/studio/apacheds/actions/PropertiesAction.java
Fri Oct  9 20:48:37 2009
@@ -28,6 +28,7 @@
 import org.eclipse.jface.preference.PreferenceDialog;
 import org.eclipse.jface.viewers.ISelection;
 import org.eclipse.jface.viewers.StructuredSelection;
+import org.eclipse.osgi.util.NLS;
 import org.eclipse.ui.IWorkbenchWindow;
 import org.eclipse.ui.IWorkbenchWindowActionDelegate;
 import org.eclipse.ui.dialogs.PreferencesUtil;
@@ -93,8 +94,8 @@
                 Server server = ( Server ) selection.getFirstElement();
                 PreferenceDialog dialog = PreferencesUtil.createPropertyDialogOn( view.getViewSite().getShell(),
                     server, ApacheDsPluginConstants.PROP_SERVER_PROPERTY_PAGE, null, null
);
-                dialog.getShell().setText(
-                    Messages.getString( "PropertiesAction.PropertiesFor" ) + shorten( server.getName(),
30 ) + "'" ); //$NON-NLS-1$ //$NON-NLS-2$
+                dialog.getShell().setText( NLS.bind( Messages.getString( "PropertiesAction.PropertiesFor"
), //$NON-NLS-1$
+                    shorten( server.getName(), 30 ) ) );
                 dialog.open();
             }
         }



Mime
View raw message