directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From seelm...@apache.org
Subject svn commit: r821987 - /directory/studio/trunk/ldifeditor/src/main/java/org/apache/directory/studio/ldifeditor/editor/actions/OpenDefaultValueEditorAction.java
Date Mon, 05 Oct 2009 19:50:24 GMT
Author: seelmann
Date: Mon Oct  5 19:50:23 2009
New Revision: 821987

URL: http://svn.apache.org/viewvc?rev=821987&view=rev
Log:
Set action icon + formatting

Modified:
    directory/studio/trunk/ldifeditor/src/main/java/org/apache/directory/studio/ldifeditor/editor/actions/OpenDefaultValueEditorAction.java

Modified: directory/studio/trunk/ldifeditor/src/main/java/org/apache/directory/studio/ldifeditor/editor/actions/OpenDefaultValueEditorAction.java
URL: http://svn.apache.org/viewvc/directory/studio/trunk/ldifeditor/src/main/java/org/apache/directory/studio/ldifeditor/editor/actions/OpenDefaultValueEditorAction.java?rev=821987&r1=821986&r2=821987&view=diff
==============================================================================
--- directory/studio/trunk/ldifeditor/src/main/java/org/apache/directory/studio/ldifeditor/editor/actions/OpenDefaultValueEditorAction.java
(original)
+++ directory/studio/trunk/ldifeditor/src/main/java/org/apache/directory/studio/ldifeditor/editor/actions/OpenDefaultValueEditorAction.java
Mon Oct  5 19:50:23 2009
@@ -33,7 +33,7 @@
 
     public OpenDefaultValueEditorAction( LdifEditor editor, OpenBestValueEditorAction proxy
)
     {
-        super( Messages.getString("OpenDefaultValueEditorAction.EditValue"), editor ); //$NON-NLS-1$
+        super( Messages.getString( "OpenDefaultValueEditorAction.EditValue" ), editor );
//$NON-NLS-1$
         super.setActionDefinitionId( BrowserCommonConstants.ACTION_ID_EDIT_VALUE );
         this.proxy = proxy;
     }
@@ -41,14 +41,15 @@
 
     public void update()
     {
-        this.proxy.update();
-        super.setEnabled( this.proxy.isEnabled() );
+        proxy.update();
+        setEnabled( proxy.isEnabled() );
+        setImageDescriptor( proxy.getImageDescriptor() );
     }
 
 
     protected void doRun()
     {
-        this.proxy.run();
+        proxy.run();
     }
 
 }



Mime
View raw message