Revision: 1184
Author:   peterdb
Date:     2006-05-27 13:28:47 -0700 (Sat, 27 May 2006)
ViewCVS:  http://svn.sourceforge.net/spring-rich-c/?rev=1184&view=rev

Log Message:
-----------
fix for RCP-345: apply and restore defaults buttons were created and added 
twice.

Modified Paths:
--------------
    
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/PreferencePage.java
===================================================================
--- 
trunk/spring-richclient/sandbox/src/main/java/org/springframework/richclient/preference/PreferencePage.java
 2006-05-27 13:01:54 UTC (rev 1183)
+++ 
trunk/spring-richclient/sandbox/src/main/java/org/springframework/richclient/preference/PreferencePage.java
 2006-05-27 20:28:47 UTC (rev 1184)
@@ -66,8 +66,6 @@
        protected final JComponent createControl() {
                GridBagLayoutBuilder builder = new GridBagLayoutBuilder();
 
-               // JPanel panel = new JPanel(new BorderLayout());
-
                JComponent buttonPanel = null;
                if (createApplyAndDefaultButtons) {
                        buttonPanel = createButtons();
@@ -75,17 +73,13 @@
 
                JComponent contents = createContents();
                Assert.notNull(contents, "Contents cannot be null.");
-               // panel.add(contents);
                builder.append(contents, 1, 1, true, true);
 
                if (createApplyAndDefaultButtons) {
                        builder.nextLine();
-                       builder.append(createButtons());
-                       // panel.add(createButtons(), BorderLayout.SOUTH);
                        builder.append(buttonPanel);
                }
 
-               // return panel;
                return builder.getPanel();
        }
 


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



-------------------------------------------------------
All the advantages of Linux Managed Hosting--Without the Cost and Risk!
Fully trained technicians. The highest number of Red Hat certifications in
the hosting industry. Fanatical Support. Click to learn more
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=107521&bid=248729&dat=121642
_______________________________________________
spring-rich-c-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/spring-rich-c-cvs

Reply via email to