Revision: 1103
Author:   peterdb
Date:     2006-04-27 12:52:22 -0700 (Thu, 27 Apr 2006)
ViewCVS:  http://svn.sourceforge.net/spring-rich-c/?rev=1103&view=rev

Log Message:
-----------
cleanup

Modified Paths:
--------------
    
trunk/spring-richclient/sandbox/src/main/java/org/springframework/richclient/preference/FormBackedPreferencePage.java
    
trunk/spring-richclient/sandbox/src/main/java/org/springframework/richclient/preference/PreferencePage.java
Modified: 
trunk/spring-richclient/sandbox/src/main/java/org/springframework/richclient/preference/FormBackedPreferencePage.java
===================================================================
--- 
trunk/spring-richclient/sandbox/src/main/java/org/springframework/richclient/preference/FormBackedPreferencePage.java
       2006-04-27 19:49:22 UTC (rev 1102)
+++ 
trunk/spring-richclient/sandbox/src/main/java/org/springframework/richclient/preference/FormBackedPreferencePage.java
       2006-04-27 19:52:22 UTC (rev 1103)
@@ -53,10 +53,6 @@
        }
 
        public void setEnabled(boolean enabled) {
-               if (getApplyCommand() != null) {
-                       getApplyCommand().setEnabled(enabled);
-               }
-
                setPageComplete(enabled);
        }
 }
\ No newline at end of file

Modified: 
trunk/spring-richclient/sandbox/src/main/java/org/springframework/richclient/preference/PreferencePage.java
===================================================================
--- 
trunk/spring-richclient/sandbox/src/main/java/org/springframework/richclient/preference/PreferencePage.java
 2006-04-27 19:49:22 UTC (rev 1102)
+++ 
trunk/spring-richclient/sandbox/src/main/java/org/springframework/richclient/preference/PreferencePage.java
 2006-04-27 19:52:22 UTC (rev 1103)
@@ -128,7 +128,11 @@
                preferenceDialog = dialog;
        }
 
-       protected ActionCommand getApplyCommand() {
-               return applyCommand;
+       public void setPageComplete(boolean pageComplete) {
+               if(applyCommand != null) {
+                       applyCommand.setEnabled(pageComplete);
+               }
+               
+               super.setPageComplete(pageComplete);
        }
 }
\ No newline at end of file


This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.



-------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
spring-rich-c-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/spring-rich-c-cvs

Reply via email to