[Laszlo-dev] For Review: Change 20090413-hqm-a Summary: generate a better name for anonymous subclass of canvas

Henry Minsky henry.minsky at gmail.com
Mon Apr 13 20:29:32 PDT 2009


Change 20090413-hqm-a by hqm at badtzmaru.home on 2009-04-13 22:57:58 EDT
     in /Users/hqm/openlaszlo/trunk5
     for http://svn.openlaszlo.org/openlaszlo/trunk

Summary: generate  a better name for anonymous subclass of canvas

New Features:

Bugs Fixed: LPP-7993

Technical Reviewer: ptw
QA Reviewer: andre.bargull
Doc Reviewer: (pending)

Documentation:

Release Notes:

Details:

+ Use the name "/canvas" as the 'pathname' for a class model whose  
NodeModel has an empty path (down  the child containment
hierarchy from canvas)

The only NodeModel with an empty node path will be an anonymous  
subclass of the
canvas class, every other node will be a child of the canvas, right?


Tests:

compile this with --script

<canvas >
   <handler name="oninit">
     Debug.write('foo');
   </handler>
</canvas>

See that the output .lzs file declares a named subclass of LzCanvas

           dynamic class $lzc$class_$2Fcanvas extends LzCanvas {

Files:
M      WEB-INF/lps/server/src/org/openlaszlo/compiler/ClassModel.java


Changeset: http://svn.openlaszlo.org/openlaszlo/patches/20090413-hqm-a.tar


More information about the Laszlo-dev mailing list