directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From pamarce...@apache.org
Subject svn commit: r1136895 - /directory/studio/trunk/plugins/valueeditors/src/main/java/org/apache/directory/studio/valueeditors/address/AddressValueEditor.java
Date Fri, 17 Jun 2011 14:47:15 GMT
Author: pamarcelot
Date: Fri Jun 17 14:47:15 2011
New Revision: 1136895

URL: http://svn.apache.org/viewvc?rev=1136895&view=rev
Log:
Accessed proper AddressDialog class.

Modified:
    directory/studio/trunk/plugins/valueeditors/src/main/java/org/apache/directory/studio/valueeditors/address/AddressValueEditor.java

Modified: directory/studio/trunk/plugins/valueeditors/src/main/java/org/apache/directory/studio/valueeditors/address/AddressValueEditor.java
URL: http://svn.apache.org/viewvc/directory/studio/trunk/plugins/valueeditors/src/main/java/org/apache/directory/studio/valueeditors/address/AddressValueEditor.java?rev=1136895&r1=1136894&r2=1136895&view=diff
==============================================================================
--- directory/studio/trunk/plugins/valueeditors/src/main/java/org/apache/directory/studio/valueeditors/address/AddressValueEditor.java
(original)
+++ directory/studio/trunk/plugins/valueeditors/src/main/java/org/apache/directory/studio/valueeditors/address/AddressValueEditor.java
Fri Jun 17 14:47:15 2011
@@ -21,7 +21,6 @@
 package org.apache.directory.studio.valueeditors.address;
 
 
-import org.apache.directory.studio.ldapbrowser.common.dialogs.TextDialog;
 import org.apache.directory.studio.ldapbrowser.core.model.IValue;
 import org.apache.directory.studio.valueeditors.AbstractDialogStringValueEditor;
 import org.eclipse.swt.widgets.Shell;
@@ -30,7 +29,7 @@ import org.eclipse.swt.widgets.Shell;
 /**
  * Implementation of IValueEditor for syntax 1.3.6.1.4.1.1466.115.121.1.41 
  * (Postal Address). In the displayed value the $ separators are replaced
- * by commas. In the opened AddressDialog the $ separators are recplaced by 
+ * by commas. In the opened AddressDialog the $ separators are replaced by 
  * line breaks.
  *
  * @author <a href="mailto:dev@directory.apache.org">Apache Directory Project</a>
@@ -49,7 +48,7 @@ public class AddressValueEditor extends 
         if ( value != null && value instanceof String )
         {
             AddressDialog dialog = new AddressDialog( shell, ( String ) value );
-            if ( dialog.open() == TextDialog.OK && !"".equals( dialog.getAddress()
) ) //$NON-NLS-1$
+            if ( dialog.open() == AddressDialog.OK && !"".equals( dialog.getAddress()
) ) //$NON-NLS-1$
             {
                 setValue( dialog.getAddress() );
                 return true;



Mime
View raw message