6) {\n\t\t\tvar beginS= lines.slice(0, 2).join(\"\\n\");\n\t\t\tvar endS = lines.slice(lines.length - 3, lines.length).join(\"\\n\");\t\n\t\tfilteredDiffs.push([0, beginS + \"\\n...\\n\" + endS])\n\t\t\tcontinue;\n\t\t}\n\n\t\t// before change\n\t\tif (!diffs[i-1] && diffs[i+1] && diffs[i][0] == 0 && lines.length > 3) {\n\t\t\tvar newS = lines.slice(lines.length - 3, lines.length).join(\"\\n\");\n\t\t\tfilteredDiffs.push([0,\"... \" + newS ])\n\t\t\tcontinue;\n\t\t}\n\t\t// after change\n\t\tif (diffs[i-1] && !diffs[i+1] && diffs[i][0] == 0 && lines.length > 3) {\n\t\t\tvar newS = lines.slice(0, 2).join(\"\\n\");\n\t\t\tfilteredDiffs.push([0, newS + \"... \"])\n\t\t\tcontinue;\n\t\t}\n\t\tfilteredDiffs.push(diffs[i])\n\t}\n\tdiffs = filteredDiffs;\n\n\n\tthis.get('TextDiff').setTextString(JSON.serialize(diffs)) \n\n\tthis.updateRichTextDiffs(this.get('TextDiffRich'), diffs)\n\tthis.updatePatchText(diffs)\n}","funcProperties":{"__isSmartRef__":true,"id":265},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"264":{"this":{"__isSmartRef__":true,"id":56}},"265":{},"266":{"varMapping":{"__isSmartRef__":true,"id":267},"source":"function updateRichTextDiffs(textMorph, diffs) {\n\tvar string = \"\";\n\tfor (var x = 0; x < diffs.length; x++) {\n\t\tstring += diffs[x][1];\n\t }\n\ttextMorph.setTextString(string);\n\t\n\tvar from=0;\n\tfor (var x = 0; x < diffs.length; x++) {\n\t\tvar op = diffs[x][0]; // Operation (insert, delete, equal)\n\t\tvar data = diffs[x][1]; // Text of change.\n\t\tvar to = from + data.length;\n\t\tswitch (op) {\n\t\t\tcase DIFF_INSERT:\n\t\t\ttextMorph.emphasize({color: 'green', textDecoration: 'underline'}, from, to)\n\t\t\tbreak;\n\t\t\tcase DIFF_DELETE:\n\t\t\ttextMorph.emphasize({color: 'red', textDecoration: 'line-through'}, from, to)\n\t \tbreak;\n\t\t\tcase DIFF_EQUAL:\n\t \tbreak;\n\t \t}\n\t\tfrom = to\n\t }\n}","funcProperties":{"__isSmartRef__":true,"id":268},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"267":{"this":{"__isSmartRef__":true,"id":56}},"268":{},"269":{"varMapping":{"__isSmartRef__":true,"id":270},"source":"function updatePatchText( diffs) {\n\tvar dmp = new diff_match_patch()\n\tvar patches = dmp.patch_make(diffs)\n\n\tthis.get('TextPatch').setTextString(JSON.serialize(patches))\n\t\n\tvar patchText = dmp.patch_toText(patches);\n\n\tthis.get('TextPrettyPatch').setTextString(patchText)\n}","funcProperties":{"__isSmartRef__":true,"id":271},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"270":{"this":{"__isSmartRef__":true,"id":56}},"271":{},"272":{"submorphs":[{"__isSmartRef__":true,"id":273},{"__isSmartRef__":true,"id":281}],"scripts":[],"id":4656,"shape":{"__isSmartRef__":true,"id":390},"droppingEnabled":true,"halosEnabled":true,"draggingEnabled":true,"layout":{"__isSmartRef__":true,"id":392},"_Position":{"__isSmartRef__":true,"id":393},"priorExtent":{"__isSmartRef__":true,"id":394},"targetMorph":{"__isSmartRef__":true,"id":273},"titleBar":{"__isSmartRef__":true,"id":281},"contentOffset":{"__isSmartRef__":true,"id":277},"collapsedTransform":null,"collapsedExtent":null,"expandedTransform":null,"expandedExtent":null,"ignoreEventsOnExpand":false,"owner":{"__isSmartRef__":true,"id":0},"highlighted":true,"_Rotation":0,"_Scale":1,"prevDragPos":{"__isSmartRef__":true,"id":395},"showsHalos":false,"halos":[],"__SourceModuleName__":"Global.lively.morphic.Widgets","__LivelyClassName__":"lively.morphic.Window"},"273":{"submorphs":[],"scripts":[],"id":4655,"shape":{"__isSmartRef__":true,"id":274},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_Padding":{"__isSmartRef__":true,"id":190},"_ClipMode":"auto","fixedWidth":true,"_WhiteSpaceHandling":"pre-wrap","fixedHeight":true,"allowInput":true,"_FontFamily":"Helvetica","_Position":{"__isSmartRef__":true,"id":277},"_MaxTextWidth":639.4593803726978,"_MaxTextHeight":323.63420245806526,"textChunks":[{"__isSmartRef__":true,"id":278}],"owner":{"__isSmartRef__":true,"id":272},"layout":{"__isSmartRef__":true,"id":280},"priorSelectionRange":[412,412],"charsReplaced":"","lastFindLoc":488,"showsHalos":false,"halos":[],"isCopyMorphRef":true,"morphRefId":1,"__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.Text"},"274":{"_Position":{"__isSmartRef__":true,"id":275},"_Extent":{"__isSmartRef__":true,"id":276},"_BorderWidth":2,"_BorderColor":{"__isSmartRef__":true,"id":188},"_Fill":{"__isSmartRef__":true,"id":189},"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"275":{"x":0,"y":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"276":{"x":639.4593803726978,"y":323.63420245806526,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"277":{"x":0,"y":22,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"278":{"style":{"__isSmartRef__":true,"id":279},"morph":{"__isSmartRef__":true,"id":273},"__SourceModuleName__":"Global.lively.morphic.TextCore","storedString":"// http://code.google.com/p/google-diff-match-patch/wiki/LineOrWordDiffs\nfunction diff_lineMode(text1, text2) {\n var dmp = new diff_match_patch();\n var a = dmp.diff_linesToChars_(text1, text2);\n var lineText1 = a[0];\n var lineText2 = a[1];\n var lineArray = a[2];\n\n var diffs = dmp.diff_main(lineText1, lineText2, false);\n\n dmp.diff_charsToLines_(diffs, lineArray);\n return diffs;\n}\n\ndmp.diff_linesToChars\nre = new RegExp(/\\s/g)\nre.lastIndex = 3\nre.exec(\"in de\\nx\")\nre.lastIndex\n\"id\".indexOf(\" \")\n\n\n\n\n\n","__LivelyClassName__":"lively.morphic.TextChunk"},"279":{"__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextEmphasis"},"280":{"resizeWidth":true,"resizeHeight":true},"281":{"submorphs":[{"__isSmartRef__":true,"id":282},{"__isSmartRef__":true,"id":290},{"__isSmartRef__":true,"id":326},{"__isSmartRef__":true,"id":350}],"scripts":[],"id":4657,"shape":{"__isSmartRef__":true,"id":375},"droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":387},"_Position":{"__isSmartRef__":true,"id":388},"eventsAreIgnored":true,"windowMorph":{"__isSmartRef__":true,"id":272},"label":{"__isSmartRef__":true,"id":282},"closeButton":{"__isSmartRef__":true,"id":290},"menuButton":{"__isSmartRef__":true,"id":326},"collapseButton":{"__isSmartRef__":true,"id":350},"priorExtent":{"__isSmartRef__":true,"id":389},"owner":{"__isSmartRef__":true,"id":272},"__SourceModuleName__":"Global.lively.morphic.Widgets","__LivelyClassName__":"lively.morphic.TitleBar"},"282":{"submorphs":[],"scripts":[],"id":4658,"shape":{"__isSmartRef__":true,"id":283},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_Padding":{"__isSmartRef__":true,"id":286},"_ClipMode":"hidden","fixedWidth":false,"_WhiteSpaceHandling":"pre","fixedHeight":true,"allowInput":false,"_FontFamily":"Helvetica","_Position":{"__isSmartRef__":true,"id":287},"_MaxTextWidth":null,"_MaxTextHeight":22,"textChunks":[{"__isSmartRef__":true,"id":288}],"isLabel":true,"eventsAreIgnored":true,"_FontSize":10,"owner":{"__isSmartRef__":true,"id":281},"__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.Text"},"283":{"_Position":{"__isSmartRef__":true,"id":284},"_Extent":{"__isSmartRef__":true,"id":285},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":188},"_Fill":null,"_BorderRadius":0,"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"284":{"x":0,"y":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"285":{"x":72,"y":22,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"286":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Rectangle"},"287":{"x":283.7296901863489,"y":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"288":{"style":{"__isSmartRef__":true,"id":289},"morph":{"__isSmartRef__":true,"id":282},"__SourceModuleName__":"Global.lively.morphic.TextCore","storedString":"Workspace","__LivelyClassName__":"lively.morphic.TextChunk"},"289":{"__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextEmphasis"},"290":{"submorphs":[{"__isSmartRef__":true,"id":291}],"scripts":[],"id":4659,"shape":{"__isSmartRef__":true,"id":299},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":313},"value":false,"toggle":false,"isActive":true,"normalFill":{"__isSmartRef__":true,"id":303},"lighterFill":{"__isSmartRef__":true,"id":314},"label":{"__isSmartRef__":true,"id":291},"owner":{"__isSmartRef__":true,"id":281},"layout":{"__isSmartRef__":true,"id":323},"attributeConnections":[{"__isSmartRef__":true,"id":324},{"__isSmartRef__":true,"id":325}],"doNotSerialize":["$$getHelpText","$$fire"],"doNotCopyProperties":["$$getHelpText","$$fire"],"__SourceModuleName__":"Global.lively.morphic.Widgets","__LivelyClassName__":"lively.morphic.WindowControl"},"291":{"submorphs":[],"scripts":[],"id":4660,"shape":{"__isSmartRef__":true,"id":292},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_Padding":{"__isSmartRef__":true,"id":295},"_ClipMode":"hidden","fixedWidth":false,"_WhiteSpaceHandling":"pre","fixedHeight":true,"allowInput":false,"_FontFamily":"Helvetica","_Position":{"__isSmartRef__":true,"id":296},"_MaxTextWidth":null,"_MaxTextHeight":17,"textChunks":[{"__isSmartRef__":true,"id":297}],"owner":{"__isSmartRef__":true,"id":290},"isLabel":true,"eventsAreIgnored":true,"_FontSize":8,"__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.Text"},"292":{"_Position":{"__isSmartRef__":true,"id":293},"_Extent":{"__isSmartRef__":true,"id":294},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":188},"_Fill":null,"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"293":{"x":0,"y":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"294":{"x":17,"y":17,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"295":{"x":5,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Rectangle"},"296":{"x":0,"y":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"297":{"style":{"__isSmartRef__":true,"id":298},"morph":{"__isSmartRef__":true,"id":291},"__SourceModuleName__":"Global.lively.morphic.TextCore","storedString":"X","__LivelyClassName__":"lively.morphic.TextChunk"},"298":{"__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextEmphasis"},"299":{"_Position":{"__isSmartRef__":true,"id":300},"_Extent":{"__isSmartRef__":true,"id":301},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":302},"_Fill":{"__isSmartRef__":true,"id":303},"_StrokeOpacity":0,"_BorderRadius":5,"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"300":{"x":0,"y":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"301":{"x":17,"y":17,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"302":{"r":0.8392156862745098,"g":0.8392156862745098,"b":0.8392156862745098,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"303":{"stops":[{"__isSmartRef__":true,"id":304},{"__isSmartRef__":true,"id":306},{"__isSmartRef__":true,"id":308},{"__isSmartRef__":true,"id":310}],"vector":{"__isSmartRef__":true,"id":312},"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.LinearGradient"},"304":{"offset":0,"color":{"__isSmartRef__":true,"id":305}},"305":{"r":0.9600000000000001,"g":0.9600000000000001,"b":0.9600000000000001,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"306":{"offset":0.4,"color":{"__isSmartRef__":true,"id":307}},"307":{"r":0.8200000000000001,"g":0.8200000000000001,"b":0.8200000000000001,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"308":{"offset":0.6,"color":{"__isSmartRef__":true,"id":309}},"309":{"r":0.8200000000000001,"g":0.8200000000000001,"b":0.8200000000000001,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"310":{"offset":1,"color":{"__isSmartRef__":true,"id":311}},"311":{"r":0.94,"g":0.94,"b":0.94,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"312":{"x":0,"y":0,"width":0,"height":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Rectangle"},"313":{"x":619.4593803726978,"y":3,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"314":{"stops":[{"__isSmartRef__":true,"id":315},{"__isSmartRef__":true,"id":317},{"__isSmartRef__":true,"id":319},{"__isSmartRef__":true,"id":321}],"vector":{"__isSmartRef__":true,"id":312},"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.LinearGradient"},"315":{"offset":0,"color":{"__isSmartRef__":true,"id":316}},"316":{"r":0.98,"g":0.98,"b":0.98,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"317":{"offset":0.4,"color":{"__isSmartRef__":true,"id":318}},"318":{"r":0.91,"g":0.91,"b":0.91,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"319":{"offset":0.6,"color":{"__isSmartRef__":true,"id":320}},"320":{"r":0.91,"g":0.91,"b":0.91,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"321":{"offset":1,"color":{"__isSmartRef__":true,"id":322}},"322":{"r":0.97,"g":0.97,"b":0.97,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"323":{"moveHorizontal":true},"324":{"sourceObj":{"__isSmartRef__":true,"id":290},"sourceAttrName":"getHelpText","targetObj":{"__isSmartRef__":true,"id":272},"targetMethodName":"getCloseHelp","converter":null,"converterString":null,"updater":null,"updaterString":null,"__SourceModuleName__":"Global.lively.bindings","__LivelyClassName__":"AttributeConnection"},"325":{"sourceObj":{"__isSmartRef__":true,"id":290},"sourceAttrName":"fire","targetObj":{"__isSmartRef__":true,"id":272},"targetMethodName":"initiateShutdown","converter":null,"converterString":null,"updater":null,"updaterString":null,"__SourceModuleName__":"Global.lively.bindings","__LivelyClassName__":"AttributeConnection"},"326":{"submorphs":[{"__isSmartRef__":true,"id":327}],"scripts":[],"id":4661,"shape":{"__isSmartRef__":true,"id":335},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":338},"value":false,"toggle":false,"isActive":true,"normalFill":{"__isSmartRef__":true,"id":303},"lighterFill":{"__isSmartRef__":true,"id":339},"label":{"__isSmartRef__":true,"id":327},"owner":{"__isSmartRef__":true,"id":281},"attributeConnections":[{"__isSmartRef__":true,"id":348},{"__isSmartRef__":true,"id":349}],"doNotSerialize":["$$getHelpText","$$fire"],"doNotCopyProperties":["$$getHelpText","$$fire"],"__SourceModuleName__":"Global.lively.morphic.Widgets","__LivelyClassName__":"lively.morphic.WindowControl"},"327":{"submorphs":[],"scripts":[],"id":4662,"shape":{"__isSmartRef__":true,"id":328},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_Padding":{"__isSmartRef__":true,"id":331},"_ClipMode":"hidden","fixedWidth":false,"_WhiteSpaceHandling":"pre","fixedHeight":true,"allowInput":false,"_FontFamily":"Helvetica","_Position":{"__isSmartRef__":true,"id":332},"_MaxTextWidth":null,"_MaxTextHeight":17,"textChunks":[{"__isSmartRef__":true,"id":333}],"owner":{"__isSmartRef__":true,"id":326},"isLabel":true,"eventsAreIgnored":true,"_FontSize":8,"__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.Text"},"328":{"_Position":{"__isSmartRef__":true,"id":329},"_Extent":{"__isSmartRef__":true,"id":330},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":188},"_Fill":null,"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"329":{"x":0,"y":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"330":{"x":17,"y":17,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"331":{"x":5,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Rectangle"},"332":{"x":0,"y":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"333":{"style":{"__isSmartRef__":true,"id":334},"morph":{"__isSmartRef__":true,"id":327},"__SourceModuleName__":"Global.lively.morphic.TextCore","storedString":"M","__LivelyClassName__":"lively.morphic.TextChunk"},"334":{"__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextEmphasis"},"335":{"_Position":{"__isSmartRef__":true,"id":336},"_Extent":{"__isSmartRef__":true,"id":337},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":302},"_Fill":{"__isSmartRef__":true,"id":303},"_StrokeOpacity":0,"_BorderRadius":5,"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"336":{"x":0,"y":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"337":{"x":17,"y":17,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"338":{"x":3,"y":3,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"339":{"stops":[{"__isSmartRef__":true,"id":340},{"__isSmartRef__":true,"id":342},{"__isSmartRef__":true,"id":344},{"__isSmartRef__":true,"id":346}],"vector":{"__isSmartRef__":true,"id":312},"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.LinearGradient"},"340":{"offset":0,"color":{"__isSmartRef__":true,"id":341}},"341":{"r":0.98,"g":0.98,"b":0.98,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"342":{"offset":0.4,"color":{"__isSmartRef__":true,"id":343}},"343":{"r":0.91,"g":0.91,"b":0.91,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"344":{"offset":0.6,"color":{"__isSmartRef__":true,"id":345}},"345":{"r":0.91,"g":0.91,"b":0.91,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"346":{"offset":1,"color":{"__isSmartRef__":true,"id":347}},"347":{"r":0.97,"g":0.97,"b":0.97,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"348":{"sourceObj":{"__isSmartRef__":true,"id":326},"sourceAttrName":"getHelpText","targetObj":{"__isSmartRef__":true,"id":272},"targetMethodName":"getMenuHelp","converter":null,"converterString":null,"updater":null,"updaterString":null,"__SourceModuleName__":"Global.lively.bindings","__LivelyClassName__":"AttributeConnection"},"349":{"sourceObj":{"__isSmartRef__":true,"id":326},"sourceAttrName":"fire","targetObj":{"__isSmartRef__":true,"id":272},"targetMethodName":"showTargetMorphMenu","converter":null,"converterString":null,"updater":null,"updaterString":null,"__SourceModuleName__":"Global.lively.bindings","__LivelyClassName__":"AttributeConnection"},"350":{"submorphs":[{"__isSmartRef__":true,"id":351}],"scripts":[],"id":4663,"shape":{"__isSmartRef__":true,"id":359},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":362},"value":false,"toggle":false,"isActive":true,"normalFill":{"__isSmartRef__":true,"id":303},"lighterFill":{"__isSmartRef__":true,"id":363},"label":{"__isSmartRef__":true,"id":351},"owner":{"__isSmartRef__":true,"id":281},"layout":{"__isSmartRef__":true,"id":372},"attributeConnections":[{"__isSmartRef__":true,"id":373},{"__isSmartRef__":true,"id":374}],"doNotSerialize":["$$getHelpText","$$fire"],"doNotCopyProperties":["$$getHelpText","$$fire"],"__SourceModuleName__":"Global.lively.morphic.Widgets","__LivelyClassName__":"lively.morphic.WindowControl"},"351":{"submorphs":[],"scripts":[],"id":4664,"shape":{"__isSmartRef__":true,"id":352},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_Padding":{"__isSmartRef__":true,"id":355},"_ClipMode":"hidden","fixedWidth":false,"_WhiteSpaceHandling":"pre","fixedHeight":true,"allowInput":false,"_FontFamily":"Helvetica","_Position":{"__isSmartRef__":true,"id":356},"_MaxTextWidth":null,"_MaxTextHeight":17,"textChunks":[{"__isSmartRef__":true,"id":357}],"owner":{"__isSmartRef__":true,"id":350},"isLabel":true,"eventsAreIgnored":true,"_FontSize":8,"__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.Text"},"352":{"_Position":{"__isSmartRef__":true,"id":353},"_Extent":{"__isSmartRef__":true,"id":354},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":188},"_Fill":null,"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"353":{"x":0,"y":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"354":{"x":17,"y":17,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"355":{"x":5,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Rectangle"},"356":{"x":0,"y":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"357":{"style":{"__isSmartRef__":true,"id":358},"morph":{"__isSmartRef__":true,"id":351},"__SourceModuleName__":"Global.lively.morphic.TextCore","storedString":"–","__LivelyClassName__":"lively.morphic.TextChunk"},"358":{"__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextEmphasis"},"359":{"_Position":{"__isSmartRef__":true,"id":360},"_Extent":{"__isSmartRef__":true,"id":361},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":302},"_Fill":{"__isSmartRef__":true,"id":303},"_StrokeOpacity":0,"_BorderRadius":5,"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"360":{"x":0,"y":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"361":{"x":17,"y":17,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"362":{"x":600.4593803726978,"y":3,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"363":{"stops":[{"__isSmartRef__":true,"id":364},{"__isSmartRef__":true,"id":366},{"__isSmartRef__":true,"id":368},{"__isSmartRef__":true,"id":370}],"vector":{"__isSmartRef__":true,"id":312},"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.LinearGradient"},"364":{"offset":0,"color":{"__isSmartRef__":true,"id":365}},"365":{"r":0.98,"g":0.98,"b":0.98,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"366":{"offset":0.4,"color":{"__isSmartRef__":true,"id":367}},"367":{"r":0.91,"g":0.91,"b":0.91,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"368":{"offset":0.6,"color":{"__isSmartRef__":true,"id":369}},"369":{"r":0.91,"g":0.91,"b":0.91,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"370":{"offset":1,"color":{"__isSmartRef__":true,"id":371}},"371":{"r":0.97,"g":0.97,"b":0.97,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"372":{"moveHorizontal":true},"373":{"sourceObj":{"__isSmartRef__":true,"id":350},"sourceAttrName":"getHelpText","targetObj":{"__isSmartRef__":true,"id":272},"targetMethodName":"getCollapseHelp","converter":null,"converterString":null,"updater":null,"updaterString":null,"__SourceModuleName__":"Global.lively.bindings","__LivelyClassName__":"AttributeConnection"},"374":{"sourceObj":{"__isSmartRef__":true,"id":350},"sourceAttrName":"fire","targetObj":{"__isSmartRef__":true,"id":272},"targetMethodName":"toggleCollapse","converter":null,"converterString":null,"updater":null,"updaterString":null,"__SourceModuleName__":"Global.lively.bindings","__LivelyClassName__":"AttributeConnection"},"375":{"_Position":{"__isSmartRef__":true,"id":376},"_Extent":{"__isSmartRef__":true,"id":377},"_BorderWidth":2,"_BorderColor":{"__isSmartRef__":true,"id":378},"_Fill":{"__isSmartRef__":true,"id":379},"_StrokeOpacity":1,"_BorderRadius":"8px 8px 0px 0px","__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"376":{"x":0,"y":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"377":{"x":639.4593803726978,"y":22,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"378":{"r":0.4,"g":0.4,"b":0.4,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"379":{"stops":[{"__isSmartRef__":true,"id":380},{"__isSmartRef__":true,"id":382},{"__isSmartRef__":true,"id":384}],"vector":{"__isSmartRef__":true,"id":386},"__LivelyClassName__":"lively.morphic.LinearGradient","__SourceModuleName__":"Global.lively.morphic.Shapes"},"380":{"offset":0,"color":{"__isSmartRef__":true,"id":381}},"381":{"r":0.7200000000000001,"g":0.7200000000000001,"b":0.7200000000000001,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global"},"382":{"offset":0.6,"color":{"__isSmartRef__":true,"id":383}},"383":{"r":0.9,"g":0.9,"b":0.9,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global"},"384":{"offset":1,"color":{"__isSmartRef__":true,"id":385}},"385":{"r":0.7200000000000001,"g":0.7200000000000001,"b":0.7200000000000001,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global"},"386":{"x":0,"y":1,"width":0,"height":-1,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"387":{"resizeWidth":true,"adjustForNewBounds":true},"388":{"x":0,"y":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"389":{"x":639.4593803726978,"y":22,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"390":{"_BorderWidth":0,"_Fill":null,"_StrokeOpacity":0,"_BorderRadius":0,"_Extent":{"__isSmartRef__":true,"id":391},"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"391":{"x":639.4593803726978,"y":345.63420245806526,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"392":{"adjustForNewBounds":true},"393":{"x":1776.329243277191,"y":18.848819479778484,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"394":{"x":639.4593803726978,"y":345.63420245806526,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"395":{"x":1961.1887772578796,"y":32.86908565236669,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"396":{"submorphs":[{"__isSmartRef__":true,"id":397},{"__isSmartRef__":true,"id":407},{"__isSmartRef__":true,"id":443},{"__isSmartRef__":true,"id":463}],"scripts":[],"id":452,"shape":{"__isSmartRef__":true,"id":474},"droppingEnabled":true,"halosEnabled":true,"registeredForMouseEvents":true,"_Position":{"__isSmartRef__":true,"id":479},"showsHalos":false,"halos":[],"name":"SearchSourceCode","partsBinMetaInfo":{"__isSmartRef__":true,"id":480},"__SourceModuleName__":"Global.lively.morphic.Core","_Rotation":0,"_Scale":1.005056294026597,"owner":{"__isSmartRef__":true,"id":0},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":481},"__LivelyClassName__":"lively.morphic.Box"},"397":{"submorphs":[],"scripts":[],"id":66,"shape":{"__isSmartRef__":true,"id":398},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"fixedWidth":true,"fixedHeight":true,"allowsInput":true,"_OverflowMode":"hidden","_FontFamily":"Arial, sans-serif","registeredForMouseEvents":true,"_Position":{"__isSmartRef__":true,"id":402},"_MaxTextWidth":292,"_MaxTextHeight":25,"textColor":{"__isSmartRef__":true,"id":401},"showsHalos":false,"halos":[],"_FontSize":14,"__SourceModuleName__":"Global.lively.morphic.TextCore","_Rotation":0,"name":"searchText","partsBinMetaInfo":{"__isSmartRef__":true,"id":403},"owner":{"__isSmartRef__":true,"id":396},"charsReplaced":"search strin","lastFindLoc":-12,"attributeConnections":[{"__isSmartRef__":true,"id":404}],"doNotSerialize":["$$savedTextString"],"doNotCopyProperties":["$$savedTextString"],"isInputLine":true,"_WhiteSpaceHandling":"pre-wrap","allowInput":true,"textChunks":[{"__isSmartRef__":true,"id":405}],"priorSelectionRange":[11,11],"prevScroll":[0,0],"savedTextString":"OverflowMode","__LivelyClassName__":"lively.morphic.Text"},"398":{"fill":null,"__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":{"__isSmartRef__":true,"id":399},"_Extent":{"__isSmartRef__":true,"id":400},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":401},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"399":{"x":0,"y":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"400":{"x":292,"y":25,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"401":{"r":0,"g":0,"b":0,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"402":{"x":17,"y":24,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"403":{"partsSpaceName":"PartsBin/NewWorld","__SourceModuleName__":"Global.lively.PartsBin","__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo"},"404":{"sourceObj":{"__isSmartRef__":true,"id":397},"sourceAttrName":"savedTextString","targetObj":{"__isSmartRef__":true,"id":396},"targetMethodName":"search","__SourceModuleName__":"Global.lively.bindings","__LivelyClassName__":"AttributeConnection"},"405":{"style":{"__isSmartRef__":true,"id":406},"morph":{"__isSmartRef__":true,"id":397},"__SourceModuleName__":"Global.lively.morphic.TextCore","storedString":"OverflowMode","__LivelyClassName__":"lively.morphic.TextChunk"},"406":{"__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextEmphasis"},"407":{"submorphs":[{"__isSmartRef__":true,"id":408}],"scripts":[],"id":2074,"shape":{"__isSmartRef__":true,"id":417},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"registeredForMouseEvents":true,"_Position":{"__isSmartRef__":true,"id":431},"value":false,"toggle":false,"isActive":true,"normalFill":{"__isSmartRef__":true,"id":421},"lighterFill":{"__isSmartRef__":true,"id":432},"label":{"__isSmartRef__":true,"id":408},"showsHalos":false,"halos":[],"name":"searchButton","partsBinMetaInfo":{"__isSmartRef__":true,"id":441},"__SourceModuleName__":"Global.lively.morphic.Widgets","owner":{"__isSmartRef__":true,"id":396},"_Rotation":0,"attributeConnections":[{"__isSmartRef__":true,"id":442}],"doNotSerialize":["$$fire"],"doNotCopyProperties":["$$fire"],"__LivelyClassName__":"lively.morphic.Button"},"408":{"submorphs":[],"scripts":[],"id":2075,"shape":{"__isSmartRef__":true,"id":409},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"fixedWidth":false,"_WhiteSpaceHandling":"pre","fixedHeight":true,"allowInput":false,"_OverflowMode":"hidden","_FontFamily":"Helvetica","registeredForMouseEvents":true,"_Position":{"__isSmartRef__":true,"id":413},"_MaxTextWidth":null,"_MaxTextHeight":30,"padding":{"__isSmartRef__":true,"id":414},"_Padding":{"__isSmartRef__":true,"id":414},"owner":{"__isSmartRef__":true,"id":407},"isLabel":true,"eventsAreIgnored":true,"__SourceModuleName__":"Global.lively.morphic.TextCore","textStyle":null,"textChunks":[{"__isSmartRef__":true,"id":415}],"prevScroll":[0,0],"__LivelyClassName__":"lively.morphic.Text"},"409":{"position":{"__isSmartRef__":true,"id":410},"_Extent":{"__isSmartRef__":true,"id":411},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":412},"_Fill":null,"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"410":{"x":0,"y":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"411":{"x":58,"y":30,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"412":{"r":0,"g":0,"b":0,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"413":{"x":0,"y":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"414":{"x":5,"y":5,"width":0,"height":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Rectangle"},"415":{"style":{"__isSmartRef__":true,"id":416},"morph":{"__isSmartRef__":true,"id":408},"__SourceModuleName__":"Global.lively.morphic.TextCore","storedString":"search","__LivelyClassName__":"lively.morphic.TextChunk"},"416":{"__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextEmphasis"},"417":{"position":{"__isSmartRef__":true,"id":418},"_Extent":{"__isSmartRef__":true,"id":419},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":420},"_Fill":{"__isSmartRef__":true,"id":421},"_BorderRadius":5,"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"418":{"x":0,"y":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"419":{"x":100,"y":30,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"420":{"r":0.4,"g":0.4,"b":0.4,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"421":{"stops":[{"__isSmartRef__":true,"id":422},{"__isSmartRef__":true,"id":424},{"__isSmartRef__":true,"id":426},{"__isSmartRef__":true,"id":428}],"vector":{"__isSmartRef__":true,"id":430},"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.LinearGradient"},"422":{"offset":0,"color":{"__isSmartRef__":true,"id":423}},"423":{"r":0.9600000000000001,"g":0.9600000000000001,"b":0.9600000000000001,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"424":{"offset":0.4,"color":{"__isSmartRef__":true,"id":425}},"425":{"r":0.8200000000000001,"g":0.8200000000000001,"b":0.8200000000000001,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"426":{"offset":0.6,"color":{"__isSmartRef__":true,"id":427}},"427":{"r":0.8200000000000001,"g":0.8200000000000001,"b":0.8200000000000001,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"428":{"offset":1,"color":{"__isSmartRef__":true,"id":429}},"429":{"r":0.94,"g":0.94,"b":0.94,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"430":{"x":0,"y":0,"width":0,"height":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Rectangle"},"431":{"x":329,"y":23,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"432":{"stops":[{"__isSmartRef__":true,"id":433},{"__isSmartRef__":true,"id":435},{"__isSmartRef__":true,"id":437},{"__isSmartRef__":true,"id":439}],"vector":{"__isSmartRef__":true,"id":430},"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.LinearGradient"},"433":{"offset":0,"color":{"__isSmartRef__":true,"id":434}},"434":{"r":0.98,"g":0.98,"b":0.98,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"435":{"offset":0.4,"color":{"__isSmartRef__":true,"id":436}},"436":{"r":0.91,"g":0.91,"b":0.91,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"437":{"offset":0.6,"color":{"__isSmartRef__":true,"id":438}},"438":{"r":0.91,"g":0.91,"b":0.91,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"439":{"offset":1,"color":{"__isSmartRef__":true,"id":440}},"440":{"r":0.97,"g":0.97,"b":0.97,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"441":{"partsSpaceName":"PartsBin/NewWorld","__SourceModuleName__":"Global.lively.PartsBin","__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo"},"442":{"sourceObj":{"__isSmartRef__":true,"id":407},"sourceAttrName":"fire","targetObj":{"__isSmartRef__":true,"id":397},"targetMethodName":"doSave","__SourceModuleName__":"Global.lively.bindings","__LivelyClassName__":"AttributeConnection"},"443":{"submorphs":[],"scripts":[],"id":740,"shape":{"__isSmartRef__":true,"id":444},"droppingEnabled":true,"halosEnabled":true,"registeredForMouseEvents":true,"_Position":{"__isSmartRef__":true,"id":449},"itemList":[{"__isSmartRef__":true,"id":450},{"__isSmartRef__":true,"id":459},{"__isSmartRef__":true,"id":460}],"showsHalos":false,"halos":[],"name":"searchResultList","partsBinMetaInfo":{"__isSmartRef__":true,"id":461},"__SourceModuleName__":"Global.lively.morphic.Core","owner":{"__isSmartRef__":true,"id":396},"_Rotation":0,"attributeConnections":[{"__isSmartRef__":true,"id":462}],"doNotSerialize":["$$selection"],"doNotCopyProperties":["$$selection"],"selectedLineNo":0,"selection":{"__isSmartRef__":true,"id":451},"prevScroll":[0,0],"__LivelyClassName__":"lively.morphic.List"},"444":{"position":{"__isSmartRef__":true,"id":445},"_Extent":{"__isSmartRef__":true,"id":446},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":447},"_Fill":{"__isSmartRef__":true,"id":448},"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"445":{"x":0,"y":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"446":{"x":630.4030070142296,"y":231.99398496993695,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"447":{"r":0,"g":0,"b":0,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"448":{"r":0.95,"g":0.95,"b":0.95,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"449":{"x":8,"y":60,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"450":{"isListItem":true,"value":{"__isSmartRef__":true,"id":451},"string":"lively.morphic.ObjectMigration(moduleDef,lively/morphic/ObjectMigration.js)"},"451":{"name":"lively.morphic.ObjectMigration","type":"moduleDef","startIndex":0,"stopIndex":2165,"fileName":"lively/morphic/ObjectMigration.js","_subElements":[{"__isSmartRef__":true,"id":452},{"__isSmartRef__":true,"id":454},{"__isSmartRef__":true,"id":455},{"__isSmartRef__":true,"id":456},{"__isSmartRef__":true,"id":457},{"__isSmartRef__":true,"id":458}],"sourceControl":{"__isSmartRef__":true,"id":453},"__SourceModuleName__":"Global.lively.ide.FileParsing","__LivelyClassName__":"lively.ide.FileFragment"},"452":{"name":null,"type":"comment","startIndex":115,"stopIndex":488,"fileName":"lively/morphic/ObjectMigration.js","_subElements":[],"sourceControl":{"__isSmartRef__":true,"id":453},"startLineNumber":2,"__SourceModuleName__":"Global.lively.ide.FileParsing","__LivelyClassName__":"lively.ide.FileFragment"},"453":{"__SourceModuleName__":"Global.lively.ide.SourceDatabase","__LivelyClassName__":"AnotherSourceDatabase"},"454":{"name":null,"type":"unknown","startIndex":489,"stopIndex":696,"fileName":"lively/morphic/ObjectMigration.js","_subElements":[],"sourceControl":{"__isSmartRef__":true,"id":453},"__SourceModuleName__":"Global.lively.ide.FileParsing","__LivelyClassName__":"lively.ide.FileFragment"},"455":{"name":null,"type":"unknown","startIndex":697,"stopIndex":1080,"fileName":"lively/morphic/ObjectMigration.js","_subElements":[],"sourceControl":{"__isSmartRef__":true,"id":453},"__SourceModuleName__":"Global.lively.ide.FileParsing","__LivelyClassName__":"lively.ide.FileFragment"},"456":{"name":null,"type":"comment","startIndex":1081,"stopIndex":1081,"fileName":"lively/morphic/ObjectMigration.js","_subElements":[],"sourceControl":{"__isSmartRef__":true,"id":453},"__SourceModuleName__":"Global.lively.ide.FileParsing","__LivelyClassName__":"lively.ide.FileFragment"},"457":{"name":null,"type":"unknown","startIndex":1082,"stopIndex":2145,"fileName":"lively/morphic/ObjectMigration.js","_subElements":[],"sourceControl":{"__isSmartRef__":true,"id":453},"__SourceModuleName__":"Global.lively.ide.FileParsing","__LivelyClassName__":"lively.ide.FileFragment"},"458":{"name":null,"type":"comment","startIndex":2146,"stopIndex":2146,"fileName":"lively/morphic/ObjectMigration.js","_subElements":[],"sourceControl":{"__isSmartRef__":true,"id":453},"__SourceModuleName__":"Global.lively.ide.FileParsing","__LivelyClassName__":"lively.ide.FileFragment"},"459":{"isListItem":true,"value":{"__isSmartRef__":true,"id":452},"string":"null(comment,lively/morphic/ObjectMigration.js)"},"460":{"isListItem":true,"value":{"__isSmartRef__":true,"id":455},"string":"null(unknown,lively/morphic/ObjectMigration.js)"},"461":{"partsSpaceName":"PartsBin/NewWorld","__SourceModuleName__":"Global.lively.PartsBin","__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo"},"462":{"sourceObj":{"__isSmartRef__":true,"id":443},"sourceAttrName":"selection","targetObj":{"__isSmartRef__":true,"id":396},"targetMethodName":"browse","__SourceModuleName__":"Global.lively.bindings","__LivelyClassName__":"AttributeConnection"},"463":{"submorphs":[],"scripts":[],"id":66,"shape":{"__isSmartRef__":true,"id":464},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"fixedWidth":true,"fixedHeight":false,"allowsInput":true,"_OverflowMode":"visible","_FontFamily":"Arial, sans-serif","registeredForMouseEvents":true,"_Position":{"__isSmartRef__":true,"id":468},"_MaxTextWidth":168,"_MaxTextHeight":null,"textColor":{"__isSmartRef__":true,"id":467},"showsHalos":false,"halos":[],"_FontSize":9,"__SourceModuleName__":"Global.lively.morphic.TextCore","_Rotation":0,"name":"Text","partsBinMetaInfo":{"__isSmartRef__":true,"id":469},"textChunks":[{"__isSmartRef__":true,"id":470},{"__isSmartRef__":true,"id":472}],"charsReplaced":"Rich Text :-)","lastFindLoc":-13,"priorSelectionRange":[0,0],"prevScroll":[0,0],"owner":{"__isSmartRef__":true,"id":396},"__LivelyClassName__":"lively.morphic.Text"},"464":{"fill":null,"__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":{"__isSmartRef__":true,"id":465},"_Extent":{"__isSmartRef__":true,"id":466},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":467},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"465":{"x":0,"y":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"466":{"x":168,"y":14,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"467":{"r":0,"g":0,"b":0,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"468":{"x":1,"y":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"469":{"partsSpaceName":"PartsBin/NewWorld","__SourceModuleName__":"Global.lively.PartsBin","migrationLevel":1,"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo"},"470":{"style":{"__isSmartRef__":true,"id":471},"morph":{"__isSmartRef__":true,"id":463},"__SourceModuleName__":"Global.lively.morphic.TextCore","storedString":"Search Parsed Source Code","__LivelyClassName__":"lively.morphic.TextChunk"},"471":{"fontWeight":"bold","__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextEmphasis"},"472":{"style":{"__isSmartRef__":true,"id":473},"morph":{"__isSmartRef__":true,"id":463},"__SourceModuleName__":"Global.lively.morphic.TextCore","storedString":"\n","__LivelyClassName__":"lively.morphic.TextChunk"},"473":{"__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextEmphasis"},"474":{"position":{"__isSmartRef__":true,"id":475},"_Extent":{"__isSmartRef__":true,"id":476},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":477},"_Fill":{"__isSmartRef__":true,"id":478},"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"475":{"x":0,"y":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"476":{"x":653.4170420843768,"y":302.002005010021,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"477":{"r":0,"g":0,"b":0,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"478":{"r":1,"g":1,"b":1,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"479":{"x":862.6157299002813,"y":1575.6475816721822,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"480":{"partsSpaceName":"PartsBin/NewWorld","__SourceModuleName__":"Global.lively.PartsBin","migrationLevel":1,"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo"},"481":{"search":{"__isSmartRef__":true,"id":482},"browse":{"__isSmartRef__":true,"id":485},"reset":{"__isSmartRef__":true,"id":488}},"482":{"varMapping":{"__isSmartRef__":true,"id":483},"source":"function search(searchString) {\n\tvar finds = [],\n\t\tfileFragments = lively.ide.startSourceControl().allModules().invoke('ast');\n\tfileFragments.forEach(function(ff) {\n\t\tfinds.pushAll(ff.flattened().select(function(ea) {\n\t\t\treturn ea.getSourceCode().include(searchString)\n\t\t}))\n\t})\n\tvar items = finds.collect(function(ea) {\n\t\treturn {\n\t\t\tisListItem: true,\n\t\t\tvalue: ea,\n\t\t\tstring: ea.name + '(' + ea.type + ',' + ea.fileName + ')',\n\t\t}\n\t})\n\tthis.get('searchResultList').updateList(items);\n}","funcProperties":{"__isSmartRef__":true,"id":484},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"483":{"this":{"__isSmartRef__":true,"id":396}},"484":{},"485":{"varMapping":{"__isSmartRef__":true,"id":486},"source":"function browse(fileFragment) {\n\tfileFragment && fileFragment.browseIt()\n}","funcProperties":{"__isSmartRef__":true,"id":487},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"486":{"this":{"__isSmartRef__":true,"id":396}},"487":{},"488":{"varMapping":{"__isSmartRef__":true,"id":489},"source":"function reset() {\n\tthis.get('searchResultList').updateList([]);\n\tthis.get('searchResultList').setSelection(null);\n\tthis.get('searchText').setTextString('enter search term here');\n}","funcProperties":{"__isSmartRef__":true,"id":490},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"489":{"this":{"__isSmartRef__":true,"id":396}},"490":{},"491":{"submorphs":[{"__isSmartRef__":true,"id":492},{"__isSmartRef__":true,"id":594}],"scripts":[],"id":264,"shape":{"__isSmartRef__":true,"id":692},"droppingEnabled":true,"halosEnabled":true,"draggingEnabled":true,"layout":{"__isSmartRef__":true,"id":694},"registeredForMouseEvents":true,"_Position":{"__isSmartRef__":true,"id":695},"priorExtent":{"__isSmartRef__":true,"id":696},"targetMorph":{"__isSmartRef__":true,"id":595},"titleBar":{"__isSmartRef__":true,"id":492},"contentOffset":{"__isSmartRef__":true,"id":697},"collapsedTransform":null,"collapsedExtent":null,"expandedTransform":null,"expandedExtent":null,"ignoreEventsOnExpand":false,"highlighted":true,"_Rotation":0,"prevDragPos":{"__isSmartRef__":true,"id":698},"showsHalos":false,"halos":[],"name":"ScriptEditor","partsBinMetaInfo":{"__isSmartRef__":true,"id":699},"__SourceModuleName__":"Global.lively.morphic.Widgets","_Scale":1,"owner":{"__isSmartRef__":true,"id":0},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":700},"__LivelyClassName__":"lively.morphic.Window"},"492":{"submorphs":[{"__isSmartRef__":true,"id":493},{"__isSmartRef__":true,"id":502},{"__isSmartRef__":true,"id":538},{"__isSmartRef__":true,"id":562}],"scripts":[],"id":265,"shape":{"__isSmartRef__":true,"id":587},"droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":591},"registeredForMouseEvents":true,"_Position":{"__isSmartRef__":true,"id":592},"eventsAreIgnored":true,"windowMorph":{"__isSmartRef__":true,"id":491},"label":{"__isSmartRef__":true,"id":493},"closeButton":{"__isSmartRef__":true,"id":502},"menuButton":{"__isSmartRef__":true,"id":538},"collapseButton":{"__isSmartRef__":true,"id":562},"priorExtent":{"__isSmartRef__":true,"id":593},"owner":{"__isSmartRef__":true,"id":491},"__SourceModuleName__":"Global.lively.morphic.Widgets","__LivelyClassName__":"lively.morphic.TitleBar"},"493":{"submorphs":[],"scripts":[],"id":266,"shape":{"__isSmartRef__":true,"id":494},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"fixedWidth":false,"_WhiteSpaceHandling":"pre","fixedHeight":true,"allowInput":false,"_OverflowMode":"hidden","_FontFamily":"Helvetica","registeredForMouseEvents":true,"_Position":{"__isSmartRef__":true,"id":498},"_MaxTextWidth":null,"_MaxTextHeight":22,"textStyle":null,"isLabel":true,"eventsAreIgnored":true,"padding":{"__isSmartRef__":true,"id":499},"_FontSize":10,"_Padding":{"__isSmartRef__":true,"id":499},"owner":{"__isSmartRef__":true,"id":492},"__SourceModuleName__":"Global.lively.morphic.TextCore","textChunks":[{"__isSmartRef__":true,"id":500}],"__LivelyClassName__":"lively.morphic.Text"},"494":{"position":{"__isSmartRef__":true,"id":495},"_Extent":{"__isSmartRef__":true,"id":496},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":497},"_Fill":null,"_BorderRadius":0,"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"495":{"x":0,"y":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"496":{"x":68,"y":22,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"497":{"r":0,"g":0,"b":0,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"498":{"x":347,"y":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"499":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Rectangle"},"500":{"style":{"__isSmartRef__":true,"id":501},"morph":{"__isSmartRef__":true,"id":493},"__SourceModuleName__":"Global.lively.morphic.TextCore","storedString":"ScriptEditor","__LivelyClassName__":"lively.morphic.TextChunk"},"501":{"__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextEmphasis"},"502":{"submorphs":[{"__isSmartRef__":true,"id":503}],"scripts":[],"id":267,"shape":{"__isSmartRef__":true,"id":511},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"registeredForMouseEvents":true,"_Position":{"__isSmartRef__":true,"id":525},"value":false,"toggle":false,"isActive":true,"normalFill":{"__isSmartRef__":true,"id":515},"lighterFill":{"__isSmartRef__":true,"id":526},"label":{"__isSmartRef__":true,"id":503},"owner":{"__isSmartRef__":true,"id":492},"layout":{"__isSmartRef__":true,"id":535},"attributeConnections":[{"__isSmartRef__":true,"id":536},{"__isSmartRef__":true,"id":537}],"doNotSerialize":["$$getHelpText","$$fire"],"doNotCopyProperties":["$$getHelpText","$$fire"],"__SourceModuleName__":"Global.lively.morphic.Widgets","__LivelyClassName__":"lively.morphic.WindowControl"},"503":{"submorphs":[],"scripts":[],"id":268,"shape":{"__isSmartRef__":true,"id":504},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"fixedWidth":false,"_WhiteSpaceHandling":"pre","fixedHeight":true,"allowInput":false,"_OverflowMode":"hidden","_FontFamily":"Helvetica","registeredForMouseEvents":true,"_Position":{"__isSmartRef__":true,"id":507},"_MaxTextWidth":null,"_MaxTextHeight":17,"textStyle":null,"padding":{"__isSmartRef__":true,"id":508},"_Padding":{"__isSmartRef__":true,"id":508},"owner":{"__isSmartRef__":true,"id":502},"isLabel":true,"eventsAreIgnored":true,"_FontSize":8,"__SourceModuleName__":"Global.lively.morphic.TextCore","textChunks":[{"__isSmartRef__":true,"id":509}],"__LivelyClassName__":"lively.morphic.Text"},"504":{"position":{"__isSmartRef__":true,"id":505},"_Extent":{"__isSmartRef__":true,"id":506},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":497},"_Fill":null,"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"505":{"x":0,"y":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"506":{"x":17,"y":17,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"507":{"x":0,"y":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"508":{"x":5,"y":5,"width":0,"height":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Rectangle"},"509":{"style":{"__isSmartRef__":true,"id":510},"morph":{"__isSmartRef__":true,"id":503},"__SourceModuleName__":"Global.lively.morphic.TextCore","storedString":"X","__LivelyClassName__":"lively.morphic.TextChunk"},"510":{"__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextEmphasis"},"511":{"position":{"__isSmartRef__":true,"id":512},"_Extent":{"__isSmartRef__":true,"id":513},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":514},"_Fill":{"__isSmartRef__":true,"id":515},"_StrokeOpacity":0,"_BorderRadius":5,"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"512":{"x":0,"y":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"513":{"x":17,"y":17,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"514":{"r":0.4,"g":0.4,"b":0.4,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"515":{"stops":[{"__isSmartRef__":true,"id":516},{"__isSmartRef__":true,"id":518},{"__isSmartRef__":true,"id":520},{"__isSmartRef__":true,"id":522}],"vector":{"__isSmartRef__":true,"id":524},"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.LinearGradient"},"516":{"offset":0,"color":{"__isSmartRef__":true,"id":517}},"517":{"r":0.9600000000000001,"g":0.9600000000000001,"b":0.9600000000000001,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"518":{"offset":0.4,"color":{"__isSmartRef__":true,"id":519}},"519":{"r":0.8200000000000001,"g":0.8200000000000001,"b":0.8200000000000001,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"520":{"offset":0.6,"color":{"__isSmartRef__":true,"id":521}},"521":{"r":0.8200000000000001,"g":0.8200000000000001,"b":0.8200000000000001,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"522":{"offset":1,"color":{"__isSmartRef__":true,"id":523}},"523":{"r":0.94,"g":0.94,"b":0.94,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"524":{"x":0,"y":0,"width":0,"height":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Rectangle"},"525":{"x":742,"y":3,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"526":{"stops":[{"__isSmartRef__":true,"id":527},{"__isSmartRef__":true,"id":529},{"__isSmartRef__":true,"id":531},{"__isSmartRef__":true,"id":533}],"vector":{"__isSmartRef__":true,"id":524},"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.LinearGradient"},"527":{"offset":0,"color":{"__isSmartRef__":true,"id":528}},"528":{"r":0.98,"g":0.98,"b":0.98,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"529":{"offset":0.4,"color":{"__isSmartRef__":true,"id":530}},"530":{"r":0.91,"g":0.91,"b":0.91,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"531":{"offset":0.6,"color":{"__isSmartRef__":true,"id":532}},"532":{"r":0.91,"g":0.91,"b":0.91,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"533":{"offset":1,"color":{"__isSmartRef__":true,"id":534}},"534":{"r":0.97,"g":0.97,"b":0.97,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"535":{"moveHorizontal":true},"536":{"sourceObj":{"__isSmartRef__":true,"id":502},"sourceAttrName":"getHelpText","targetObj":{"__isSmartRef__":true,"id":491},"targetMethodName":"getCloseHelp","converter":null,"converterString":null,"updater":null,"updaterString":null,"__SourceModuleName__":"Global.lively.bindings","__LivelyClassName__":"AttributeConnection"},"537":{"sourceObj":{"__isSmartRef__":true,"id":502},"sourceAttrName":"fire","targetObj":{"__isSmartRef__":true,"id":491},"targetMethodName":"initiateShutdown","converter":null,"converterString":null,"updater":null,"updaterString":null,"__SourceModuleName__":"Global.lively.bindings","__LivelyClassName__":"AttributeConnection"},"538":{"submorphs":[{"__isSmartRef__":true,"id":539}],"scripts":[],"id":269,"shape":{"__isSmartRef__":true,"id":547},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"registeredForMouseEvents":true,"_Position":{"__isSmartRef__":true,"id":550},"value":false,"toggle":false,"isActive":true,"normalFill":{"__isSmartRef__":true,"id":515},"lighterFill":{"__isSmartRef__":true,"id":551},"label":{"__isSmartRef__":true,"id":539},"owner":{"__isSmartRef__":true,"id":492},"attributeConnections":[{"__isSmartRef__":true,"id":560},{"__isSmartRef__":true,"id":561}],"doNotSerialize":["$$getHelpText","$$fire"],"doNotCopyProperties":["$$getHelpText","$$fire"],"__SourceModuleName__":"Global.lively.morphic.Widgets","__LivelyClassName__":"lively.morphic.WindowControl"},"539":{"submorphs":[],"scripts":[],"id":270,"shape":{"__isSmartRef__":true,"id":540},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"fixedWidth":false,"_WhiteSpaceHandling":"pre","fixedHeight":true,"allowInput":false,"_OverflowMode":"hidden","_FontFamily":"Helvetica","registeredForMouseEvents":true,"_Position":{"__isSmartRef__":true,"id":543},"_MaxTextWidth":null,"_MaxTextHeight":17,"textStyle":null,"padding":{"__isSmartRef__":true,"id":544},"_Padding":{"__isSmartRef__":true,"id":544},"owner":{"__isSmartRef__":true,"id":538},"isLabel":true,"eventsAreIgnored":true,"_FontSize":8,"__SourceModuleName__":"Global.lively.morphic.TextCore","textChunks":[{"__isSmartRef__":true,"id":545}],"__LivelyClassName__":"lively.morphic.Text"},"540":{"position":{"__isSmartRef__":true,"id":541},"_Extent":{"__isSmartRef__":true,"id":542},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":497},"_Fill":null,"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"541":{"x":0,"y":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"542":{"x":17,"y":17,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"543":{"x":0,"y":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"544":{"x":5,"y":5,"width":0,"height":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Rectangle"},"545":{"style":{"__isSmartRef__":true,"id":546},"morph":{"__isSmartRef__":true,"id":539},"__SourceModuleName__":"Global.lively.morphic.TextCore","storedString":"M","__LivelyClassName__":"lively.morphic.TextChunk"},"546":{"__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextEmphasis"},"547":{"position":{"__isSmartRef__":true,"id":548},"_Extent":{"__isSmartRef__":true,"id":549},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":514},"_Fill":{"__isSmartRef__":true,"id":515},"_StrokeOpacity":0,"_BorderRadius":5,"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"548":{"x":0,"y":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"549":{"x":17,"y":17,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"550":{"x":3,"y":3,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"551":{"stops":[{"__isSmartRef__":true,"id":552},{"__isSmartRef__":true,"id":554},{"__isSmartRef__":true,"id":556},{"__isSmartRef__":true,"id":558}],"vector":{"__isSmartRef__":true,"id":524},"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.LinearGradient"},"552":{"offset":0,"color":{"__isSmartRef__":true,"id":553}},"553":{"r":0.98,"g":0.98,"b":0.98,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"554":{"offset":0.4,"color":{"__isSmartRef__":true,"id":555}},"555":{"r":0.91,"g":0.91,"b":0.91,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"556":{"offset":0.6,"color":{"__isSmartRef__":true,"id":557}},"557":{"r":0.91,"g":0.91,"b":0.91,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"558":{"offset":1,"color":{"__isSmartRef__":true,"id":559}},"559":{"r":0.97,"g":0.97,"b":0.97,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"560":{"sourceObj":{"__isSmartRef__":true,"id":538},"sourceAttrName":"getHelpText","targetObj":{"__isSmartRef__":true,"id":491},"targetMethodName":"getMenuHelp","converter":null,"converterString":null,"updater":null,"updaterString":null,"__SourceModuleName__":"Global.lively.bindings","__LivelyClassName__":"AttributeConnection"},"561":{"sourceObj":{"__isSmartRef__":true,"id":538},"sourceAttrName":"fire","targetObj":{"__isSmartRef__":true,"id":491},"targetMethodName":"showTargetMorphMenu","converter":null,"converterString":null,"updater":null,"updaterString":null,"__SourceModuleName__":"Global.lively.bindings","__LivelyClassName__":"AttributeConnection"},"562":{"submorphs":[{"__isSmartRef__":true,"id":563}],"scripts":[],"id":271,"shape":{"__isSmartRef__":true,"id":571},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"registeredForMouseEvents":true,"_Position":{"__isSmartRef__":true,"id":574},"value":false,"toggle":false,"isActive":true,"normalFill":{"__isSmartRef__":true,"id":515},"lighterFill":{"__isSmartRef__":true,"id":575},"label":{"__isSmartRef__":true,"id":563},"owner":{"__isSmartRef__":true,"id":492},"layout":{"__isSmartRef__":true,"id":584},"attributeConnections":[{"__isSmartRef__":true,"id":585},{"__isSmartRef__":true,"id":586}],"doNotSerialize":["$$getHelpText","$$fire"],"doNotCopyProperties":["$$getHelpText","$$fire"],"__SourceModuleName__":"Global.lively.morphic.Widgets","__LivelyClassName__":"lively.morphic.WindowControl"},"563":{"submorphs":[],"scripts":[],"id":272,"shape":{"__isSmartRef__":true,"id":564},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"fixedWidth":false,"_WhiteSpaceHandling":"pre","fixedHeight":true,"allowInput":false,"_OverflowMode":"hidden","_FontFamily":"Helvetica","registeredForMouseEvents":true,"_Position":{"__isSmartRef__":true,"id":567},"_MaxTextWidth":null,"_MaxTextHeight":17,"textStyle":null,"padding":{"__isSmartRef__":true,"id":568},"_Padding":{"__isSmartRef__":true,"id":568},"owner":{"__isSmartRef__":true,"id":562},"isLabel":true,"eventsAreIgnored":true,"_FontSize":8,"__SourceModuleName__":"Global.lively.morphic.TextCore","textChunks":[{"__isSmartRef__":true,"id":569}],"__LivelyClassName__":"lively.morphic.Text"},"564":{"position":{"__isSmartRef__":true,"id":565},"_Extent":{"__isSmartRef__":true,"id":566},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":497},"_Fill":null,"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"565":{"x":0,"y":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"566":{"x":17,"y":17,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"567":{"x":0,"y":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"568":{"x":5,"y":5,"width":0,"height":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Rectangle"},"569":{"style":{"__isSmartRef__":true,"id":570},"morph":{"__isSmartRef__":true,"id":563},"__SourceModuleName__":"Global.lively.morphic.TextCore","storedString":"–","__LivelyClassName__":"lively.morphic.TextChunk"},"570":{"__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextEmphasis"},"571":{"position":{"__isSmartRef__":true,"id":572},"_Extent":{"__isSmartRef__":true,"id":573},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":514},"_Fill":{"__isSmartRef__":true,"id":515},"_StrokeOpacity":0,"_BorderRadius":5,"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"572":{"x":0,"y":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"573":{"x":17,"y":17,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"574":{"x":723,"y":3,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"575":{"stops":[{"__isSmartRef__":true,"id":576},{"__isSmartRef__":true,"id":578},{"__isSmartRef__":true,"id":580},{"__isSmartRef__":true,"id":582}],"vector":{"__isSmartRef__":true,"id":524},"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.LinearGradient"},"576":{"offset":0,"color":{"__isSmartRef__":true,"id":577}},"577":{"r":0.98,"g":0.98,"b":0.98,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"578":{"offset":0.4,"color":{"__isSmartRef__":true,"id":579}},"579":{"r":0.91,"g":0.91,"b":0.91,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"580":{"offset":0.6,"color":{"__isSmartRef__":true,"id":581}},"581":{"r":0.91,"g":0.91,"b":0.91,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"582":{"offset":1,"color":{"__isSmartRef__":true,"id":583}},"583":{"r":0.97,"g":0.97,"b":0.97,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"584":{"moveHorizontal":true},"585":{"sourceObj":{"__isSmartRef__":true,"id":562},"sourceAttrName":"getHelpText","targetObj":{"__isSmartRef__":true,"id":491},"targetMethodName":"getCollapseHelp","converter":null,"converterString":null,"updater":null,"updaterString":null,"__SourceModuleName__":"Global.lively.bindings","__LivelyClassName__":"AttributeConnection"},"586":{"sourceObj":{"__isSmartRef__":true,"id":562},"sourceAttrName":"fire","targetObj":{"__isSmartRef__":true,"id":491},"targetMethodName":"toggleCollapse","converter":null,"converterString":null,"updater":null,"updaterString":null,"__SourceModuleName__":"Global.lively.bindings","__LivelyClassName__":"AttributeConnection"},"587":{"position":{"__isSmartRef__":true,"id":588},"_Extent":{"__isSmartRef__":true,"id":589},"_BorderWidth":2,"_BorderColor":{"__isSmartRef__":true,"id":590},"_Fill":{"__isSmartRef__":true,"id":379},"_StrokeOpacity":1,"_BorderRadius":"8px 8px 0px 0px","__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"588":{"x":0,"y":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"589":{"x":762,"y":22,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"590":{"r":0.4,"g":0.4,"b":0.4,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"591":{"resizeWidth":true,"adjustForNewBounds":true},"592":{"x":0,"y":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"593":{"x":762,"y":22,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"594":{"submorphs":[{"__isSmartRef__":true,"id":595}],"scripts":[],"id":452,"shape":{"__isSmartRef__":true,"id":612},"droppingEnabled":true,"halosEnabled":true,"registeredForMouseEvents":true,"_Position":{"__isSmartRef__":true,"id":617},"showsHalos":false,"halos":[],"name":"ScriptEditorPane","partsBinMetaInfo":{"__isSmartRef__":true,"id":618},"__SourceModuleName__":"Global.lively.morphic.Core","owner":{"__isSmartRef__":true,"id":491},"_Rotation":0,"targetName":null,"searchText":null,"scriptList":null,"scriptSource":{"__isSmartRef__":true,"id":595},"targetFound":null,"removeButton":null,"addButton":null,"closeButton":null,"target":{"__isSmartRef__":true,"id":56},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":619},"__LivelyClassName__":"lively.morphic.Box"},"595":{"submorphs":[],"scripts":[],"id":263,"shape":{"__isSmartRef__":true,"id":596},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"fixedWidth":true,"_WhiteSpaceHandling":"pre-wrap","fixedHeight":true,"allowInput":true,"_OverflowMode":"auto","_FontFamily":"Helvetica","registeredForMouseEvents":true,"_Position":{"__isSmartRef__":true,"id":600},"_MaxTextWidth":737,"_MaxTextHeight":359,"textStyle":null,"owner":{"__isSmartRef__":true,"id":594},"layout":{"__isSmartRef__":true,"id":601},"doitContext":{"__isSmartRef__":true,"id":56},"charsReplaced":" lines.length","lastFindLoc":729,"showsHalos":false,"halos":[],"_Rotation":0,"__SourceModuleName__":"Global.lively.morphic.TextCore","name":"scriptSource","savedTextString":"// DiffExample (this)\n\n// ** DiffExample's Scripts **\nthis.addScript(function updateDiff() {\n\tmodule('apps.DiffMatchPatch').load(true)\n\n\tvar dmp = new diff_match_patch()\n\t\n\tvar a = this.get('TextA').textString;\n\tvar b = this.get('TextB').textString;\n\n\tvar diffs;\n\tvar mode = this.get('DiffModeList').selection\n\n\tif (mode == 'lines') {\n\t\tdiffs = dmp.diff_lineMode(a,b)\n\t} else if (mode == 'raw') {\n\t\tdiffs = dmp.diff_main(a, b);\n\t} else {\n\t\tdiffs = dmp.diff_main(a, b);\n\t\tdmp.diff_cleanupSemantic(diffs);\n\t}\n\n\tfilteredDiffs = []\n\tfor(var i=0; i