commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From d...@apache.org
Subject cvs commit: jakarta-commons/jelly/jelly-tags/jface/src/java/org/apache/commons/jelly/tags/jface/window ApplicationWindowTag.java
Date Tue, 07 Sep 2004 16:29:42 GMT
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


Mime
View raw message