' + con.sourceObj.name :\n 'Editor for converter function';\n var window = world.addFramedMorph(editor, title)\n window.align(window.bounds().topCenter(), visualConnector.bounds().bottomCenter())\n }],\n ['hide', function() {\n visualConnector.disconnectFromMagnets();\n visualConnector.remove();\n }],\n ['disconnect', function() {\n alertOK('Disconnected ' + visualConnector.con);\n visualConnector.con.visualDisconnect();\n }],\n ['cancel', function() {}],\n ];\n return items;\n }","funcProperties":{"__isSmartRef__":true,"id":107},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"102":{"this":{"__isSmartRef__":true,"id":82},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":103}},"103":{"$super":{"__isSmartRef__":true,"id":104}},"104":{"varMapping":{"__isSmartRef__":true,"id":105},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch(e) {\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":106},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"105":{"obj":{"__isSmartRef__":true,"id":82},"name":"morphMenuItems"},"106":{},"107":{},"108":{"morph":{"__isSmartRef__":true,"id":63},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"109":{"onFire":{"__isSmartRef__":true,"id":110}},"110":{"time":{"__isSmartRef__":true,"id":111},"user":"jenslincke"},"111":{"isSerializedDate":true,"string":"Wed Aug 10 2011 11:40:50 GMT+0200 (CEST)"},"112":{"morph":{"__isSmartRef__":true,"id":63},"__serializedExpressions__":["position"],"connectedControlPoints":[],"__LivelyClassName__":"lively.morphic.RelativeMagnet","__SourceModuleName__":"Global.lively.morphic.Connectors","position":"lively.pt(0.0,0.0)"},"113":{"morph":{"__isSmartRef__":true,"id":63},"__serializedExpressions__":["position"],"connectedControlPoints":[],"__LivelyClassName__":"lively.morphic.RelativeMagnet","__SourceModuleName__":"Global.lively.morphic.Connectors","position":"lively.pt(0.5,0.0)"},"114":{"morph":{"__isSmartRef__":true,"id":63},"__serializedExpressions__":["position"],"connectedControlPoints":[],"__LivelyClassName__":"lively.morphic.RelativeMagnet","__SourceModuleName__":"Global.lively.morphic.Connectors","position":"lively.pt(1.0,0.0)"},"115":{"morph":{"__isSmartRef__":true,"id":63},"__serializedExpressions__":["position"],"connectedControlPoints":[],"__LivelyClassName__":"lively.morphic.RelativeMagnet","__SourceModuleName__":"Global.lively.morphic.Connectors","position":"lively.pt(1.0,0.5)"},"116":{"morph":{"__isSmartRef__":true,"id":63},"__serializedExpressions__":["position"],"connectedControlPoints":[],"__LivelyClassName__":"lively.morphic.RelativeMagnet","__SourceModuleName__":"Global.lively.morphic.Connectors","position":"lively.pt(1.0,1.0)"},"117":{"morph":{"__isSmartRef__":true,"id":63},"__serializedExpressions__":["position"],"connectedControlPoints":[],"__LivelyClassName__":"lively.morphic.RelativeMagnet","__SourceModuleName__":"Global.lively.morphic.Connectors","position":"lively.pt(0.5,1.0)"},"118":{"morph":{"__isSmartRef__":true,"id":63},"__serializedExpressions__":["position"],"connectedControlPoints":[],"__LivelyClassName__":"lively.morphic.RelativeMagnet","__SourceModuleName__":"Global.lively.morphic.Connectors","position":"lively.pt(0.0,1.0)"},"119":{"morph":{"__isSmartRef__":true,"id":63},"__serializedExpressions__":["position"],"connectedControlPoints":[],"__LivelyClassName__":"lively.morphic.RelativeMagnet","__SourceModuleName__":"Global.lively.morphic.Connectors","position":"lively.pt(0.0,0.5)"},"120":{"submorphs":[],"scripts":[],"id":1850,"shape":{"__isSmartRef__":true,"id":121},"__layered_droppingEnabled__":true,"halosEnabled":true,"__serializedExpressions__":["_Position","distanceToDragEvent"],"itemList":[],"selection":{"__isSmartRef__":true,"id":122},"selectedLineNo":6,"showsHalos":false,"name":"WorldList","partsBinMetaInfo":{"__isSmartRef__":true,"id":134},"_ClipMode":"auto","eventHandler":{"__isSmartRef__":true,"id":135},"attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"owner":{"__isSmartRef__":true,"id":16},"_Rotation":0,"_Scale":1,"prevScroll":[0,0],"__LivelyClassName__":"lively.morphic.List","__SourceModuleName__":"Global.lively.morphic.Core","_Position":"lively.pt(20.0,100.0)","distanceToDragEvent":"lively.pt(277.0,-6.0)"},"121":{"__serializedExpressions__":["position","_Extent","_BorderColor","_Fill","_Padding"],"_BorderWidth":0,"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(470.0,280.0)","_BorderColor":"Color.rgb(0,0,0)","_Fill":"Color.rgb(243,243,243)","_Padding":"lively.rect(0,0,0,0)"},"122":{"cleanup":{"__isSmartRef__":true,"id":16},"url":{"__isSmartRef__":true,"id":123},"isLively1World":true,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":124}},"123":{"protocol":"http:","hostname":"lively-kernel.org","pathname":"/repository/webwerkstatt/draft/LivelyPresentation.xhtml","__LivelyClassName__":"URL","__SourceModuleName__":"Global.lively.Network"},"124":{"fetchMetaData":{"__isSmartRef__":true,"id":125},"toString":{"__isSmartRef__":true,"id":128},"extractMetaData":{"__isSmartRef__":true,"id":131}},"125":{"varMapping":{"__isSmartRef__":true,"id":126},"source":"function () {\n var webR = new WebResource(this.url).beAsync();\n connect(webR, 'content', this, 'extractMetaData', { updater: function($upd, content) {\n if (this.sourceObj.status.isDone()) $upd(content)} });\n webR.get();\n }","funcProperties":{"__isSmartRef__":true,"id":127},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"126":{},"127":{},"128":{"varMapping":{"__isSmartRef__":true,"id":129},"source":"function () {\n var string = this.url.relativePathFrom(URL.codeBase);\n if (this.isLively1World) string += ' (Lively1)';\n return string;\n }","funcProperties":{"__isSmartRef__":true,"id":130},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"129":{},"130":{},"131":{"varMapping":{"__isSmartRef__":true,"id":132},"source":"function (worldContent) {\n this.isLively1World = worldContent.indexOf('isNewMorphic: true') === -1;\n this.cleanup.showMetaDataResult(this);\n this.cleanup.progressInc();\n }","funcProperties":{"__isSmartRef__":true,"id":133},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"132":{},"133":{},"134":{"partsSpaceName":"PartsBin/Basic","migrationLevel":2,"partName":"List","comment":"a list morph","__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"135":{"morph":{"__isSmartRef__":true,"id":120},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"136":{"submorphs":[],"scripts":[],"id":3439,"shape":{"__isSmartRef__":true,"id":137},"grabbingEnabled":false,"__layered_droppingEnabled__":false,"halosEnabled":true,"fixedWidth":true,"fixedHeight":false,"allowsInput":true,"_OverflowMode":"visible","_FontFamily":"Arial, sans-serif","registeredForMouseEvents":true,"__serializedExpressions__":["_Position","textColor","_Padding","distanceToDragEvent"],"_MaxTextWidth":710,"_MaxTextHeight":null,"showsHalos":false,"_FontSize":14,"name":"urlText","partsBinMetaInfo":{"__isSmartRef__":true,"id":138},"textChunks":[{"__isSmartRef__":true,"id":139}],"charsReplaced":"","lastFindLoc":59,"priorSelectionRange":[49,54],"prevScroll":[0,0],"eventHandler":{"__isSmartRef__":true,"id":141},"attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"owner":{"__isSmartRef__":true,"id":16},"_Rotation":0,"_Scale":1,"_WhiteSpaceHandling":"pre-wrap","_ClipMode":"visible","__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Position":"lively.pt(26.0,2.0)","textColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(5,5,0,0)","distanceToDragEvent":"lively.pt(292.0,-13.0)"},"137":{"fill":null,"__serializedExpressions__":["_Position","_Extent","_BorderColor","_Padding"],"_BorderWidth":0,"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(710.0,22.0)","_BorderColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(0,0,0,0)"},"138":{"partsSpaceName":"PartsBin/Basic","migrationLevel":4,"comment":"a simple text morph","partName":"Text","__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"139":{"style":{"__isSmartRef__":true,"id":140},"morph":{"__isSmartRef__":true,"id":136},"chunkOwner":{"__isSmartRef__":true,"id":136},"storedString":"http://lively-kernel.org/repository/webwerkstatt/","_id":"_4542","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"140":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"141":{"morph":{"__isSmartRef__":true,"id":136},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"142":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":143},"id":3890,"textChunks":[{"__isSmartRef__":true,"id":144}],"eventHandler":{"__isSmartRef__":true,"id":146},"grabbingEnabled":false,"__layered_droppingEnabled__":false,"halosEnabled":true,"__serializedExpressions__":["_Padding","_Position","distanceToDragEvent"],"_ClipMode":"auto","fixedWidth":true,"_WhiteSpaceHandling":"pre-wrap","fixedHeight":true,"allowInput":true,"_FontFamily":"Monaco,monospace","_FontSize":8,"_MaxTextWidth":726,"_MaxTextHeight":280,"evalEnabled":false,"owner":{"__isSmartRef__":true,"id":16},"layout":{"__isSmartRef__":true,"id":147},"syntaxHighlightingWhileTyping":false,"attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"lastSyntaxHighlightTime":1312975670080,"accessibleInInactiveWindow":true,"priorSelectionRange":[0,0],"showsHalos":false,"_Rotation":0,"_Scale":1,"name":"Log","prevScroll":[0,0],"_WordBreak":"break-all","__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Padding":"lively.rect(4,2,0,0)","_Position":"lively.pt(18.0,400.0)","distanceToDragEvent":"lively.pt(436.0,-4.0)"},"143":{"__serializedExpressions__":["_Position","_Extent","_BorderColor","_Fill","_Padding"],"_BorderWidth":1,"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(726.0,280.0)","_BorderColor":"Color.rgb(95,94,95)","_Fill":"Color.rgb(243,243,243)","_Padding":"lively.rect(0,0,0,0)"},"144":{"style":{"__isSmartRef__":true,"id":145},"chunkOwner":{"__isSmartRef__":true,"id":142},"storedString":"","_id":"_4545","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"145":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"146":{"morph":{"__isSmartRef__":true,"id":142},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"147":{"resizeWidth":true,"resizeHeight":true},"148":{"submorphs":[{"__isSmartRef__":true,"id":149}],"scripts":[],"id":4689,"shape":{"__isSmartRef__":true,"id":154},"grabbingEnabled":false,"__layered_droppingEnabled__":false,"halosEnabled":true,"registeredForMouseEvents":true,"value":false,"toggle":false,"isActive":true,"normalFill":{"__isSmartRef__":true,"id":155},"lighterFill":{"__isSmartRef__":true,"id":160},"label":{"__isSmartRef__":true,"id":149},"name":"ScriptableButton1","showsHalos":false,"partsBinMetaInfo":{"__isSmartRef__":true,"id":165},"attributeConnections":[{"__isSmartRef__":true,"id":166}],"doNotSerialize":["$$fire"],"doNotCopyProperties":["$$fire"],"eventHandler":{"__isSmartRef__":true,"id":189},"scriptAnnotations":{"__isSmartRef__":true,"id":190},"magnets":[{"__isSmartRef__":true,"id":193},{"__isSmartRef__":true,"id":194},{"__isSmartRef__":true,"id":195},{"__isSmartRef__":true,"id":196},{"__isSmartRef__":true,"id":197},{"__isSmartRef__":true,"id":198},{"__isSmartRef__":true,"id":199},{"__isSmartRef__":true,"id":200}],"__serializedExpressions__":["distanceToDragEvent","_Position"],"_Scale":1,"_Rotation":0,"owner":{"__isSmartRef__":true,"id":16},"_ClipMode":"visible","__LivelyClassName__":"lively.morphic.Button","__SourceModuleName__":"Global.lively.morphic.Widgets","distanceToDragEvent":"lively.pt(96.0,-17.0)","_Position":"lively.pt(190.0,70.0)"},"149":{"submorphs":[],"scripts":[],"id":4690,"shape":{"__isSmartRef__":true,"id":150},"grabbingEnabled":false,"__layered_droppingEnabled__":false,"halosEnabled":true,"fixedWidth":true,"_WhiteSpaceHandling":"pre-wrap","fixedHeight":true,"allowInput":false,"_FontFamily":"Helvetica","registeredForMouseEvents":true,"__serializedExpressions__":["_Position","padding","_Padding"],"_MaxTextWidth":159,"_MaxTextHeight":20,"textStyle":null,"owner":{"__isSmartRef__":true,"id":148},"isLabel":true,"eventsAreIgnored":true,"_ClipMode":"hidden","textChunks":[{"__isSmartRef__":true,"id":151}],"_Align":"center","eventHandler":{"__isSmartRef__":true,"id":153},"_HandStyle":"default","_PointerEvents":"none","attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"_WordBreak":"break-all","__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Position":"lively.pt(0.0,0.0)","padding":"lively.rect(5,5,0,0)","_Padding":"lively.rect(0,0,0,0)"},"150":{"__serializedExpressions__":["position","_Extent","_BorderColor","_Padding"],"_BorderWidth":0,"_Fill":null,"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(159.0,20.0)","_BorderColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(0,0,0,0)"},"151":{"style":{"__isSmartRef__":true,"id":152},"chunkOwner":{"__isSmartRef__":true,"id":149},"storedString":"delete old worlds","_id":"_4543","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"152":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"153":{"morph":{"__isSmartRef__":true,"id":149},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"154":{"__serializedExpressions__":["position","_Extent","_BorderColor","_Padding"],"_BorderWidth":1.1840000000000002,"_Fill":{"__isSmartRef__":true,"id":155},"_BorderRadius":5.2,"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(159.0,20.0)","_BorderColor":"Color.rgb(214,214,214)","_Padding":"lively.rect(0,0,0,0)"},"155":{"stops":[{"__isSmartRef__":true,"id":156},{"__isSmartRef__":true,"id":157},{"__isSmartRef__":true,"id":158},{"__isSmartRef__":true,"id":159}],"__serializedExpressions__":["vector"],"__LivelyClassName__":"lively.morphic.LinearGradient","__SourceModuleName__":"Global.lively.morphic.Shapes","vector":"lively.rect(0,0,0,1)"},"156":{"offset":0,"__serializedExpressions__":["color"],"color":"Color.rgb(245,245,245)"},"157":{"offset":0.4,"__serializedExpressions__":["color"],"color":"Color.rgb(209,209,209)"},"158":{"offset":0.6,"__serializedExpressions__":["color"],"color":"Color.rgb(209,209,209)"},"159":{"offset":1,"__serializedExpressions__":["color"],"color":"Color.rgb(240,240,240)"},"160":{"stops":[{"__isSmartRef__":true,"id":161},{"__isSmartRef__":true,"id":162},{"__isSmartRef__":true,"id":163},{"__isSmartRef__":true,"id":164}],"__serializedExpressions__":["vector"],"__LivelyClassName__":"lively.morphic.LinearGradient","__SourceModuleName__":"Global.lively.morphic.Shapes","vector":"lively.rect(0,0,0,1)"},"161":{"offset":0,"__serializedExpressions__":["color"],"color":"Color.rgb(250,250,250)"},"162":{"offset":0.4,"__serializedExpressions__":["color"],"color":"Color.rgb(232,232,232)"},"163":{"offset":0.6,"__serializedExpressions__":["color"],"color":"Color.rgb(232,232,232)"},"164":{"offset":1,"__serializedExpressions__":["color"],"color":"Color.rgb(248,248,248)"},"165":{"partsSpaceName":"PartsBin/Inputs","migrationLevel":2,"partName":"ScriptableButton","comment":"Has a script that is called on button press","__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"166":{"sourceObj":{"__isSmartRef__":true,"id":148},"sourceAttrName":"fire","targetObj":{"__isSmartRef__":true,"id":16},"targetMethodName":"deleteOldWorlds","visualConnector":{"__isSmartRef__":true,"id":167},"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"167":{"submorphs":[{"__isSmartRef__":true,"id":168}],"scripts":[],"shape":{"__isSmartRef__":true,"id":175},"id":5440,"eventHandler":{"__isSmartRef__":true,"id":178},"__layered_droppingEnabled__":true,"halosEnabled":true,"owner":null,"controlPoints":[{"__isSmartRef__":true,"id":179},{"__isSmartRef__":true,"id":180}],"con":{"__isSmartRef__":true,"id":166},"showsMorphMenu":true,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":181},"__LivelyClassName__":"lively.morphic.Path","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"168":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":169},"id":5441,"eventHandler":{"__isSmartRef__":true,"id":174},"__layered_droppingEnabled__":true,"halosEnabled":true,"__serializedExpressions__":["_Origin","_Position"],"owner":{"__isSmartRef__":true,"id":167},"_Rotation":-2.788602265762883,"__LivelyClassName__":"lively.morphic.Path","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs","_Origin":"lively.pt(12.0,6.0)","_Position":"lively.pt(-12.0,-6.0)"},"169":{"dontChangeShape":false,"cachedVertices":[],"_PathElements":[{"__isSmartRef__":true,"id":170},{"__isSmartRef__":true,"id":171},{"__isSmartRef__":true,"id":172},{"__isSmartRef__":true,"id":173}],"__serializedExpressions__":["_Position","_Extent","_BorderColor","_Fill"],"_BorderWidth":0,"__LivelyClassName__":"lively.morphic.Shapes.Path","__SourceModuleName__":"Global.lively.morphic.PathShapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(16.0,12.0)","_BorderColor":"Color.rgb(0,0,0)","_Fill":"Color.rgb(0,0,0)"},"170":{"isAbsolute":true,"x":0,"y":0,"__LivelyClassName__":"lively.morphic.Shapes.MoveTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"171":{"isAbsolute":true,"x":0,"y":12,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"172":{"isAbsolute":true,"x":16,"y":6,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"173":{"isAbsolute":true,"x":0,"y":0,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"174":{"morph":{"__isSmartRef__":true,"id":168},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"175":{"dontChangeShape":false,"cachedVertices":[],"_PathElements":[{"__isSmartRef__":true,"id":176},{"__isSmartRef__":true,"id":177}],"__serializedExpressions__":["_Position","_Extent","_BorderColor"],"_BorderWidth":1,"__LivelyClassName__":"lively.morphic.Shapes.Path","__SourceModuleName__":"Global.lively.morphic.PathShapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(190.0,70.0)","_BorderColor":"Color.rgb(0,0,0)"},"176":{"isAbsolute":true,"x":190,"y":70,"__LivelyClassName__":"lively.morphic.Shapes.MoveTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"177":{"isAbsolute":true,"x":0,"y":0,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"178":{"morph":{"__isSmartRef__":true,"id":167},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"179":{"morph":{"__isSmartRef__":true,"id":167},"index":0,"connectedMagnet":null,"__LivelyClassName__":"lively.morphic.ControlPoint","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"180":{"morph":{"__isSmartRef__":true,"id":167},"index":1,"connectedMagnet":null,"marker":{"__isSmartRef__":true,"id":168},"markerDirection":"prev","__LivelyClassName__":"lively.morphic.ControlPoint","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"181":{"morphMenuItems":{"__isSmartRef__":true,"id":182}},"182":{"varMapping":{"__isSmartRef__":true,"id":183},"source":"function morphMenuItems() {\n var visualConnector = this, con = this.con, world = this.world();\n var items = [\n ['edit converter', function() {\n var source = con.converterString || 'function converter(value) {\\n return value\\n}',\n editor = new lively.morphic.Text(new Rectangle(0,0, 400, 200), source);\n editor.doitContext = con;\n connect(editor, 'savedTextString', con, 'converterString', {updater:\n function($upd, source) { this.targetObj.converter = null; $upd(source) }});\n connect(editor, 'savedTextString', world, 'alertOK', {converter: \n function() { return 'setting new converter' }})\n editor.applyStyle({syntaxHighlighting: true, fontFamily: 'Courier', resizeWidth: true, resizeHeight: true});\n var title = con.targetObj.name && con.sourceObj.name ?\n 'Editor for ' + con.targetObj.name + ' -> ' + con.sourceObj.name :\n 'Editor for converter function';\n var window = world.addFramedMorph(editor, title)\n window.align(window.bounds().topCenter(), visualConnector.bounds().bottomCenter())\n }],\n ['hide', function() {\n visualConnector.disconnectFromMagnets();\n visualConnector.remove();\n }],\n ['disconnect', function() {\n alertOK('Disconnected ' + visualConnector.con);\n visualConnector.con.visualDisconnect();\n }],\n ['cancel', function() {}],\n ];\n return items;\n }","funcProperties":{"__isSmartRef__":true,"id":188},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"183":{"this":{"__isSmartRef__":true,"id":167},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":184}},"184":{"$super":{"__isSmartRef__":true,"id":185}},"185":{"varMapping":{"__isSmartRef__":true,"id":186},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch(e) {\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":187},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"186":{"obj":{"__isSmartRef__":true,"id":167},"name":"morphMenuItems"},"187":{},"188":{},"189":{"morph":{"__isSmartRef__":true,"id":148},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"190":{"onFire":{"__isSmartRef__":true,"id":191}},"191":{"time":{"__isSmartRef__":true,"id":192},"user":"jenslincke"},"192":{"isSerializedDate":true,"string":"Wed Aug 10 2011 11:40:50 GMT+0200 (CEST)"},"193":{"morph":{"__isSmartRef__":true,"id":148},"__serializedExpressions__":["position"],"connectedControlPoints":[],"__LivelyClassName__":"lively.morphic.RelativeMagnet","__SourceModuleName__":"Global.lively.morphic.Connectors","position":"lively.pt(0.0,0.0)"},"194":{"morph":{"__isSmartRef__":true,"id":148},"__serializedExpressions__":["position"],"connectedControlPoints":[],"__LivelyClassName__":"lively.morphic.RelativeMagnet","__SourceModuleName__":"Global.lively.morphic.Connectors","position":"lively.pt(0.5,0.0)"},"195":{"morph":{"__isSmartRef__":true,"id":148},"__serializedExpressions__":["position"],"connectedControlPoints":[],"__LivelyClassName__":"lively.morphic.RelativeMagnet","__SourceModuleName__":"Global.lively.morphic.Connectors","position":"lively.pt(1.0,0.0)"},"196":{"morph":{"__isSmartRef__":true,"id":148},"__serializedExpressions__":["position"],"connectedControlPoints":[],"__LivelyClassName__":"lively.morphic.RelativeMagnet","__SourceModuleName__":"Global.lively.morphic.Connectors","position":"lively.pt(1.0,0.5)"},"197":{"morph":{"__isSmartRef__":true,"id":148},"__serializedExpressions__":["position"],"connectedControlPoints":[],"__LivelyClassName__":"lively.morphic.RelativeMagnet","__SourceModuleName__":"Global.lively.morphic.Connectors","position":"lively.pt(1.0,1.0)"},"198":{"morph":{"__isSmartRef__":true,"id":148},"__serializedExpressions__":["position"],"connectedControlPoints":[],"__LivelyClassName__":"lively.morphic.RelativeMagnet","__SourceModuleName__":"Global.lively.morphic.Connectors","position":"lively.pt(0.5,1.0)"},"199":{"morph":{"__isSmartRef__":true,"id":148},"__serializedExpressions__":["position"],"connectedControlPoints":[],"__LivelyClassName__":"lively.morphic.RelativeMagnet","__SourceModuleName__":"Global.lively.morphic.Connectors","position":"lively.pt(0.0,1.0)"},"200":{"morph":{"__isSmartRef__":true,"id":148},"__serializedExpressions__":["position"],"connectedControlPoints":[],"__LivelyClassName__":"lively.morphic.RelativeMagnet","__SourceModuleName__":"Global.lively.morphic.Connectors","position":"lively.pt(0.0,0.5)"},"201":{"submorphs":[],"scripts":[],"id":6276,"shape":{"__isSmartRef__":true,"id":202},"__layered_droppingEnabled__":true,"halosEnabled":true,"checked":false,"showsHalos":false,"name":"CheckBox1","partsBinMetaInfo":{"__isSmartRef__":true,"id":203},"eventHandler":{"__isSmartRef__":true,"id":204},"attributeConnections":[{"__isSmartRef__":true,"id":205}],"doNotSerialize":[],"doNotCopyProperties":[],"__serializedExpressions__":["distanceToDragEvent","_Position"],"layout":{"__isSmartRef__":true,"id":228},"magnets":[{"__isSmartRef__":true,"id":229},{"__isSmartRef__":true,"id":230},{"__isSmartRef__":true,"id":231},{"__isSmartRef__":true,"id":232},{"__isSmartRef__":true,"id":233},{"__isSmartRef__":true,"id":234},{"__isSmartRef__":true,"id":235},{"__isSmartRef__":true,"id":236}],"_Scale":1,"_Rotation":0,"owner":{"__isSmartRef__":true,"id":16},"_ClipMode":"visible","__LivelyClassName__":"lively.morphic.CheckBox","__SourceModuleName__":"Global.lively.morphic.Widgets","distanceToDragEvent":"lively.pt(48.8,-15.0)","_Position":"lively.pt(372.2,73.0)"},"202":{"stringifiedShapeNode":"","__serializedExpressions__":["extent","_Extent"],"_BorderWidth":0,"_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","__LivelyClassName__":"lively.morphic.Shapes.External","__SourceModuleName__":"Global.lively.morphic.Shapes","extent":"lively.pt(21.0,20.0)","_Extent":"lively.pt(21.0,20.0)"},"203":{"requiredModules":[],"migrationLevel":2,"partsSpaceName":"PartsBin/Widgets/","partName":"CheckBox","__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"204":{"morph":{"__isSmartRef__":true,"id":201},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"205":{"sourceObj":{"__isSmartRef__":true,"id":201},"sourceAttrName":"setChecked","targetObj":{"__isSmartRef__":true,"id":16},"targetMethodName":"dryRun","visualConnector":{"__isSmartRef__":true,"id":206},"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"206":{"submorphs":[{"__isSmartRef__":true,"id":207}],"scripts":[],"shape":{"__isSmartRef__":true,"id":214},"id":6602,"eventHandler":{"__isSmartRef__":true,"id":217},"__layered_droppingEnabled__":true,"halosEnabled":true,"owner":null,"controlPoints":[{"__isSmartRef__":true,"id":218},{"__isSmartRef__":true,"id":219}],"con":{"__isSmartRef__":true,"id":205},"showsMorphMenu":true,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":220},"__LivelyClassName__":"lively.morphic.Path","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"207":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":208},"id":6603,"eventHandler":{"__isSmartRef__":true,"id":213},"__layered_droppingEnabled__":true,"halosEnabled":true,"__serializedExpressions__":["_Origin","_Position"],"owner":{"__isSmartRef__":true,"id":206},"_Rotation":-2.9480168804648264,"__LivelyClassName__":"lively.morphic.Path","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs","_Origin":"lively.pt(12.0,6.0)","_Position":"lively.pt(-12.0,-6.0)"},"208":{"dontChangeShape":false,"cachedVertices":[],"_PathElements":[{"__isSmartRef__":true,"id":209},{"__isSmartRef__":true,"id":210},{"__isSmartRef__":true,"id":211},{"__isSmartRef__":true,"id":212}],"__serializedExpressions__":["_Position","_Extent","_BorderColor","_Fill"],"_BorderWidth":0,"__LivelyClassName__":"lively.morphic.Shapes.Path","__SourceModuleName__":"Global.lively.morphic.PathShapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(16.0,12.0)","_BorderColor":"Color.rgb(0,0,0)","_Fill":"Color.rgb(0,0,0)"},"209":{"isAbsolute":true,"x":0,"y":0,"__LivelyClassName__":"lively.morphic.Shapes.MoveTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"210":{"isAbsolute":true,"x":0,"y":12,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"211":{"isAbsolute":true,"x":16,"y":6,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"212":{"isAbsolute":true,"x":0,"y":0,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"213":{"morph":{"__isSmartRef__":true,"id":207},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"214":{"dontChangeShape":false,"cachedVertices":[],"_PathElements":[{"__isSmartRef__":true,"id":215},{"__isSmartRef__":true,"id":216}],"__serializedExpressions__":["_Position","_Extent","_BorderColor"],"_BorderWidth":1,"__LivelyClassName__":"lively.morphic.Shapes.Path","__SourceModuleName__":"Global.lively.morphic.PathShapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(372.2,73.0)","_BorderColor":"Color.rgb(0,0,0)"},"215":{"isAbsolute":true,"x":372.1610131430227,"y":72.95488532550053,"__LivelyClassName__":"lively.morphic.Shapes.MoveTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"216":{"isAbsolute":true,"x":0,"y":0,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"217":{"morph":{"__isSmartRef__":true,"id":206},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"218":{"morph":{"__isSmartRef__":true,"id":206},"index":0,"connectedMagnet":null,"__LivelyClassName__":"lively.morphic.ControlPoint","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"219":{"morph":{"__isSmartRef__":true,"id":206},"index":1,"connectedMagnet":null,"marker":{"__isSmartRef__":true,"id":207},"markerDirection":"prev","__LivelyClassName__":"lively.morphic.ControlPoint","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"220":{"morphMenuItems":{"__isSmartRef__":true,"id":221}},"221":{"varMapping":{"__isSmartRef__":true,"id":222},"source":"function morphMenuItems() {\n var visualConnector = this, con = this.con, world = this.world();\n var items = [\n ['edit converter', function() {\n var source = con.converterString || 'function converter(value) {\\n return value\\n}',\n editor = new lively.morphic.Text(new Rectangle(0,0, 400, 200), source);\n editor.doitContext = con;\n connect(editor, 'savedTextString', con, 'converterString', {updater:\n function($upd, source) { this.targetObj.converter = null; $upd(source) }});\n connect(editor, 'savedTextString', world, 'alertOK', {converter: \n function() { return 'setting new converter' }})\n editor.applyStyle({syntaxHighlighting: true, fontFamily: 'Courier', resizeWidth: true, resizeHeight: true});\n var title = con.targetObj.name && con.sourceObj.name ?\n 'Editor for ' + con.targetObj.name + ' -> ' + con.sourceObj.name :\n 'Editor for converter function';\n var window = world.addFramedMorph(editor, title)\n window.align(window.bounds().topCenter(), visualConnector.bounds().bottomCenter())\n }],\n ['hide', function() {\n visualConnector.disconnectFromMagnets();\n visualConnector.remove();\n }],\n ['disconnect', function() {\n alertOK('Disconnected ' + visualConnector.con);\n visualConnector.con.visualDisconnect();\n }],\n ['cancel', function() {}],\n ];\n return items;\n }","funcProperties":{"__isSmartRef__":true,"id":227},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"222":{"this":{"__isSmartRef__":true,"id":206},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":223}},"223":{"$super":{"__isSmartRef__":true,"id":224}},"224":{"varMapping":{"__isSmartRef__":true,"id":225},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch(e) {\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":226},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"225":{"obj":{"__isSmartRef__":true,"id":206},"name":"morphMenuItems"},"226":{},"227":{},"228":{"moveVertical":true},"229":{"morph":{"__isSmartRef__":true,"id":201},"__serializedExpressions__":["position"],"connectedControlPoints":[],"__LivelyClassName__":"lively.morphic.RelativeMagnet","__SourceModuleName__":"Global.lively.morphic.Connectors","position":"lively.pt(0.0,0.0)"},"230":{"morph":{"__isSmartRef__":true,"id":201},"__serializedExpressions__":["position"],"connectedControlPoints":[],"__LivelyClassName__":"lively.morphic.RelativeMagnet","__SourceModuleName__":"Global.lively.morphic.Connectors","position":"lively.pt(0.5,0.0)"},"231":{"morph":{"__isSmartRef__":true,"id":201},"__serializedExpressions__":["position"],"connectedControlPoints":[],"__LivelyClassName__":"lively.morphic.RelativeMagnet","__SourceModuleName__":"Global.lively.morphic.Connectors","position":"lively.pt(1.0,0.0)"},"232":{"morph":{"__isSmartRef__":true,"id":201},"__serializedExpressions__":["position"],"connectedControlPoints":[],"__LivelyClassName__":"lively.morphic.RelativeMagnet","__SourceModuleName__":"Global.lively.morphic.Connectors","position":"lively.pt(1.0,0.5)"},"233":{"morph":{"__isSmartRef__":true,"id":201},"__serializedExpressions__":["position"],"connectedControlPoints":[],"__LivelyClassName__":"lively.morphic.RelativeMagnet","__SourceModuleName__":"Global.lively.morphic.Connectors","position":"lively.pt(1.0,1.0)"},"234":{"morph":{"__isSmartRef__":true,"id":201},"__serializedExpressions__":["position"],"connectedControlPoints":[],"__LivelyClassName__":"lively.morphic.RelativeMagnet","__SourceModuleName__":"Global.lively.morphic.Connectors","position":"lively.pt(0.5,1.0)"},"235":{"morph":{"__isSmartRef__":true,"id":201},"__serializedExpressions__":["position"],"connectedControlPoints":[],"__LivelyClassName__":"lively.morphic.RelativeMagnet","__SourceModuleName__":"Global.lively.morphic.Connectors","position":"lively.pt(0.0,1.0)"},"236":{"morph":{"__isSmartRef__":true,"id":201},"__serializedExpressions__":["position"],"connectedControlPoints":[],"__LivelyClassName__":"lively.morphic.RelativeMagnet","__SourceModuleName__":"Global.lively.morphic.Connectors","position":"lively.pt(0.0,0.5)"},"237":{"submorphs":[],"scripts":[],"id":6364,"shape":{"__isSmartRef__":true,"id":238},"grabbingEnabled":false,"__layered_droppingEnabled__":false,"halosEnabled":true,"fixedWidth":true,"fixedHeight":false,"allowsInput":true,"_OverflowMode":"visible","_FontFamily":"Arial, sans-serif","registeredForMouseEvents":true,"_MaxTextWidth":93,"_MaxTextHeight":null,"__serializedExpressions__":["textColor","_Padding","distanceToDragEvent","_Position"],"showsHalos":false,"_FontSize":11,"name":"Text2","partsBinMetaInfo":{"__isSmartRef__":true,"id":239},"textChunks":[{"__isSmartRef__":true,"id":240}],"charsReplaced":"some text ","lastFindLoc":-10,"priorSelectionRange":[0,3],"prevScroll":[0,0],"eventHandler":{"__isSmartRef__":true,"id":242},"attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"layout":{"__isSmartRef__":true,"id":243},"magnets":[{"__isSmartRef__":true,"id":244},{"__isSmartRef__":true,"id":245},{"__isSmartRef__":true,"id":246},{"__isSmartRef__":true,"id":247},{"__isSmartRef__":true,"id":248},{"__isSmartRef__":true,"id":249},{"__isSmartRef__":true,"id":250},{"__isSmartRef__":true,"id":251}],"owner":{"__isSmartRef__":true,"id":16},"_Rotation":0,"_Scale":1,"_WhiteSpaceHandling":"pre-wrap","_ClipMode":"visible","__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","textColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(5,5,0,0)","distanceToDragEvent":"lively.pt(96.9,-7.0)","_Position":"lively.pt(396.1,68.0)"},"238":{"fill":null,"__serializedExpressions__":["_Position","_Extent","_BorderColor","_Padding"],"_BorderWidth":0,"_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(93.0,17.0)","_BorderColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(0,0,0,0)"},"239":{"partsSpaceName":"PartsBin/Basic","migrationLevel":4,"comment":"a simple text morph","partName":"Text","__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"240":{"style":{"__isSmartRef__":true,"id":241},"chunkOwner":{"__isSmartRef__":true,"id":237},"storedString":"dry run","_id":"_4544","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"241":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"242":{"morph":{"__isSmartRef__":true,"id":237},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"243":{"moveVertical":true},"244":{"isClassPlaceHolder":true,"className":"lively.morphic.RelativeMagnet","__serializedExpressions__":["position"],"morph":{"__isSmartRef__":true,"id":237},"connectedControlPoints":[],"position":"lively.pt(0.0,0.0)"},"245":{"isClassPlaceHolder":true,"className":"lively.morphic.RelativeMagnet","__serializedExpressions__":["position"],"morph":{"__isSmartRef__":true,"id":237},"connectedControlPoints":[],"position":"lively.pt(0.5,0.0)"},"246":{"isClassPlaceHolder":true,"className":"lively.morphic.RelativeMagnet","__serializedExpressions__":["position"],"morph":{"__isSmartRef__":true,"id":237},"connectedControlPoints":[],"position":"lively.pt(1.0,0.0)"},"247":{"isClassPlaceHolder":true,"className":"lively.morphic.RelativeMagnet","__serializedExpressions__":["position"],"morph":{"__isSmartRef__":true,"id":237},"connectedControlPoints":[],"position":"lively.pt(1.0,0.5)"},"248":{"isClassPlaceHolder":true,"className":"lively.morphic.RelativeMagnet","__serializedExpressions__":["position"],"morph":{"__isSmartRef__":true,"id":237},"connectedControlPoints":[],"position":"lively.pt(1.0,1.0)"},"249":{"isClassPlaceHolder":true,"className":"lively.morphic.RelativeMagnet","__serializedExpressions__":["position"],"morph":{"__isSmartRef__":true,"id":237},"connectedControlPoints":[],"position":"lively.pt(0.5,1.0)"},"250":{"isClassPlaceHolder":true,"className":"lively.morphic.RelativeMagnet","__serializedExpressions__":["position"],"morph":{"__isSmartRef__":true,"id":237},"connectedControlPoints":[],"position":"lively.pt(0.0,1.0)"},"251":{"isClassPlaceHolder":true,"className":"lively.morphic.RelativeMagnet","__serializedExpressions__":["position"],"morph":{"__isSmartRef__":true,"id":237},"connectedControlPoints":[],"position":"lively.pt(0.0,0.5)"},"252":{"__serializedExpressions__":["position","_Extent","_BorderColor","_Fill","_Padding"],"_BorderWidth":1,"_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(757.0,687.0)","_BorderColor":"Color.rgb(0,0,0)","_Fill":"Color.rgb(255,255,255)","_Padding":"lively.rect(0,0,0,0)"},"253":{"partsSpaceName":"PartsBin/Basic","comment":"A simple box morph. A really blue one. Its amazing what you can build out of simple boxes.... Who needs stars when you got blue rectangles!","migrationLevel":2,"partName":"Rectangle","__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"254":{"morph":{"__isSmartRef__":true,"id":16},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"255":{"sourceObj":{"__isSmartRef__":true,"id":16},"sourceAttrName":"dryRun","targetObj":{"__isSmartRef__":true,"id":201},"targetMethodName":"setChecked","__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"256":{},"257":{"progressReset":{"__isSmartRef__":true,"id":258},"progressInc":{"__isSmartRef__":true,"id":260},"createWorldInfo":{"__isSmartRef__":true,"id":262},"showOldWorlds":{"__isSmartRef__":true,"id":264},"showMetaDataResult":{"__isSmartRef__":true,"id":266},"deleteOldWorld":{"__isSmartRef__":true,"id":268},"deleteOldWorlds":{"__isSmartRef__":true,"id":270},"log":{"__isSmartRef__":true,"id":272}},"258":{"time":{"__isSmartRef__":true,"id":259},"user":"jenslincke"},"259":{"isSerializedDate":true,"string":"Wed Aug 10 2011 11:39:17 GMT+0200 (CEST)"},"260":{"time":{"__isSmartRef__":true,"id":261},"user":"jenslincke"},"261":{"isSerializedDate":true,"string":"Wed Aug 10 2011 11:39:11 GMT+0200 (CEST)"},"262":{"time":{"__isSmartRef__":true,"id":263},"user":"jenslincke"},"263":{"isSerializedDate":true,"string":"Wed Aug 10 2011 13:07:53 GMT+0200 (CEST)"},"264":{"time":{"__isSmartRef__":true,"id":265},"user":"jenslincke"},"265":{"isSerializedDate":true,"string":"Wed Aug 10 2011 13:29:36 GMT+0200 (CEST)"},"266":{"time":{"__isSmartRef__":true,"id":267},"user":"jenslincke"},"267":{"isSerializedDate":true,"string":"Wed Aug 10 2011 13:09:43 GMT+0200 (CEST)"},"268":{"time":{"__isSmartRef__":true,"id":269},"user":"jenslincke"},"269":{"isSerializedDate":true,"string":"Wed Aug 10 2011 13:23:44 GMT+0200 (CEST)"},"270":{"time":{"__isSmartRef__":true,"id":271},"user":"jenslincke"},"271":{"isSerializedDate":true,"string":"Wed Aug 10 2011 13:37:07 GMT+0200 (CEST)"},"272":{"time":{"__isSmartRef__":true,"id":273},"user":"jenslincke"},"273":{"isSerializedDate":true,"string":"Wed Aug 10 2011 13:27:11 GMT+0200 (CEST)"},"274":{"morph":{"__isSmartRef__":true,"id":16},"__serializedExpressions__":["position"],"connectedControlPoints":[],"__LivelyClassName__":"lively.morphic.RelativeMagnet","__SourceModuleName__":"Global.lively.morphic.Connectors","position":"lively.pt(0.0,0.0)"},"275":{"morph":{"__isSmartRef__":true,"id":16},"__serializedExpressions__":["position"],"connectedControlPoints":[],"__LivelyClassName__":"lively.morphic.RelativeMagnet","__SourceModuleName__":"Global.lively.morphic.Connectors","position":"lively.pt(0.5,0.0)"},"276":{"morph":{"__isSmartRef__":true,"id":16},"__serializedExpressions__":["position"],"connectedControlPoints":[],"__LivelyClassName__":"lively.morphic.RelativeMagnet","__SourceModuleName__":"Global.lively.morphic.Connectors","position":"lively.pt(1.0,0.0)"},"277":{"morph":{"__isSmartRef__":true,"id":16},"__serializedExpressions__":["position"],"connectedControlPoints":[],"__LivelyClassName__":"lively.morphic.RelativeMagnet","__SourceModuleName__":"Global.lively.morphic.Connectors","position":"lively.pt(1.0,0.5)"},"278":{"morph":{"__isSmartRef__":true,"id":16},"__serializedExpressions__":["position"],"connectedControlPoints":[],"__LivelyClassName__":"lively.morphic.RelativeMagnet","__SourceModuleName__":"Global.lively.morphic.Connectors","position":"lively.pt(1.0,1.0)"},"279":{"morph":{"__isSmartRef__":true,"id":16},"__serializedExpressions__":["position"],"connectedControlPoints":[],"__LivelyClassName__":"lively.morphic.RelativeMagnet","__SourceModuleName__":"Global.lively.morphic.Connectors","position":"lively.pt(0.5,1.0)"},"280":{"morph":{"__isSmartRef__":true,"id":16},"__serializedExpressions__":["position"],"connectedControlPoints":[],"__LivelyClassName__":"lively.morphic.RelativeMagnet","__SourceModuleName__":"Global.lively.morphic.Connectors","position":"lively.pt(0.0,1.0)"},"281":{"morph":{"__isSmartRef__":true,"id":16},"__serializedExpressions__":["position"],"connectedControlPoints":[],"__LivelyClassName__":"lively.morphic.RelativeMagnet","__SourceModuleName__":"Global.lively.morphic.Connectors","position":"lively.pt(0.0,0.5)"},"282":{"progressReset":{"__isSmartRef__":true,"id":283},"progressInc":{"__isSmartRef__":true,"id":286},"createWorldInfo":{"__isSmartRef__":true,"id":289},"showOldWorlds":{"__isSmartRef__":true,"id":292},"showMetaDataResult":{"__isSmartRef__":true,"id":295},"deleteOldWorlds":{"__isSmartRef__":true,"id":298},"log":{"__isSmartRef__":true,"id":301}},"283":{"varMapping":{"__isSmartRef__":true,"id":284},"source":"function progressReset(valueScale) {\n \n var p = this.get('progressBar');\n p.valueScale = valueScale || 1;\n p.setValue(0)\n p.setLabel('')\n\n}","funcProperties":{"__isSmartRef__":true,"id":285},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"284":{"this":{"__isSmartRef__":true,"id":16}},"285":{},"286":{"varMapping":{"__isSmartRef__":true,"id":287},"source":"function progressInc() {\n var p = this.get('progressBar');\n p.setValue(p.value + 1);\n p.setLabel(p.value + '/' + p.valueScale);\n \n}","funcProperties":{"__isSmartRef__":true,"id":288},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"287":{"this":{"__isSmartRef__":true,"id":16}},"288":{},"289":{"varMapping":{"__isSmartRef__":true,"id":290},"source":"function createWorldInfo(url) {\n return {\n cleanup: this,\n url: url,\n fetchMetaData: function() {\n var webR = new WebResource(this.url).beAsync();\n connect(webR, 'content', this, 'extractMetaData', { updater: function($upd, content) {\n if (this.sourceObj.status.isDone()) $upd(content)} });\n webR.get();\n }.asScript(),\n extractMetaData: function(worldContent) {\n this.isLively1World = worldContent.indexOf('isNewMorphic: true') === -1;\n this.cleanup.showMetaDataResult(this);\n this.cleanup.progressInc();\n }.asScript(),\n toString: function() {\n var string = this.url.relativePathFrom(URL.codeBase);\n if (this.isLively1World) string += ' (Lively1)';\n return string;\n }.asScript(),\n }\n}","funcProperties":{"__isSmartRef__":true,"id":291},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"290":{"this":{"__isSmartRef__":true,"id":16}},"291":{},"292":{"varMapping":{"__isSmartRef__":true,"id":293},"source":"function showOldWorlds() {\n \n var baseUrl = new URL(this.get('urlText').textString)\n var webR = new WebResource(baseUrl)\n webR.statusMessage('Done', 'Fail').getSubElements('infinity')\n\n var urls = webR.subDocuments.invoke('getURL')\n\n var worldURLs = urls.select(function(ea) { return ea.toString().endsWith('.xhtml') })\n var worldInfos = worldURLs.collect(function(ea) { return this.createWorldInfo(ea) }, this)\n\n this.progressReset(worldInfos.length);\n this.get('WorldList').setList([]);\n this.get('Log').textString = '';\n worldInfos.invoke('fetchMetaData')\n\n\n}","funcProperties":{"__isSmartRef__":true,"id":294},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"293":{"this":{"__isSmartRef__":true,"id":16}},"294":{},"295":{"varMapping":{"__isSmartRef__":true,"id":296},"source":"function showMetaDataResult(worldInfo) {\n if (worldInfo.isLively1World)\n this.get('WorldList').addItem(worldInfo)\n}","funcProperties":{"__isSmartRef__":true,"id":297},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"296":{"this":{"__isSmartRef__":true,"id":16}},"297":{},"298":{"varMapping":{"__isSmartRef__":true,"id":299},"source":"function deleteOldWorlds() {\n this.get('WorldList').getList().forEach(function(ea) {\n this.log(\"delete \" + ea.url);\n if(!this.dryRun) {\n new WebResource(ea.url).del()\n }\n }, this)\n}","funcProperties":{"__isSmartRef__":true,"id":300},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"299":{"this":{"__isSmartRef__":true,"id":16}},"300":{},"301":{"varMapping":{"__isSmartRef__":true,"id":302},"source":"function log(s) {\n this.get('Log').textString += s + '\\n'\n}","funcProperties":{"__isSmartRef__":true,"id":303},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"302":{"this":{"__isSmartRef__":true,"id":16}},"303":{},"304":{"submorphs":[],"scripts":[],"id":226,"shape":{"__isSmartRef__":true,"id":305},"grabbingEnabled":false,"__layered_droppingEnabled__":false,"showsMorphMenu":false,"halosEnabled":false,"registeredForMouseEvents":true,"_world":{"__isSmartRef__":true,"id":0},"owner":{"__isSmartRef__":true,"id":0},"carriesGrabbedMorphs":false,"_Scale":1,"_Rotation":0,"eventHandler":{"__isSmartRef__":true,"id":306},"attributeConnections":[{"__isSmartRef__":true,"id":307}],"doNotSerialize":["$$_Position"],"doNotCopyProperties":["$$_Position"],"__serializedExpressions__":["_Position"],"_ClipMode":"visible","__LivelyClassName__":"lively.morphic.HandMorph","__SourceModuleName__":"Global.lively.morphic.Events","withLayers":["Global.NoMagnetsLayer"],"_Position":"lively.pt(982.0,432.0)"},"305":{"__serializedExpressions__":["_Position","_Extent","_Fill","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(2.0,2.0)","_Fill":"Color.rgb(204,0,0)","_Padding":"lively.rect(0,0,0,0)"},"306":{"morph":{"__isSmartRef__":true,"id":304},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"307":{"sourceObj":{"__isSmartRef__":true,"id":304},"sourceAttrName":"_Position","targetMethodName":"setPosition","converterString":"function (p) { \n return p.addPt(pt(0,10))\n }","updaterString":null,"varMapping":{"__isSmartRef__":true,"id":308},"isWeakConnection":true,"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"308":{"source":{"__isSmartRef__":true,"id":304}},"309":{"__serializedExpressions__":["_Position","_Extent","_Fill","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(2800.0,2900.0)","_Fill":"Color.rgb(255,255,255)","_Padding":"lively.rect(0,0,0,0)"},"310":{"name":"Local code","__LivelyClassName__":"ChangeSet","__SourceModuleName__":"Global.lively.ChangeSet"},"311":{"sourceObj":{"__isSmartRef__":true,"id":0},"sourceAttrName":"savedWorldAsURL","targetObj":{"__isSmartRef__":true,"id":0},"targetMethodName":"visitNewPageAfterSaveAs","converterString":null,"updaterString":"function ($upd, v) { \n if (v && v.toString() !== URL.source.toString()) {\n $upd(v) \n }\n }","varMapping":{"__isSmartRef__":true,"id":312},"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"312":{"source":{"__isSmartRef__":true,"id":0},"target":{"__isSmartRef__":true,"id":0}},"313":{"morph":{"__isSmartRef__":true,"id":0},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"314":{"protocol":"http:","hostname":"lively-kernel.org","pathname":"/repository/webwerkstatt/cleanup.xhtml","__LivelyClassName__":"URL","__SourceModuleName__":"Global.lively.Network"},"315":{"isSerializedDate":true,"string":"Thu Feb 06 2014 09:58:34 GMT+0100 (CET)"},"isSimplifiedRegistry":true}}]]>