<html><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">Can I understand that these changes are made globally (not just in new/instanceof expressions)?<div>Or do you only ever see them in new/instanceof anyway?</div><div><br></div><div>Yes, it's an easy change to make, the script includes a table for renames.</div><div><br></div><div>- Don</div><div><br><div><div>On Jul 1, 2008, at 11:13 AM, Philip Romanik wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div>Hi Don,<br><br>I'm working on LPP-6570 to deprecate a number of global services like LzModeManager. Will it be easy to modify your script so that these transformations are made to lzx files?<br><br>LzAudio => lz.Audio<br>LzBrowser => lz.Browser<br>LzCursor => lz.Cursor<br>LzFocus => lz.Focus<br>LzGlobalMouse => lz.GlobalMouse<br>LzHistory => lz.History<br>LzIdle => lz.Idle<br>LzInstantiator => lz.Instantiator<br>LzKeys => lz.Keys<br>LzModeManager => lz.ModeManager<br>LzTimer => lz.Timer<br>LzTrack => lz.Track<br><br><br>Thanks!<br><br>Phil<br><br><br><br><blockquote type="cite">Here's the perl script (attached). I tried to upload it to the Runtime_Differences page,<br></blockquote><blockquote type="cite">but it looks like I can only update .gif/.jpeg files. Any advice about where to put it?<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">I think I got all the cases:<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">- if the class name already has lz. , no change<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">- if the class name is a class defined in the input, then add lz. (?) [requires two passes]<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">- if the class name is class for a LFC tagname, convert it to tagname and add lz. (new LzView => lz.view)<br></blockquote><blockquote type="cite"> I coded my list from WEB-INF/lps/server/src/org/openlaszlo/compiler/ClassModel.java<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">- if the class name is a known laszlo class, then add lz.<br></blockquote><blockquote type="cite"> I have a fixed list embedded in the script, generated via find WEB-INF/lps | xargs grep class<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">- new global[*] is converted to new lz[*]<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">- otherwise, no change (this includes Object, Array, ...).<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">Let me know if there are any changes, should be easy to modify.<br></blockquote><blockquote type="cite">Script includes a testcase to try all these situations.<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">- Don<br></blockquote><br></div></blockquote></div><br><div> <span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0; "><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; "><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; "><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; "><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div><br class="Apple-interchange-newline">--</div><div><br>Don Anderson<br>Java/C/C++, Berkeley DB, systems consultant<br><br>voice: 617-547-7881<br>email: <a href="mailto:dda@ddanderson.com">dda@ddanderson.com</a><br>www: <a href="http://www.ddanderson.com/">http://www.ddanderson.com</a><br></div></div></span></span><br class="Apple-interchange-newline"></div></span></div></span><br class="Apple-interchange-newline"> </div><br></div></body></html>