Revision: 1125
Author: lstreepy
Date: 2006-05-08 06:55:31 -0700 (Mon, 08 May 2006)
ViewCVS: http://svn.sourceforge.net/spring-rich-c/?rev=1125&view=rev
Log Message:
-----------
Fix RCP-193, but keep the changs to a minimum. getDialog() now constructs that
dialog
control if it has not already been created. Also, removed unused imports.
Modified Paths:
--------------
trunk/spring-richclient/support/src/main/java/org/springframework/richclient/dialog/ApplicationDialog.java
Modified:
trunk/spring-richclient/support/src/main/java/org/springframework/richclient/dialog/ApplicationDialog.java
===================================================================
---
trunk/spring-richclient/support/src/main/java/org/springframework/richclient/dialog/ApplicationDialog.java
2006-05-08 13:12:50 UTC (rev 1124)
+++
trunk/spring-richclient/support/src/main/java/org/springframework/richclient/dialog/ApplicationDialog.java
2006-05-08 13:55:31 UTC (rev 1125)
@@ -36,14 +36,11 @@
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
-import org.springframework.binding.validation.Severity;
-import org.springframework.context.MessageSourceResolvable;
import
org.springframework.richclient.application.support.ApplicationServicesAccessor;
import org.springframework.richclient.command.AbstractCommand;
import org.springframework.richclient.command.ActionCommand;
import org.springframework.richclient.command.CommandGroup;
import org.springframework.richclient.core.Guarded;
-import org.springframework.richclient.core.Message;
import org.springframework.richclient.core.TitleConfigurable;
import org.springframework.richclient.util.GuiStandardUtils;
import org.springframework.util.Assert;
@@ -255,6 +252,9 @@
}
public JDialog getDialog() {
+ if (!isControlCreated()) {
+ createDialog();
+ }
return dialog;
}
@@ -270,7 +270,6 @@
public void showDialog() {
if (!isControlCreated()) {
createDialog();
- dialog.pack();
onAboutToShow();
if (getLocation() != null)
dialog.setLocation(getLocation());
@@ -307,6 +306,8 @@
attachListeners();
registerDefaultCommand();
onInitialized();
+
+ dialog.pack();
}
private void constructDialog() {
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