You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@commons.apache.org by di...@apache.org on 2004/09/07 18:29:42 UTC
cvs commit: jakarta-commons/jelly/jelly-tags/jface/src/java/org/apache/commons/jelly/tags/jface/window ApplicationWindowTag.java
dion 2004/09/07 09:29:42
Modified: jelly/jelly-tags/jface/src/java/org/apache/commons/jelly/tags/jface/window
ApplicationWindowTag.java
Log:
Apply Jelly-41.
Revision Changes Path
1.5 +8 -0 jakarta-commons/jelly/jelly-tags/jface/src/java/org/apache/commons/jelly/tags/jface/window/ApplicationWindowTag.java
Index: ApplicationWindowTag.java
===================================================================
RCS file: /home/cvs/jakarta-commons/jelly/jelly-tags/jface/src/java/org/apache/commons/jelly/tags/jface/window/ApplicationWindowTag.java,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -r1.4 -r1.5
--- ApplicationWindowTag.java 25 Feb 2004 01:32:00 -0000 1.4
+++ ApplicationWindowTag.java 7 Sep 2004 16:29:42 -0000 1.5
@@ -21,8 +21,10 @@
import org.apache.commons.jelly.MissingAttributeException;
import org.apache.commons.jelly.XMLOutput;
import org.apache.commons.jelly.tags.core.UseBeanTag;
+import org.apache.commons.jelly.tags.swt.converters.PointConverter;
import org.eclipse.jface.window.Window;
import org.eclipse.swt.SWT;
+import org.eclipse.swt.graphics.Point;
import org.eclipse.swt.widgets.Shell;
/**
@@ -69,6 +71,12 @@
getWindow().getShell().setText((String)title);
}
+ // set size of applicationWindow
+ Object size = attributes.remove("size");
+ if (size != null) {
+ Point point = new PointConverter().parse((String) size);
+ getWindow().getShell().setSize(point);
+ }
}
/*
---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org