directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From seelm...@apache.org
Subject svn commit: r779259 - /directory/studio/trunk/valueeditors/src/main/java/org/apache/directory/studio/valueeditors/image/ImageValueEditor.java
Date Wed, 27 May 2009 17:55:49 GMT
Author: seelmann
Date: Wed May 27 17:55:49 2009
New Revision: 779259

URL: http://svn.apache.org/viewvc?rev=779259&view=rev
Log:
Use the right constant

Modified:
    directory/studio/trunk/valueeditors/src/main/java/org/apache/directory/studio/valueeditors/image/ImageValueEditor.java

Modified: directory/studio/trunk/valueeditors/src/main/java/org/apache/directory/studio/valueeditors/image/ImageValueEditor.java
URL: http://svn.apache.org/viewvc/directory/studio/trunk/valueeditors/src/main/java/org/apache/directory/studio/valueeditors/image/ImageValueEditor.java?rev=779259&r1=779258&r2=779259&view=diff
==============================================================================
--- directory/studio/trunk/valueeditors/src/main/java/org/apache/directory/studio/valueeditors/image/ImageValueEditor.java
(original)
+++ directory/studio/trunk/valueeditors/src/main/java/org/apache/directory/studio/valueeditors/image/ImageValueEditor.java
Wed May 27 17:55:49 2009
@@ -21,7 +21,6 @@
 package org.apache.directory.studio.valueeditors.image;
 
 
-import org.apache.directory.studio.ldapbrowser.common.dialogs.TextDialog;
 import org.apache.directory.studio.ldapbrowser.core.model.IValue;
 import org.apache.directory.studio.valueeditors.AbstractDialogBinaryValueEditor;
 import org.eclipse.swt.SWT;
@@ -52,7 +51,7 @@
             byte[] currentImageData = ( byte[] ) value;
 
             ImageDialog dialog = new ImageDialog( shell, currentImageData, SWT.IMAGE_JPEG
);
-            if ( dialog.open() == TextDialog.OK && dialog.getNewImageRawData() !=
null )
+            if ( dialog.open() == ImageDialog.OK && dialog.getNewImageRawData() !=
null )
             {
                 setValue( dialog.getNewImageRawData() );
                 return true;



Mime
View raw message