mdbe 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +15 -0
- data/LICENSE.txt +21 -0
- data/README.md +53 -0
- data/app.rb +182 -0
- data/bin/mdbe +5 -0
- data/config.ru +2 -0
- data/environment.rb +8 -0
- data/lib/mdbe.rb +39 -0
- data/lib/mdbe/action_controller_debug_patch.rb +12 -0
- data/lib/mdbe/code_evaluation.rb +46 -0
- data/lib/mdbe/database_views.rb +24 -0
- data/lib/mdbe/database_views/abstract_dictionary.rb +69 -0
- data/lib/mdbe/database_views/abstract_exception.rb +25 -0
- data/lib/mdbe/database_views/array.rb +28 -0
- data/lib/mdbe/database_views/boolean.rb +12 -0
- data/lib/mdbe/database_views/class.rb +46 -0
- data/lib/mdbe/database_views/exception.rb +3 -0
- data/lib/mdbe/database_views/execblock.rb +5 -0
- data/lib/mdbe/database_views/fixnum.rb +5 -0
- data/lib/mdbe/database_views/float.rb +5 -0
- data/lib/mdbe/database_views/globals.rb +2 -0
- data/lib/mdbe/database_views/gsnmethod.rb +29 -0
- data/lib/mdbe/database_views/hash.rb +5 -0
- data/lib/mdbe/database_views/maglev_record.rb +42 -0
- data/lib/mdbe/database_views/module.rb +103 -0
- data/lib/mdbe/database_views/nilclass.rb +5 -0
- data/lib/mdbe/database_views/object.rb +80 -0
- data/lib/mdbe/database_views/proc.rb +3 -0
- data/lib/mdbe/database_views/repository.rb +3 -0
- data/lib/mdbe/database_views/ruby_workspace.rb +5 -0
- data/lib/mdbe/database_views/smalltalk_classes.rb +34 -0
- data/lib/mdbe/database_views/smalltalk_classes.st +60 -0
- data/lib/mdbe/database_views/string.rb +31 -0
- data/lib/mdbe/database_views/symbol.rb +32 -0
- data/lib/mdbe/database_views/system.rb +61 -0
- data/lib/mdbe/database_views/thread.rb +101 -0
- data/lib/mdbe/debug_server.rb +22 -0
- data/lib/mdbe/halt.rb +42 -0
- data/lib/mdbe/ruby_workspace.rb +29 -0
- data/lib/mdbe/version.rb +3 -0
- data/lib/tasks/maglev-database-explorer_tasks.rake +4 -0
- data/public/LICENSE +35 -0
- data/public/amber/CHANGELOG +65 -0
- data/public/amber/LICENSE +22 -0
- data/public/amber/Makefile +53 -0
- data/public/amber/README.md +30 -0
- data/public/amber/bin/amber +3 -0
- data/public/amber/bin/amberc +352 -0
- data/public/amber/bin/nodecompile.js +33 -0
- data/public/amber/bin/server +3 -0
- data/public/amber/bin/server.bat +3 -0
- data/public/amber/css/amber-normalize.css +468 -0
- data/public/amber/css/amber-normalize.less +501 -0
- data/public/amber/css/amber.css +539 -0
- data/public/amber/css/documentation.css +84 -0
- data/public/amber/css/profstef.css +75 -0
- data/public/amber/css/style.css +313 -0
- data/public/amber/documentation.html +37 -0
- data/public/amber/examples/Makefile +23 -0
- data/public/amber/examples/README +4 -0
- data/public/amber/examples/android/helloamber/AndroidManifest.xml +19 -0
- data/public/amber/examples/android/helloamber/HelloAmber.st +13 -0
- data/public/amber/examples/android/helloamber/Makefile +56 -0
- data/public/amber/examples/android/helloamber/README.md +80 -0
- data/public/amber/examples/android/helloamber/ant.properties +17 -0
- data/public/amber/examples/android/helloamber/assets/index.html +15 -0
- data/public/amber/examples/android/helloamber/assets/jquery-1.7.2.min.js +4 -0
- data/public/amber/examples/android/helloamber/build.xml +83 -0
- data/public/amber/examples/android/helloamber/local.properties +10 -0
- data/public/amber/examples/android/helloamber/proguard-project.txt +20 -0
- data/public/amber/examples/android/helloamber/project.properties +14 -0
- data/public/amber/examples/android/helloamber/res/layout/main.xml +6 -0
- data/public/amber/examples/android/helloamber/res/values/strings.xml +4 -0
- data/public/amber/examples/android/helloamber/src/org/amberlang/android/helloamber/HelloAmber.java +59 -0
- data/public/amber/examples/myproject/index.html +16 -0
- data/public/amber/examples/nodejs/README +9 -0
- data/public/amber/examples/nodejs/benchfib/Benchfib.st +124 -0
- data/public/amber/examples/nodejs/benchfib/Makefile +8 -0
- data/public/amber/examples/nodejs/benchfib/benchfib +1 -0
- data/public/amber/examples/nodejs/hello/Hello.st +9 -0
- data/public/amber/examples/nodejs/hello/Makefile +8 -0
- data/public/amber/examples/nodejs/hello/README +13 -0
- data/public/amber/examples/nodejs/hello/hello +1 -0
- data/public/amber/examples/nodejs/meta/Makefile +8 -0
- data/public/amber/examples/nodejs/meta/MyScript.st +27 -0
- data/public/amber/examples/nodejs/meta/meta +1 -0
- data/public/amber/examples/nodejs/pystone/Makefile +8 -0
- data/public/amber/examples/nodejs/pystone/Pystone.st +306 -0
- data/public/amber/examples/nodejs/pystone/pystone +1 -0
- data/public/amber/examples/nodejs/trivialserver/Makefile +8 -0
- data/public/amber/examples/nodejs/trivialserver/TrivialServer.st +51 -0
- data/public/amber/examples/nodejs/trivialserver/trivial +1 -0
- data/public/amber/examples/presentation/esug2011/images/asterix.png +0 -0
- data/public/amber/examples/presentation/esug2011/images/background_box.png +0 -0
- data/public/amber/examples/presentation/esug2011/images/background_header.png +0 -0
- data/public/amber/examples/presentation/esug2011/images/balloon.jpg +0 -0
- data/public/amber/examples/presentation/esug2011/images/balloon_header.png +0 -0
- data/public/amber/examples/presentation/esug2011/images/devices.jpg +0 -0
- data/public/amber/examples/presentation/esug2011/images/enyo.png +0 -0
- data/public/amber/examples/presentation/esug2011/images/ide_star_wars.png +0 -0
- data/public/amber/examples/presentation/esug2011/images/nodejs.png +0 -0
- data/public/amber/examples/presentation/esug2011/images/terminal.png +0 -0
- data/public/amber/examples/presentation/esug2011/images/webos.png +0 -0
- data/public/amber/examples/presentation/fosdem2012/images/amber.png +0 -0
- data/public/amber/examples/presentation/fosdem2012/images/ambrhino.jpg +0 -0
- data/public/amber/examples/presentation/fosdem2012/images/nodejs.png +0 -0
- data/public/amber/examples/presentation/fosdem2012/images/pharo.png +0 -0
- data/public/amber/examples/presentation/fosdem2012/images/php.gif +0 -0
- data/public/amber/examples/presentation/fosdem2012/images/rails.png +0 -0
- data/public/amber/examples/presentation/fosdem2012/lib/booklet/images/arrow-next.png +0 -0
- data/public/amber/examples/presentation/fosdem2012/lib/booklet/images/arrow-prev.png +0 -0
- data/public/amber/examples/presentation/fosdem2012/lib/booklet/images/closedhand.cur +0 -0
- data/public/amber/examples/presentation/fosdem2012/lib/booklet/images/openhand.cur +0 -0
- data/public/amber/examples/presentation/fosdem2012/lib/booklet/images/shadow-top-back.png +0 -0
- data/public/amber/examples/presentation/fosdem2012/lib/booklet/images/shadow-top-forward.png +0 -0
- data/public/amber/examples/presentation/fosdem2012/lib/booklet/images/shadow.png +0 -0
- data/public/amber/examples/presentation/fosdem2012/lib/booklet/jquery.booklet.1.2.0.css +100 -0
- data/public/amber/examples/presentation/fosdem2012/lib/booklet/jquery.booklet.1.2.0.js +1232 -0
- data/public/amber/examples/presentation/fosdem2012/lib/booklet/jquery.booklet.1.2.0.min.js +13 -0
- data/public/amber/examples/presentation/fosdem2012/lib/booklet/jquery.easing.1.3.js +38 -0
- data/public/amber/examples/presentation/index.html +17 -0
- data/public/amber/examples/presentation/js/Presentation.deploy.js +1922 -0
- data/public/amber/examples/presentation/js/Presentation.js +2712 -0
- data/public/amber/examples/presentation/st/Presentation.st +1996 -0
- data/public/amber/examples/trysmalltalk/index.html +18 -0
- data/public/amber/examples/trysmalltalk/js/TrySmalltalk.deploy.js +837 -0
- data/public/amber/examples/trysmalltalk/js/TrySmalltalk.js +1206 -0
- data/public/amber/examples/trysmalltalk/st/TrySmalltalk.st +964 -0
- data/public/amber/examples/twitterwall/css/twitterwall.css +19 -0
- data/public/amber/examples/twitterwall/index.html +35 -0
- data/public/amber/examples/twitterwall/js/TwitterWall.deploy.js +116 -0
- data/public/amber/examples/twitterwall/js/TwitterWall.js +146 -0
- data/public/amber/examples/twitterwall/st/TwitterWall.st +91 -0
- data/public/amber/examples/webos/README +11 -0
- data/public/amber/examples/webos/eris/DuckQwaq.wav +0 -0
- data/public/amber/examples/webos/eris/EnyoAmber.st +36 -0
- data/public/amber/examples/webos/eris/Eris.css +0 -0
- data/public/amber/examples/webos/eris/Eris.st +86 -0
- data/public/amber/examples/webos/eris/Makefile +37 -0
- data/public/amber/examples/webos/eris/README +3 -0
- data/public/amber/examples/webos/eris/appinfo.json +10 -0
- data/public/amber/examples/webos/eris/index.html +12 -0
- data/public/amber/examples/webos/helloamber/EnyoAmber.st +36 -0
- data/public/amber/examples/webos/helloamber/HelloAmber.st +86 -0
- data/public/amber/examples/webos/helloamber/Makefile +38 -0
- data/public/amber/examples/webos/helloamber/README +5 -0
- data/public/amber/examples/webos/helloamber/appinfo.json +10 -0
- data/public/amber/examples/webos/helloamber/index.html +12 -0
- data/public/amber/favicon.ico +0 -0
- data/public/amber/images/amber.png +0 -0
- data/public/amber/images/amber.svg +706 -0
- data/public/amber/images/amber_small.png +0 -0
- data/public/amber/images/off.amber.png +0 -0
- data/public/amber/images/off.png +0 -0
- data/public/amber/images/offHover.amber.png +0 -0
- data/public/amber/images/offHover.png +0 -0
- data/public/amber/images/presentation.png +0 -0
- data/public/amber/images/profstef.png +0 -0
- data/public/amber/images/sprite.amber.png +0 -0
- data/public/amber/images/sprite.png +0 -0
- data/public/amber/images/tinylogo.amber.png +0 -0
- data/public/amber/images/tinylogo.png +0 -0
- data/public/amber/images/twitterwall.png +0 -0
- data/public/amber/index.html +55 -0
- data/public/amber/js/Additional-Examples.deploy.js +15 -0
- data/public/amber/js/Additional-Examples.js +21 -0
- data/public/amber/js/Benchfib.deploy.js +132 -0
- data/public/amber/js/Benchfib.js +167 -0
- data/public/amber/js/Canvas.deploy.js +2446 -0
- data/public/amber/js/Canvas.js +3547 -0
- data/public/amber/js/Compiler-Tests.deploy.js +97 -0
- data/public/amber/js/Compiler-Tests.js +137 -0
- data/public/amber/js/Compiler.deploy.js +1877 -0
- data/public/amber/js/Compiler.js +2622 -0
- data/public/amber/js/Documentation.deploy.js +961 -0
- data/public/amber/js/Documentation.js +1376 -0
- data/public/amber/js/Examples.deploy.js +53 -0
- data/public/amber/js/Examples.js +73 -0
- data/public/amber/js/IDE.deploy.js +3557 -0
- data/public/amber/js/IDE.js +5002 -0
- data/public/amber/js/Kernel-Announcements.deploy.js +107 -0
- data/public/amber/js/Kernel-Announcements.js +152 -0
- data/public/amber/js/Kernel-Classes.deploy.js +774 -0
- data/public/amber/js/Kernel-Classes.js +1095 -0
- data/public/amber/js/Kernel-Collections.deploy.js +3121 -0
- data/public/amber/js/Kernel-Collections.js +4427 -0
- data/public/amber/js/Kernel-Exceptions.deploy.js +244 -0
- data/public/amber/js/Kernel-Exceptions.js +349 -0
- data/public/amber/js/Kernel-Methods.deploy.js +573 -0
- data/public/amber/js/Kernel-Methods.js +807 -0
- data/public/amber/js/Kernel-Objects.deploy.js +2877 -0
- data/public/amber/js/Kernel-Objects.js +4107 -0
- data/public/amber/js/Kernel-Tests.deploy.js +1513 -0
- data/public/amber/js/Kernel-Tests.js +2053 -0
- data/public/amber/js/Kernel-Transcript.deploy.js +142 -0
- data/public/amber/js/Kernel-Transcript.js +202 -0
- data/public/amber/js/Maglev-Core.deploy.js +2996 -0
- data/public/amber/js/Maglev-Core.js +4246 -0
- data/public/amber/js/Maglev-Database-Explorer.deploy.js +4476 -0
- data/public/amber/js/Maglev-Database-Explorer.js +6232 -0
- data/public/amber/js/Maglev-Vendor.deploy.js +350 -0
- data/public/amber/js/Maglev-Vendor.js +465 -0
- data/public/amber/js/README.md +5 -0
- data/public/amber/js/SUnit.deploy.js +351 -0
- data/public/amber/js/SUnit.js +501 -0
- data/public/amber/js/amber.js +273 -0
- data/public/amber/js/boot.js +602 -0
- data/public/amber/js/compat.js +22 -0
- data/public/amber/js/init.js +9 -0
- data/public/amber/js/lib/CodeMirror/LICENSE +19 -0
- data/public/amber/js/lib/CodeMirror/active-line.js +39 -0
- data/public/amber/js/lib/CodeMirror/amber.css +21 -0
- data/public/amber/js/lib/CodeMirror/codemirror.css +67 -0
- data/public/amber/js/lib/CodeMirror/codemirror.js +2144 -0
- data/public/amber/js/lib/CodeMirror/smalltalk.js +134 -0
- data/public/amber/js/lib/jQuery/jquery-1.4.4.min.js +167 -0
- data/public/amber/js/lib/jQuery/jquery-1.6.4.min.js +4 -0
- data/public/amber/js/lib/jQuery/jquery-ui-1.8.16.custom.min.js +791 -0
- data/public/amber/js/lib/jQuery/jquery.textarea.js +267 -0
- data/public/amber/js/lib/peg-0.6.2.min.js +2 -0
- data/public/amber/js/lib/showdown.js +419 -0
- data/public/amber/js/parser.js +4222 -0
- data/public/amber/js/parser.pegjs +223 -0
- data/public/amber/learn.html +40 -0
- data/public/amber/repl/Makefile +8 -0
- data/public/amber/repl/REPL.js +124 -0
- data/public/amber/repl/REPL.st +56 -0
- data/public/amber/repl/amber.js +18085 -0
- data/public/amber/server/FileServer.st +576 -0
- data/public/amber/server/Makefile +8 -0
- data/public/amber/server/server.js +13049 -0
- data/public/amber/st/Benchfib.js +297 -0
- data/public/amber/st/Benchfib.st +124 -0
- data/public/amber/st/Canvas.st +968 -0
- data/public/amber/st/Compiler-Tests.st +471 -0
- data/public/amber/st/Compiler.st +1445 -0
- data/public/amber/st/Documentation.st +758 -0
- data/public/amber/st/Examples.js +100 -0
- data/public/amber/st/Examples.st +38 -0
- data/public/amber/st/IDE.st +2404 -0
- data/public/amber/st/Kernel-Announcements.st +61 -0
- data/public/amber/st/Kernel-Classes.st +462 -0
- data/public/amber/st/Kernel-Collections.st +1611 -0
- data/public/amber/st/Kernel-Exceptions.st +124 -0
- data/public/amber/st/Kernel-Methods.st +291 -0
- data/public/amber/st/Kernel-Objects.st +1587 -0
- data/public/amber/st/Kernel-Tests.st +953 -0
- data/public/amber/st/Kernel-Transcript.st +70 -0
- data/public/amber/st/Maglev-Core.st +1694 -0
- data/public/amber/st/Maglev-Database-Explorer.st +3148 -0
- data/public/amber/st/Maglev-Vendor.st +151 -0
- data/public/amber/st/Makefile +104 -0
- data/public/amber/st/README.md +4 -0
- data/public/amber/st/SUnit.st +172 -0
- data/public/css/bootstrap-combined.no-icons.min.css +731 -0
- data/public/css/bootstrap.css +6811 -0
- data/public/css/images/animated-overlay.gif +0 -0
- data/public/css/images/ui-bg_diagonals-thick_18_b81900_40x40.png +0 -0
- data/public/css/images/ui-bg_diagonals-thick_20_666666_40x40.png +0 -0
- data/public/css/images/ui-bg_flat_10_000000_40x100.png +0 -0
- data/public/css/images/ui-bg_glass_100_f6f6f6_1x400.png +0 -0
- data/public/css/images/ui-bg_glass_100_fdf5ce_1x400.png +0 -0
- data/public/css/images/ui-bg_glass_65_ffffff_1x400.png +0 -0
- data/public/css/images/ui-bg_gloss-wave_35_f6a828_500x100.png +0 -0
- data/public/css/images/ui-bg_highlight-soft_100_eeeeee_1x100.png +0 -0
- data/public/css/images/ui-bg_highlight-soft_75_ffe45c_1x100.png +0 -0
- data/public/css/images/ui-icons_222222_256x240.png +0 -0
- data/public/css/images/ui-icons_228ef1_256x240.png +0 -0
- data/public/css/images/ui-icons_ef8c08_256x240.png +0 -0
- data/public/css/images/ui-icons_ffd27a_256x240.png +0 -0
- data/public/css/images/ui-icons_ffffff_256x240.png +0 -0
- data/public/css/jquery-ui.min.css +5 -0
- data/public/css/smalltalk_code.css +42 -0
- data/public/css/style.css +210 -0
- data/public/images/bg_tile.png +0 -0
- data/public/images/maglev-logo.gif +0 -0
- data/public/images/mchammer.gif +0 -0
- data/public/images/rails_tiny.png +0 -0
- data/public/images/ruby.png +0 -0
- data/public/images/ruby_smalltalk_bridge.png +0 -0
- data/public/images/smalltalk.png +0 -0
- data/public/img/glyphicons-halflings.png +0 -0
- data/public/index.html +118 -0
- data/public/libs/bootstrap.min.js +7 -0
- data/public/libs/codemirror/CONTRIBUTING.md +72 -0
- data/public/libs/codemirror/LICENSE +23 -0
- data/public/libs/codemirror/README.md +11 -0
- data/public/libs/codemirror/addon/dialog/dialog.css +32 -0
- data/public/libs/codemirror/addon/dialog/dialog.js +80 -0
- data/public/libs/codemirror/addon/display/placeholder.js +54 -0
- data/public/libs/codemirror/addon/edit/closebrackets.js +54 -0
- data/public/libs/codemirror/addon/edit/closetag.js +86 -0
- data/public/libs/codemirror/addon/edit/continuecomment.js +44 -0
- data/public/libs/codemirror/addon/edit/continuelist.js +25 -0
- data/public/libs/codemirror/addon/edit/matchbrackets.js +82 -0
- data/public/libs/codemirror/addon/fold/brace-fold.js +31 -0
- data/public/libs/codemirror/addon/fold/foldcode.js +32 -0
- data/public/libs/codemirror/addon/fold/indent-fold.js +11 -0
- data/public/libs/codemirror/addon/fold/xml-fold.js +64 -0
- data/public/libs/codemirror/addon/hint/html-hint.js +582 -0
- data/public/libs/codemirror/addon/hint/javascript-hint.js +142 -0
- data/public/libs/codemirror/addon/hint/pig-hint.js +117 -0
- data/public/libs/codemirror/addon/hint/python-hint.js +93 -0
- data/public/libs/codemirror/addon/hint/show-hint.css +38 -0
- data/public/libs/codemirror/addon/hint/show-hint.js +180 -0
- data/public/libs/codemirror/addon/hint/xml-hint.js +118 -0
- data/public/libs/codemirror/addon/lint/javascript-lint.js +127 -0
- data/public/libs/codemirror/addon/lint/json-lint.js +14 -0
- data/public/libs/codemirror/addon/lint/lint.css +96 -0
- data/public/libs/codemirror/addon/lint/lint.js +197 -0
- data/public/libs/codemirror/addon/mode/loadmode.js +51 -0
- data/public/libs/codemirror/addon/mode/multiplex.js +95 -0
- data/public/libs/codemirror/addon/mode/overlay.js +59 -0
- data/public/libs/codemirror/addon/runmode/colorize.js +29 -0
- data/public/libs/codemirror/addon/runmode/runmode-standalone.js +130 -0
- data/public/libs/codemirror/addon/runmode/runmode.js +52 -0
- data/public/libs/codemirror/addon/runmode/runmode.node.js +89 -0
- data/public/libs/codemirror/addon/search/match-highlighter.js +60 -0
- data/public/libs/codemirror/addon/search/search.js +131 -0
- data/public/libs/codemirror/addon/search/searchcursor.js +133 -0
- data/public/libs/codemirror/addon/selection/active-line.js +39 -0
- data/public/libs/codemirror/addon/selection/mark-selection.js +34 -0
- data/public/libs/codemirror/bin/compress +91 -0
- data/public/libs/codemirror/bin/lint +11 -0
- data/public/libs/codemirror/demo/activeline.html +70 -0
- data/public/libs/codemirror/demo/bidi.html +61 -0
- data/public/libs/codemirror/demo/btree.html +87 -0
- data/public/libs/codemirror/demo/buffers.html +98 -0
- data/public/libs/codemirror/demo/changemode.html +50 -0
- data/public/libs/codemirror/demo/closebrackets.html +63 -0
- data/public/libs/codemirror/demo/closetag.html +37 -0
- data/public/libs/codemirror/demo/complete.html +70 -0
- data/public/libs/codemirror/demo/emacs.html +60 -0
- data/public/libs/codemirror/demo/folding.html +69 -0
- data/public/libs/codemirror/demo/fullscreen.html +147 -0
- data/public/libs/codemirror/demo/html5complete.html +92 -0
- data/public/libs/codemirror/demo/indentwrap.html +49 -0
- data/public/libs/codemirror/demo/lint.html +90 -0
- data/public/libs/codemirror/demo/loadmode.html +40 -0
- data/public/libs/codemirror/demo/marker.html +59 -0
- data/public/libs/codemirror/demo/markselection.html +36 -0
- data/public/libs/codemirror/demo/matchhighlighter.html +38 -0
- data/public/libs/codemirror/demo/multiplex.html +60 -0
- data/public/libs/codemirror/demo/mustache.html +59 -0
- data/public/libs/codemirror/demo/placeholder.html +36 -0
- data/public/libs/codemirror/demo/preview.html +76 -0
- data/public/libs/codemirror/demo/resize.html +49 -0
- data/public/libs/codemirror/demo/runmode.html +50 -0
- data/public/libs/codemirror/demo/search.html +85 -0
- data/public/libs/codemirror/demo/spanaffectswrapping_shim.html +73 -0
- data/public/libs/codemirror/demo/theme.html +89 -0
- data/public/libs/codemirror/demo/variableheight.html +52 -0
- data/public/libs/codemirror/demo/vim.html +65 -0
- data/public/libs/codemirror/demo/visibletabs.html +53 -0
- data/public/libs/codemirror/demo/widget.html +74 -0
- data/public/libs/codemirror/demo/xmlcomplete.html +81 -0
- data/public/libs/codemirror/index.html +487 -0
- data/public/libs/codemirror/keymap/emacs.js +30 -0
- data/public/libs/codemirror/keymap/vim.js +3044 -0
- data/public/libs/codemirror/lib/codemirror.css +253 -0
- data/public/libs/codemirror/lib/codemirror.js +5585 -0
- data/public/libs/codemirror/mode/apl/apl.js +160 -0
- data/public/libs/codemirror/mode/apl/index.html +61 -0
- data/public/libs/codemirror/mode/asterisk/asterisk.js +183 -0
- data/public/libs/codemirror/mode/asterisk/index.html +142 -0
- data/public/libs/codemirror/mode/clike/clike.js +302 -0
- data/public/libs/codemirror/mode/clike/index.html +103 -0
- data/public/libs/codemirror/mode/clike/scala.html +767 -0
- data/public/libs/codemirror/mode/clojure/clojure.js +222 -0
- data/public/libs/codemirror/mode/clojure/index.html +76 -0
- data/public/libs/codemirror/mode/coffeescript/LICENSE +22 -0
- data/public/libs/codemirror/mode/coffeescript/coffeescript.js +346 -0
- data/public/libs/codemirror/mode/coffeescript/index.html +728 -0
- data/public/libs/codemirror/mode/commonlisp/commonlisp.js +101 -0
- data/public/libs/codemirror/mode/commonlisp/index.html +165 -0
- data/public/libs/codemirror/mode/css/css.js +567 -0
- data/public/libs/codemirror/mode/css/index.html +58 -0
- data/public/libs/codemirror/mode/css/scss.html +145 -0
- data/public/libs/codemirror/mode/css/scss_test.js +80 -0
- data/public/libs/codemirror/mode/css/test.js +113 -0
- data/public/libs/codemirror/mode/d/d.js +205 -0
- data/public/libs/codemirror/mode/d/index.html +262 -0
- data/public/libs/codemirror/mode/diff/diff.js +32 -0
- data/public/libs/codemirror/mode/diff/index.html +105 -0
- data/public/libs/codemirror/mode/ecl/ecl.js +192 -0
- data/public/libs/codemirror/mode/ecl/index.html +39 -0
- data/public/libs/codemirror/mode/erlang/erlang.js +463 -0
- data/public/libs/codemirror/mode/erlang/index.html +64 -0
- data/public/libs/codemirror/mode/gas/gas.js +326 -0
- data/public/libs/codemirror/mode/gas/index.html +57 -0
- data/public/libs/codemirror/mode/gfm/gfm.js +96 -0
- data/public/libs/codemirror/mode/gfm/index.html +74 -0
- data/public/libs/codemirror/mode/gfm/test.js +112 -0
- data/public/libs/codemirror/mode/go/go.js +165 -0
- data/public/libs/codemirror/mode/go/index.html +74 -0
- data/public/libs/codemirror/mode/groovy/groovy.js +210 -0
- data/public/libs/codemirror/mode/groovy/index.html +73 -0
- data/public/libs/codemirror/mode/haskell/haskell.js +242 -0
- data/public/libs/codemirror/mode/haskell/index.html +62 -0
- data/public/libs/codemirror/mode/haxe/haxe.js +429 -0
- data/public/libs/codemirror/mode/haxe/index.html +90 -0
- data/public/libs/codemirror/mode/htmlembedded/htmlembedded.js +73 -0
- data/public/libs/codemirror/mode/htmlembedded/index.html +49 -0
- data/public/libs/codemirror/mode/htmlmixed/htmlmixed.js +104 -0
- data/public/libs/codemirror/mode/htmlmixed/index.html +73 -0
- data/public/libs/codemirror/mode/http/http.js +98 -0
- data/public/libs/codemirror/mode/http/index.html +32 -0
- data/public/libs/codemirror/mode/javascript/index.html +92 -0
- data/public/libs/codemirror/mode/javascript/javascript.js +467 -0
- data/public/libs/codemirror/mode/javascript/typescript.html +48 -0
- data/public/libs/codemirror/mode/jinja2/index.html +38 -0
- data/public/libs/codemirror/mode/jinja2/jinja2.js +42 -0
- data/public/libs/codemirror/mode/less/index.html +741 -0
- data/public/libs/codemirror/mode/less/less.js +266 -0
- data/public/libs/codemirror/mode/livescript/LICENSE +23 -0
- data/public/libs/codemirror/mode/livescript/index.html +446 -0
- data/public/libs/codemirror/mode/livescript/livescript.js +267 -0
- data/public/libs/codemirror/mode/livescript/livescript.ls +266 -0
- data/public/libs/codemirror/mode/lua/index.html +74 -0
- data/public/libs/codemirror/mode/lua/lua.js +140 -0
- data/public/libs/codemirror/mode/markdown/index.html +344 -0
- data/public/libs/codemirror/mode/markdown/markdown.js +526 -0
- data/public/libs/codemirror/mode/markdown/test.js +636 -0
- data/public/libs/codemirror/mode/meta.js +75 -0
- data/public/libs/codemirror/mode/mirc/index.html +149 -0
- data/public/libs/codemirror/mode/mirc/mirc.js +177 -0
- data/public/libs/codemirror/mode/ntriples/index.html +33 -0
- data/public/libs/codemirror/mode/ntriples/ntriples.js +170 -0
- data/public/libs/codemirror/mode/ocaml/index.html +131 -0
- data/public/libs/codemirror/mode/ocaml/ocaml.js +113 -0
- data/public/libs/codemirror/mode/pascal/LICENSE +7 -0
- data/public/libs/codemirror/mode/pascal/index.html +48 -0
- data/public/libs/codemirror/mode/pascal/pascal.js +94 -0
- data/public/libs/codemirror/mode/perl/LICENSE +19 -0
- data/public/libs/codemirror/mode/perl/index.html +62 -0
- data/public/libs/codemirror/mode/perl/perl.js +816 -0
- data/public/libs/codemirror/mode/php/index.html +51 -0
- data/public/libs/codemirror/mode/php/php.js +129 -0
- data/public/libs/codemirror/mode/pig/index.html +42 -0
- data/public/libs/codemirror/mode/pig/pig.js +171 -0
- data/public/libs/codemirror/mode/properties/index.html +41 -0
- data/public/libs/codemirror/mode/properties/properties.js +63 -0
- data/public/libs/codemirror/mode/python/LICENSE.txt +21 -0
- data/public/libs/codemirror/mode/python/index.html +135 -0
- data/public/libs/codemirror/mode/python/python.js +340 -0
- data/public/libs/codemirror/mode/q/index.html +131 -0
- data/public/libs/codemirror/mode/q/q.js +124 -0
- data/public/libs/codemirror/mode/r/LICENSE +24 -0
- data/public/libs/codemirror/mode/r/index.html +74 -0
- data/public/libs/codemirror/mode/r/r.js +141 -0
- data/public/libs/codemirror/mode/rpm/changes/changes.js +19 -0
- data/public/libs/codemirror/mode/rpm/changes/index.html +53 -0
- data/public/libs/codemirror/mode/rpm/spec/index.html +99 -0
- data/public/libs/codemirror/mode/rpm/spec/spec.css +5 -0
- data/public/libs/codemirror/mode/rpm/spec/spec.js +66 -0
- data/public/libs/codemirror/mode/rst/LICENSE.txt +21 -0
- data/public/libs/codemirror/mode/rst/index.html +524 -0
- data/public/libs/codemirror/mode/rst/rst.js +550 -0
- data/public/libs/codemirror/mode/ruby/LICENSE +24 -0
- data/public/libs/codemirror/mode/ruby/index.html +173 -0
- data/public/libs/codemirror/mode/ruby/ruby.js +197 -0
- data/public/libs/codemirror/mode/rust/index.html +48 -0
- data/public/libs/codemirror/mode/rust/rust.js +432 -0
- data/public/libs/codemirror/mode/sass/index.html +54 -0
- data/public/libs/codemirror/mode/sass/sass.js +349 -0
- data/public/libs/codemirror/mode/scheme/index.html +65 -0
- data/public/libs/codemirror/mode/scheme/scheme.js +230 -0
- data/public/libs/codemirror/mode/shell/index.html +51 -0
- data/public/libs/codemirror/mode/shell/shell.js +118 -0
- data/public/libs/codemirror/mode/sieve/LICENSE +19 -0
- data/public/libs/codemirror/mode/sieve/index.html +81 -0
- data/public/libs/codemirror/mode/sieve/sieve.js +183 -0
- data/public/libs/codemirror/mode/smalltalk/index.html +57 -0
- data/public/libs/codemirror/mode/smalltalk/smalltalk.js +141 -0
- data/public/libs/codemirror/mode/smarty/index.html +83 -0
- data/public/libs/codemirror/mode/smarty/smarty.js +148 -0
- data/public/libs/codemirror/mode/sparql/index.html +42 -0
- data/public/libs/codemirror/mode/sparql/sparql.js +143 -0
- data/public/libs/codemirror/mode/sql/index.html +68 -0
- data/public/libs/codemirror/mode/sql/sql.js +268 -0
- data/public/libs/codemirror/mode/stex/index.html +98 -0
- data/public/libs/codemirror/mode/stex/stex.js +246 -0
- data/public/libs/codemirror/mode/stex/test.js +117 -0
- data/public/libs/codemirror/mode/tcl/index.html +129 -0
- data/public/libs/codemirror/mode/tcl/tcl.js +131 -0
- data/public/libs/codemirror/mode/tiddlywiki/index.html +142 -0
- data/public/libs/codemirror/mode/tiddlywiki/tiddlywiki.css +14 -0
- data/public/libs/codemirror/mode/tiddlywiki/tiddlywiki.js +353 -0
- data/public/libs/codemirror/mode/tiki/index.html +81 -0
- data/public/libs/codemirror/mode/tiki/tiki.css +26 -0
- data/public/libs/codemirror/mode/tiki/tiki.js +308 -0
- data/public/libs/codemirror/mode/turtle/index.html +39 -0
- data/public/libs/codemirror/mode/turtle/turtle.js +145 -0
- data/public/libs/codemirror/mode/vb/LICENSE.txt +21 -0
- data/public/libs/codemirror/mode/vb/index.html +88 -0
- data/public/libs/codemirror/mode/vb/vb.js +259 -0
- data/public/libs/codemirror/mode/vbscript/index.html +42 -0
- data/public/libs/codemirror/mode/vbscript/vbscript.js +26 -0
- data/public/libs/codemirror/mode/velocity/index.html +103 -0
- data/public/libs/codemirror/mode/velocity/velocity.js +144 -0
- data/public/libs/codemirror/mode/verilog/index.html +121 -0
- data/public/libs/codemirror/mode/verilog/verilog.js +182 -0
- data/public/libs/codemirror/mode/xml/index.html +45 -0
- data/public/libs/codemirror/mode/xml/xml.js +328 -0
- data/public/libs/codemirror/mode/xquery/LICENSE +20 -0
- data/public/libs/codemirror/mode/xquery/index.html +221 -0
- data/public/libs/codemirror/mode/xquery/test.js +64 -0
- data/public/libs/codemirror/mode/xquery/xquery.js +450 -0
- data/public/libs/codemirror/mode/yaml/index.html +68 -0
- data/public/libs/codemirror/mode/yaml/yaml.js +95 -0
- data/public/libs/codemirror/mode/z80/index.html +39 -0
- data/public/libs/codemirror/mode/z80/z80.js +85 -0
- data/public/libs/codemirror/package.json +21 -0
- data/public/libs/codemirror/test/doc_test.js +329 -0
- data/public/libs/codemirror/test/driver.js +138 -0
- data/public/libs/codemirror/test/index.html +182 -0
- data/public/libs/codemirror/test/lint/acorn.js +1593 -0
- data/public/libs/codemirror/test/lint/lint.js +112 -0
- data/public/libs/codemirror/test/lint/parse-js.js +1372 -0
- data/public/libs/codemirror/test/lint/walk.js +216 -0
- data/public/libs/codemirror/test/mode_test.css +10 -0
- data/public/libs/codemirror/test/mode_test.js +192 -0
- data/public/libs/codemirror/test/phantom_driver.js +31 -0
- data/public/libs/codemirror/test/run.js +33 -0
- data/public/libs/codemirror/test/test.js +1400 -0
- data/public/libs/codemirror/test/vim_test.js +1688 -0
- data/public/libs/codemirror/theme/ambiance-mobile.css +5 -0
- data/public/libs/codemirror/theme/ambiance.css +75 -0
- data/public/libs/codemirror/theme/blackboard.css +25 -0
- data/public/libs/codemirror/theme/cobalt.css +18 -0
- data/public/libs/codemirror/theme/eclipse.css +25 -0
- data/public/libs/codemirror/theme/elegant.css +10 -0
- data/public/libs/codemirror/theme/erlang-dark.css +21 -0
- data/public/libs/codemirror/theme/lesser-dark.css +44 -0
- data/public/libs/codemirror/theme/midnight.css +52 -0
- data/public/libs/codemirror/theme/monokai.css +28 -0
- data/public/libs/codemirror/theme/neat.css +9 -0
- data/public/libs/codemirror/theme/night.css +21 -0
- data/public/libs/codemirror/theme/rubyblue.css +21 -0
- data/public/libs/codemirror/theme/solarized.css +207 -0
- data/public/libs/codemirror/theme/twilight.css +26 -0
- data/public/libs/codemirror/theme/vibrant-ink.css +27 -0
- data/public/libs/codemirror/theme/xq-dark.css +46 -0
- data/public/libs/codemirror/theme/xq-light.css +43 -0
- data/public/libs/font-awesome/css/font-awesome-ie7.css +983 -0
- data/public/libs/font-awesome/css/font-awesome-ie7.min.css +24 -0
- data/public/libs/font-awesome/css/font-awesome.css +1268 -0
- data/public/libs/font-awesome/css/font-awesome.min.css +24 -0
- data/public/libs/font-awesome/font/FontAwesome.otf +0 -0
- data/public/libs/font-awesome/font/fontawesome-webfont.eot +0 -0
- data/public/libs/font-awesome/font/fontawesome-webfont.svg +339 -0
- data/public/libs/font-awesome/font/fontawesome-webfont.ttf +0 -0
- data/public/libs/font-awesome/font/fontawesome-webfont.woff +0 -0
- data/public/libs/font-awesome/less/bootstrap.less +78 -0
- data/public/libs/font-awesome/less/core.less +132 -0
- data/public/libs/font-awesome/less/extras.less +79 -0
- data/public/libs/font-awesome/less/font-awesome-ie7.less +413 -0
- data/public/libs/font-awesome/less/font-awesome.less +32 -0
- data/public/libs/font-awesome/less/icons.less +330 -0
- data/public/libs/font-awesome/less/mixins.less +34 -0
- data/public/libs/font-awesome/less/path.less +15 -0
- data/public/libs/font-awesome/less/variables.less +9 -0
- data/public/libs/jquery-1.10.0.min.js +6 -0
- data/public/libs/jquery-ui.min.js +12 -0
- data/public/libs/jquery.jsPlumb-1.4.0-all.js +9571 -0
- data/public/libs/jquery.livequery.js +226 -0
- data/public/libs/jsPlumbInitializer.js +72 -0
- data/public/libs/jstree/README.txt +10 -0
- data/public/libs/jstree/_demo/_dump.sql +20 -0
- data/public/libs/jstree/_demo/_inc/__mysql_errors.log +0 -0
- data/public/libs/jstree/_demo/_inc/class._database.php +146 -0
- data/public/libs/jstree/_demo/_inc/class._database_i.php +152 -0
- data/public/libs/jstree/_demo/_inc/class.tree.php +602 -0
- data/public/libs/jstree/_demo/_install.txt +6 -0
- data/public/libs/jstree/_demo/config.php +14 -0
- data/public/libs/jstree/_demo/file.png +0 -0
- data/public/libs/jstree/_demo/folder.png +0 -0
- data/public/libs/jstree/_demo/index.html +461 -0
- data/public/libs/jstree/_demo/root.png +0 -0
- data/public/libs/jstree/_demo/server.php +69 -0
- data/public/libs/jstree/_docs/!style.css +48 -0
- data/public/libs/jstree/_docs/_drive.png +0 -0
- data/public/libs/jstree/_docs/_html_data.html +2 -0
- data/public/libs/jstree/_docs/_json_data.json +4 -0
- data/public/libs/jstree/_docs/_search_data.json +6 -0
- data/public/libs/jstree/_docs/_search_result.json +1 -0
- data/public/libs/jstree/_docs/_xml_flat.xml +12 -0
- data/public/libs/jstree/_docs/_xml_nest.xml +18 -0
- data/public/libs/jstree/_docs/checkbox.html +171 -0
- data/public/libs/jstree/_docs/contextmenu.html +121 -0
- data/public/libs/jstree/_docs/cookies.html +97 -0
- data/public/libs/jstree/_docs/core.html +689 -0
- data/public/libs/jstree/_docs/crrm.html +316 -0
- data/public/libs/jstree/_docs/dnd.html +199 -0
- data/public/libs/jstree/_docs/hotkeys.html +82 -0
- data/public/libs/jstree/_docs/html_data.html +175 -0
- data/public/libs/jstree/_docs/index.html +86 -0
- data/public/libs/jstree/_docs/json_data.html +249 -0
- data/public/libs/jstree/_docs/languages.html +152 -0
- data/public/libs/jstree/_docs/logo.png +0 -0
- data/public/libs/jstree/_docs/search.html +153 -0
- data/public/libs/jstree/_docs/sort.html +85 -0
- data/public/libs/jstree/_docs/syntax/!script.js +2232 -0
- data/public/libs/jstree/_docs/syntax/!style.css +511 -0
- data/public/libs/jstree/_docs/syntax/clipboard.swf +0 -0
- data/public/libs/jstree/_docs/syntax/help.png +0 -0
- data/public/libs/jstree/_docs/syntax/magnifier.png +0 -0
- data/public/libs/jstree/_docs/syntax/page_white_code.png +0 -0
- data/public/libs/jstree/_docs/syntax/page_white_copy.png +0 -0
- data/public/libs/jstree/_docs/syntax/printer.png +0 -0
- data/public/libs/jstree/_docs/syntax/wrapping.png +0 -0
- data/public/libs/jstree/_docs/themeroller.html +107 -0
- data/public/libs/jstree/_docs/themes.html +127 -0
- data/public/libs/jstree/_docs/types.html +178 -0
- data/public/libs/jstree/_docs/ui.html +197 -0
- data/public/libs/jstree/_docs/unique.html +85 -0
- data/public/libs/jstree/_docs/xml_data.html +218 -0
- data/public/libs/jstree/_lib/jquery.cookie.js +96 -0
- data/public/libs/jstree/_lib/jquery.hotkeys.js +99 -0
- data/public/libs/jstree/_lib/jquery.js +5 -0
- data/public/libs/jstree/jquery.jstree.js +4564 -0
- data/public/libs/jstree/themes/apple/bg.jpg +0 -0
- data/public/libs/jstree/themes/apple/d.png +0 -0
- data/public/libs/jstree/themes/apple/dot_for_ie.gif +0 -0
- data/public/libs/jstree/themes/apple/style.css +61 -0
- data/public/libs/jstree/themes/apple/throbber.gif +0 -0
- data/public/libs/jstree/themes/classic/d.gif +0 -0
- data/public/libs/jstree/themes/classic/d.png +0 -0
- data/public/libs/jstree/themes/classic/dot_for_ie.gif +0 -0
- data/public/libs/jstree/themes/classic/style.css +77 -0
- data/public/libs/jstree/themes/classic/throbber.gif +0 -0
- data/public/libs/jstree/themes/default-rtl/d.gif +0 -0
- data/public/libs/jstree/themes/default-rtl/d.png +0 -0
- data/public/libs/jstree/themes/default-rtl/dots.gif +0 -0
- data/public/libs/jstree/themes/default-rtl/style.css +84 -0
- data/public/libs/jstree/themes/default-rtl/throbber.gif +0 -0
- data/public/libs/jstree/themes/default/d.gif +0 -0
- data/public/libs/jstree/themes/default/d.png +0 -0
- data/public/libs/jstree/themes/default/style.css +74 -0
- data/public/libs/jstree/themes/default/throbber.gif +0 -0
- data/public/themes/geo-bootstrap/README.md +25 -0
- data/public/themes/geo-bootstrap/img/flames.gif +0 -0
- data/public/themes/geo-bootstrap/img/glyphicons-halflings-white.png +0 -0
- data/public/themes/geo-bootstrap/img/glyphicons-halflings.png +0 -0
- data/public/themes/geo-bootstrap/img/microfab.gif +0 -0
- data/public/themes/geo-bootstrap/img/progress.gif +0 -0
- data/public/themes/geo-bootstrap/img/rainbow.gif +0 -0
- data/public/themes/geo-bootstrap/img/stars.gif +0 -0
- data/public/themes/geo-bootstrap/img/test/7upspot.gif +0 -0
- data/public/themes/geo-bootstrap/img/test/americanflag.gif +0 -0
- data/public/themes/geo-bootstrap/img/test/community.gif +0 -0
- data/public/themes/geo-bootstrap/img/test/computer-01.gif +0 -0
- data/public/themes/geo-bootstrap/img/test/computer.gif +0 -0
- data/public/themes/geo-bootstrap/img/test/construction.gif +0 -0
- data/public/themes/geo-bootstrap/img/test/counter.gif +0 -0
- data/public/themes/geo-bootstrap/img/test/counter2.gif +0 -0
- data/public/themes/geo-bootstrap/img/test/divider.gif +0 -0
- data/public/themes/geo-bootstrap/img/test/divider1.gif +0 -0
- data/public/themes/geo-bootstrap/img/test/divider2.gif +0 -0
- data/public/themes/geo-bootstrap/img/test/divider3.gif +0 -0
- data/public/themes/geo-bootstrap/img/test/divider4.gif +0 -0
- data/public/themes/geo-bootstrap/img/test/drudgesiren.gif +0 -0
- data/public/themes/geo-bootstrap/img/test/emailme.gif +0 -0
- data/public/themes/geo-bootstrap/img/test/funky.gif +0 -0
- data/public/themes/geo-bootstrap/img/test/geocities.jpg +0 -0
- data/public/themes/geo-bootstrap/img/test/hacker.gif +0 -0
- data/public/themes/geo-bootstrap/img/test/heart.gif +0 -0
- data/public/themes/geo-bootstrap/img/test/hot.gif +0 -0
- data/public/themes/geo-bootstrap/img/test/ie_logo.gif +0 -0
- data/public/themes/geo-bootstrap/img/test/mailkitten.gif +0 -0
- data/public/themes/geo-bootstrap/img/test/mchammer.gif +0 -0
- data/public/themes/geo-bootstrap/img/test/new.gif +0 -0
- data/public/themes/geo-bootstrap/img/test/new2.gif +0 -0
- data/public/themes/geo-bootstrap/img/test/noframes.gif +0 -0
- data/public/themes/geo-bootstrap/img/test/notepad.gif +0 -0
- data/public/themes/geo-bootstrap/img/test/ns_logo.gif +0 -0
- data/public/themes/geo-bootstrap/img/test/sign-in.gif +0 -0
- data/public/themes/geo-bootstrap/img/test/spinningearth.gif +0 -0
- data/public/themes/geo-bootstrap/img/test/underconstruction.gif +0 -0
- data/public/themes/geo-bootstrap/img/test/wabwalk.gif +0 -0
- data/public/themes/geo-bootstrap/img/test/webtrips.gif +0 -0
- data/public/themes/geo-bootstrap/img/test/yahooweek.gif +0 -0
- data/public/themes/geo-bootstrap/package.json +21 -0
- data/public/themes/geo-bootstrap/swatch/bootstrap-responsive.css +1109 -0
- data/public/themes/geo-bootstrap/swatch/bootstrap-responsive.min.css +9 -0
- data/public/themes/geo-bootstrap/swatch/bootstrap.css +6462 -0
- data/public/themes/geo-bootstrap/swatch/bootstrap.min.css +9 -0
- metadata +791 -0
@@ -0,0 +1,350 @@
|
|
1
|
+
smalltalk.addPackage('Maglev-Vendor', {});
|
2
|
+
smalltalk.addClass('MaglevAjax', smalltalk.Object, [], 'Maglev-Vendor');
|
3
|
+
|
4
|
+
smalltalk.addMethod(
|
5
|
+
unescape('_ajax_data_'),
|
6
|
+
smalltalk.method({
|
7
|
+
selector: unescape('ajax%3Adata%3A'),
|
8
|
+
fn: function (aString, data){
|
9
|
+
var self=this;
|
10
|
+
var result = $.parseJSON($.ajax({url: aString, data: $.parseJSON(data._asJSONString()), async: false}).responseText);
|
11
|
+
if (result.success === false) {
|
12
|
+
self.error('Server call failed: ' + result.exception);
|
13
|
+
}
|
14
|
+
else {
|
15
|
+
return result.result;
|
16
|
+
} ;
|
17
|
+
return self;}
|
18
|
+
}),
|
19
|
+
smalltalk.MaglevAjax.klass);
|
20
|
+
|
21
|
+
smalltalk.addMethod(
|
22
|
+
unescape('_ajax_data_withCallback_'),
|
23
|
+
smalltalk.method({
|
24
|
+
selector: unescape('ajax%3Adata%3AwithCallback%3A'),
|
25
|
+
fn: function (aString, data, aBlock){
|
26
|
+
var self=this;
|
27
|
+
$.ajax({url: aString, data: $.parseJSON(data._asJSONString()), async: true, complete: function(response) {
|
28
|
+
var result = $.parseJSON(response.responseText);
|
29
|
+
if (result.success === false) {
|
30
|
+
self.error('Server call failed: ' + result.exception);
|
31
|
+
} else {
|
32
|
+
aBlock._value_(result.result);
|
33
|
+
}
|
34
|
+
}}); ;
|
35
|
+
return self;}
|
36
|
+
}),
|
37
|
+
smalltalk.MaglevAjax.klass);
|
38
|
+
|
39
|
+
|
40
|
+
smalltalk.addClass('MaglevJsPlumb', smalltalk.Object, [], 'Maglev-Vendor');
|
41
|
+
|
42
|
+
smalltalk.MaglevJsPlumb.klass.iVarNames = ['sourceTarget','defaults','referenceConnection','instanceOfConnection','virtualClassConnection','superclassConnection','connection'];
|
43
|
+
smalltalk.addMethod(
|
44
|
+
unescape('_connectWindow_to_as_with_'),
|
45
|
+
smalltalk.method({
|
46
|
+
selector: unescape('connectWindow%3Ato%3Aas%3Awith%3A'),
|
47
|
+
fn: function (sourceWindow, targetWindow, cType, caption){
|
48
|
+
var self=this;
|
49
|
+
try{var params=nil;
|
50
|
+
var type=nil;
|
51
|
+
var defParams=nil;
|
52
|
+
var sourceEl=nil;
|
53
|
+
var targetEl=nil;
|
54
|
+
var text=nil;
|
55
|
+
((($receiver = smalltalk.send(sourceWindow, "__eq", [targetWindow])).klass === smalltalk.Boolean) ? ($receiver ? (function(){return (function(){throw({name: 'stReturn', selector: '_connectWindow_to_as_with_', fn: function(){return self}})})();})() : nil) : smalltalk.send($receiver, "_ifTrue_", [(function(){return (function(){throw({name: 'stReturn', selector: '_connectWindow_to_as_with_', fn: function(){return self}})})();})]));
|
56
|
+
(type=smalltalk.send(smalltalk.send(self, "_connection", []), "_at_", [cType]));
|
57
|
+
(sourceEl=smalltalk.send(smalltalk.send(sourceWindow, "_container", []), "_asJQuery", []));
|
58
|
+
(targetEl=smalltalk.send(smalltalk.send(targetWindow, "_container", []), "_asJQuery", []));
|
59
|
+
(($receiver = caption) == nil || $receiver == undefined) ? (function(){return (text="");})() : (function(){return (text=smalltalk.send(caption, "_asString", []));})();
|
60
|
+
((($receiver = smalltalk.send(text, "__eq", [""])).klass === smalltalk.Boolean) ? (! $receiver ? (function(){return (text=smalltalk.send(smalltalk.send(unescape("%3Cspan%20class%3D%22component%20object-ivname-box%22%20style%3D%22white-space%3A%20nowrap%3B%22%3E"), "__comma", [text]), "__comma", [unescape("%3C/span%3E")]));})() : nil) : smalltalk.send($receiver, "_ifFalse_", [(function(){return (text=smalltalk.send(smalltalk.send(unescape("%3Cspan%20class%3D%22component%20object-ivname-box%22%20style%3D%22white-space%3A%20nowrap%3B%22%3E"), "__comma", [text]), "__comma", [unescape("%3C/span%3E")]));})]));
|
61
|
+
params = $.extend(true, {}, type);
|
62
|
+
params.source = sourceEl;
|
63
|
+
params.target = targetEl;
|
64
|
+
params.overlays[1][1].label = text; ;
|
65
|
+
smalltalk.send((typeof jsPlumb == 'undefined' ? nil : jsPlumb), "_connect_", [params]);
|
66
|
+
return self;
|
67
|
+
} catch(e) {if(e.name === 'stReturn' && e.selector === '_connectWindow_to_as_with_'){return e.fn()} throw(e)}}
|
68
|
+
}),
|
69
|
+
smalltalk.MaglevJsPlumb.klass);
|
70
|
+
|
71
|
+
smalltalk.addMethod(
|
72
|
+
unescape('_connectWindow_to_with_'),
|
73
|
+
smalltalk.method({
|
74
|
+
selector: unescape('connectWindow%3Ato%3Awith%3A'),
|
75
|
+
fn: function (sourceWindow, targetWindow, parameters){
|
76
|
+
var self=this;
|
77
|
+
try{var params=nil;
|
78
|
+
var type=nil;
|
79
|
+
var defParams=nil;
|
80
|
+
((($receiver = smalltalk.send(sourceWindow, "__eq", [targetWindow])).klass === smalltalk.Boolean) ? ($receiver ? (function(){return (function(){throw({name: 'stReturn', selector: '_connectWindow_to_with_', fn: function(){return self}})})();})() : nil) : smalltalk.send($receiver, "_ifTrue_", [(function(){return (function(){throw({name: 'stReturn', selector: '_connectWindow_to_with_', fn: function(){return self}})})();})]));
|
81
|
+
(type=smalltalk.send(smalltalk.send(self, "_connection", []), "_at_", [smalltalk.send(parameters, "_at_", [smalltalk.symbolFor("type")])]));
|
82
|
+
params = $.extend(true, {}, defParams); ;
|
83
|
+
(function($rec){smalltalk.send($rec, "_basicAt_put_", ["source", smalltalk.send(sourceWindow, "_container", [])]);return smalltalk.send($rec, "_basicAt_put_", ["target", smalltalk.send(targetWindow, "_container", [])]);})(params);
|
84
|
+
smalltalk.send((typeof jsPlumb == 'undefined' ? nil : jsPlumb), "_connect_", [params]);
|
85
|
+
return self;
|
86
|
+
} catch(e) {if(e.name === 'stReturn' && e.selector === '_connectWindow_to_with_'){return e.fn()} throw(e)}}
|
87
|
+
}),
|
88
|
+
smalltalk.MaglevJsPlumb.klass);
|
89
|
+
|
90
|
+
smalltalk.addMethod(
|
91
|
+
unescape('_connection'),
|
92
|
+
smalltalk.method({
|
93
|
+
selector: unescape('connection'),
|
94
|
+
fn: function (){
|
95
|
+
var self=this;
|
96
|
+
return self['@connection'];
|
97
|
+
return self;}
|
98
|
+
}),
|
99
|
+
smalltalk.MaglevJsPlumb.klass);
|
100
|
+
|
101
|
+
smalltalk.addMethod(
|
102
|
+
unescape('_constConnection'),
|
103
|
+
smalltalk.method({
|
104
|
+
selector: unescape('constConnection'),
|
105
|
+
fn: function (){
|
106
|
+
var self=this;
|
107
|
+
return (function($rec){smalltalk.send($rec, "_at_put_", [smalltalk.symbolFor("iv"), self['@referenceConnection']]);smalltalk.send($rec, "_at_put_", [smalltalk.symbolFor("hashKey"), self['@referenceConnection']]);smalltalk.send($rec, "_at_put_", [smalltalk.symbolFor("hashValue"), self['@referenceConnection']]);smalltalk.send($rec, "_at_put_", [smalltalk.symbolFor("arrayElement"), self['@referenceConnection']]);smalltalk.send($rec, "_at_put_", [smalltalk.symbolFor("class"), self['@instanceOfConnection']]);smalltalk.send($rec, "_at_put_", [smalltalk.symbolFor("virtualClass"), self['@virtualClassConnection']]);smalltalk.send($rec, "_at_put_", [smalltalk.symbolFor("superclass"), self['@superclassConnection']]);return smalltalk.send($rec, "_yourself", []);})(smalltalk.send((smalltalk.Dictionary || Dictionary), "_new", []));
|
108
|
+
return self;}
|
109
|
+
}),
|
110
|
+
smalltalk.MaglevJsPlumb.klass);
|
111
|
+
|
112
|
+
smalltalk.addMethod(
|
113
|
+
unescape('_constDefaults'),
|
114
|
+
smalltalk.method({
|
115
|
+
selector: unescape('constDefaults'),
|
116
|
+
fn: function (){
|
117
|
+
var self=this;
|
118
|
+
return {
|
119
|
+
Connector: ["Bezier", {curviness: 50}],
|
120
|
+
DragOptions: {cursor: "pointer", zIndex: 2000},
|
121
|
+
PaintStyle: {strokeStyle: "gray", lineWidth: 2},
|
122
|
+
Endpoint: ["Dot",{radius: 1}],
|
123
|
+
EndpointStyle: {radius: 1, fillStyle: "gray"},
|
124
|
+
HoverPaintStyle: {strokeStyle: "#ec9f2e"},
|
125
|
+
EndpointHoverStyle: {fillStyle: "#ec9f2e"},
|
126
|
+
Anchors: ["BottomCenter", "TopCenter"]}; ;
|
127
|
+
return self;}
|
128
|
+
}),
|
129
|
+
smalltalk.MaglevJsPlumb.klass);
|
130
|
+
|
131
|
+
smalltalk.addMethod(
|
132
|
+
unescape('_constInstanceOfConnection'),
|
133
|
+
smalltalk.method({
|
134
|
+
selector: unescape('constInstanceOfConnection'),
|
135
|
+
fn: function (){
|
136
|
+
var self=this;
|
137
|
+
return {
|
138
|
+
overlays: ["Arrow", [
|
139
|
+
"Label",
|
140
|
+
{label: "?", location: 0.25, id: "myLabel"}]],
|
141
|
+
paintStyle: {
|
142
|
+
lineWidth: 2,
|
143
|
+
strokeStyle:"#9b59bb",
|
144
|
+
dashstyle:"4 2",
|
145
|
+
joinstyle:"miter"}}; ;
|
146
|
+
return self;}
|
147
|
+
}),
|
148
|
+
smalltalk.MaglevJsPlumb.klass);
|
149
|
+
|
150
|
+
smalltalk.addMethod(
|
151
|
+
unescape('_constReferenceConnection'),
|
152
|
+
smalltalk.method({
|
153
|
+
selector: unescape('constReferenceConnection'),
|
154
|
+
fn: function (){
|
155
|
+
var self=this;
|
156
|
+
return {
|
157
|
+
overlays: ["Arrow", [
|
158
|
+
"Label",
|
159
|
+
{label: "?", location: 0.25, id: "myLabel"}]]}; ;
|
160
|
+
return self;}
|
161
|
+
}),
|
162
|
+
smalltalk.MaglevJsPlumb.klass);
|
163
|
+
|
164
|
+
smalltalk.addMethod(
|
165
|
+
unescape('_constSourceTarget'),
|
166
|
+
smalltalk.method({
|
167
|
+
selector: unescape('constSourceTarget'),
|
168
|
+
fn: function (){
|
169
|
+
var self=this;
|
170
|
+
return {
|
171
|
+
dropOptions: {
|
172
|
+
hoverClass:"dragHover"
|
173
|
+
},
|
174
|
+
anchor: "Continuous"}; ;
|
175
|
+
return self;}
|
176
|
+
}),
|
177
|
+
smalltalk.MaglevJsPlumb.klass);
|
178
|
+
|
179
|
+
smalltalk.addMethod(
|
180
|
+
unescape('_constSuperclassConnection'),
|
181
|
+
smalltalk.method({
|
182
|
+
selector: unescape('constSuperclassConnection'),
|
183
|
+
fn: function (){
|
184
|
+
var self=this;
|
185
|
+
return {
|
186
|
+
overlays: ["PlainArrow", [
|
187
|
+
"Label",
|
188
|
+
{label: "?", location: 0.25, id: "myLabel"}]],
|
189
|
+
paintStyle: {
|
190
|
+
lineWidth: 2,
|
191
|
+
strokeStyle:"#346789",
|
192
|
+
joinstyle:"miter"}}; ;
|
193
|
+
return self;}
|
194
|
+
}),
|
195
|
+
smalltalk.MaglevJsPlumb.klass);
|
196
|
+
|
197
|
+
smalltalk.addMethod(
|
198
|
+
unescape('_constVirtualClassConnection'),
|
199
|
+
smalltalk.method({
|
200
|
+
selector: unescape('constVirtualClassConnection'),
|
201
|
+
fn: function (){
|
202
|
+
var self=this;
|
203
|
+
return {
|
204
|
+
overlays: ["Arrow", [
|
205
|
+
"Label",
|
206
|
+
{label: "?", location: 0.25, id: "myLabel"}]],
|
207
|
+
paintStyle: {
|
208
|
+
lineWidth: 2,
|
209
|
+
strokeStyle:"#c50b0b",
|
210
|
+
dashstyle:"4 2",
|
211
|
+
joinstyle:"miter"}}; ;
|
212
|
+
return self;}
|
213
|
+
}),
|
214
|
+
smalltalk.MaglevJsPlumb.klass);
|
215
|
+
|
216
|
+
smalltalk.addMethod(
|
217
|
+
unescape('_defaults'),
|
218
|
+
smalltalk.method({
|
219
|
+
selector: unescape('defaults'),
|
220
|
+
fn: function (){
|
221
|
+
var self=this;
|
222
|
+
return self['@defaults'];
|
223
|
+
return self;}
|
224
|
+
}),
|
225
|
+
smalltalk.MaglevJsPlumb.klass);
|
226
|
+
|
227
|
+
smalltalk.addMethod(
|
228
|
+
unescape('_deleteEndpointsFor_'),
|
229
|
+
smalltalk.method({
|
230
|
+
selector: unescape('deleteEndpointsFor%3A'),
|
231
|
+
fn: function (anObject){
|
232
|
+
var self=this;
|
233
|
+
var endpoints=nil;
|
234
|
+
(endpoints=smalltalk.send((typeof jsPlumb == 'undefined' ? nil : jsPlumb), "_getEndpoints_", [anObject]));
|
235
|
+
(($receiver = endpoints) != nil && $receiver != undefined) ? (function(){return smalltalk.send(endpoints, "_do_", [(function(endpoint){return smalltalk.send((typeof jsPlumb == 'undefined' ? nil : jsPlumb), "_deleteEndpoint_", [endpoint]);})]);})() : nil;
|
236
|
+
return self;}
|
237
|
+
}),
|
238
|
+
smalltalk.MaglevJsPlumb.klass);
|
239
|
+
|
240
|
+
smalltalk.addMethod(
|
241
|
+
unescape('_initialize'),
|
242
|
+
smalltalk.method({
|
243
|
+
selector: unescape('initialize'),
|
244
|
+
fn: function (){
|
245
|
+
var self=this;
|
246
|
+
smalltalk.send(self, "_initializeConstants", []);
|
247
|
+
smalltalk.send(self, "_initializeJsPlumb", []);
|
248
|
+
return self;}
|
249
|
+
}),
|
250
|
+
smalltalk.MaglevJsPlumb.klass);
|
251
|
+
|
252
|
+
smalltalk.addMethod(
|
253
|
+
unescape('_initializeChromeFix'),
|
254
|
+
smalltalk.method({
|
255
|
+
selector: unescape('initializeChromeFix'),
|
256
|
+
fn: function (){
|
257
|
+
var self=this;
|
258
|
+
document.onselectstart = function() {
|
259
|
+
return false;
|
260
|
+
}; ;
|
261
|
+
return self;}
|
262
|
+
}),
|
263
|
+
smalltalk.MaglevJsPlumb.klass);
|
264
|
+
|
265
|
+
smalltalk.addMethod(
|
266
|
+
unescape('_initializeConstants'),
|
267
|
+
smalltalk.method({
|
268
|
+
selector: unescape('initializeConstants'),
|
269
|
+
fn: function (){
|
270
|
+
var self=this;
|
271
|
+
(self['@sourceTarget']=smalltalk.send(self, "_constSourceTarget", []));
|
272
|
+
(self['@defaults']=smalltalk.send(self, "_constDefaults", []));
|
273
|
+
(self['@referenceConnection']=smalltalk.send(self, "_constReferenceConnection", []));
|
274
|
+
(self['@instanceOfConnection']=smalltalk.send(self, "_constInstanceOfConnection", []));
|
275
|
+
(self['@virtualClassConnection']=smalltalk.send(self, "_constVirtualClassConnection", []));
|
276
|
+
(self['@superclassConnection']=smalltalk.send(self, "_constSuperclassConnection", []));
|
277
|
+
(self['@connection']=smalltalk.send(self, "_constConnection", []));
|
278
|
+
return self;}
|
279
|
+
}),
|
280
|
+
smalltalk.MaglevJsPlumb.klass);
|
281
|
+
|
282
|
+
smalltalk.addMethod(
|
283
|
+
unescape('_initializeJsPlumb'),
|
284
|
+
smalltalk.method({
|
285
|
+
selector: unescape('initializeJsPlumb'),
|
286
|
+
fn: function (){
|
287
|
+
var self=this;
|
288
|
+
smalltalk.send((typeof jsPlumb == 'undefined' ? nil : jsPlumb), "_bind_a_", ["ready", (function(){smalltalk.send(self, "_initializeChromeFix", []);smalltalk.send((typeof jsPlumb == 'undefined' ? nil : jsPlumb), "_setRenderMode_", [smalltalk.send((typeof jsPlumb == 'undefined' ? nil : jsPlumb), "_SVG", [])]);return smalltalk.send((typeof jsPlumb == 'undefined' ? nil : jsPlumb), "_importDefaults_", [self['@defaults']]);})]);
|
289
|
+
return self;}
|
290
|
+
}),
|
291
|
+
smalltalk.MaglevJsPlumb.klass);
|
292
|
+
|
293
|
+
smalltalk.addMethod(
|
294
|
+
unescape('_instanceOfConnection'),
|
295
|
+
smalltalk.method({
|
296
|
+
selector: unescape('instanceOfConnection'),
|
297
|
+
fn: function (){
|
298
|
+
var self=this;
|
299
|
+
return self['@instanceOfConnection'];
|
300
|
+
return self;}
|
301
|
+
}),
|
302
|
+
smalltalk.MaglevJsPlumb.klass);
|
303
|
+
|
304
|
+
smalltalk.addMethod(
|
305
|
+
unescape('_prepareObject_'),
|
306
|
+
smalltalk.method({
|
307
|
+
selector: unescape('prepareObject%3A'),
|
308
|
+
fn: function (anObject){
|
309
|
+
var self=this;
|
310
|
+
smalltalk.send((typeof jsPlumb == 'undefined' ? nil : jsPlumb), "_draggable_", [anObject]);
|
311
|
+
smalltalk.send((typeof jsPlumb == 'undefined' ? nil : jsPlumb), "_makeSource_a_", [anObject, self['@sourceTarget']]);
|
312
|
+
smalltalk.send((typeof jsPlumb == 'undefined' ? nil : jsPlumb), "_makeTarget_a_", [anObject, self['@sourceTarget']]);
|
313
|
+
return self;}
|
314
|
+
}),
|
315
|
+
smalltalk.MaglevJsPlumb.klass);
|
316
|
+
|
317
|
+
smalltalk.addMethod(
|
318
|
+
unescape('_referenceConnection'),
|
319
|
+
smalltalk.method({
|
320
|
+
selector: unescape('referenceConnection'),
|
321
|
+
fn: function (){
|
322
|
+
var self=this;
|
323
|
+
return self['@referenceConnection'];
|
324
|
+
return self;}
|
325
|
+
}),
|
326
|
+
smalltalk.MaglevJsPlumb.klass);
|
327
|
+
|
328
|
+
smalltalk.addMethod(
|
329
|
+
unescape('_sourceTarget'),
|
330
|
+
smalltalk.method({
|
331
|
+
selector: unescape('sourceTarget'),
|
332
|
+
fn: function (){
|
333
|
+
var self=this;
|
334
|
+
return self['@sourceTarget'];
|
335
|
+
return self;}
|
336
|
+
}),
|
337
|
+
smalltalk.MaglevJsPlumb.klass);
|
338
|
+
|
339
|
+
smalltalk.addMethod(
|
340
|
+
unescape('_virtualClassConnection'),
|
341
|
+
smalltalk.method({
|
342
|
+
selector: unescape('virtualClassConnection'),
|
343
|
+
fn: function (){
|
344
|
+
var self=this;
|
345
|
+
return self['@virtualClassConnection'];
|
346
|
+
return self;}
|
347
|
+
}),
|
348
|
+
smalltalk.MaglevJsPlumb.klass);
|
349
|
+
|
350
|
+
|
@@ -0,0 +1,465 @@
|
|
1
|
+
smalltalk.addPackage('Maglev-Vendor', {});
|
2
|
+
smalltalk.addClass('MaglevAjax', smalltalk.Object, [], 'Maglev-Vendor');
|
3
|
+
|
4
|
+
smalltalk.addMethod(
|
5
|
+
unescape('_ajax_data_'),
|
6
|
+
smalltalk.method({
|
7
|
+
selector: unescape('ajax%3Adata%3A'),
|
8
|
+
category: 'not yet classified',
|
9
|
+
fn: function (aString, data){
|
10
|
+
var self=this;
|
11
|
+
var result = $.parseJSON($.ajax({url: aString, data: $.parseJSON(data._asJSONString()), async: false}).responseText);
|
12
|
+
if (result.success === false) {
|
13
|
+
self.error('Server call failed: ' + result.exception);
|
14
|
+
}
|
15
|
+
else {
|
16
|
+
return result.result;
|
17
|
+
} ;
|
18
|
+
return self;},
|
19
|
+
args: ["aString", "data"],
|
20
|
+
source: unescape('ajax%3A%20aString%20data%3A%20data%0A%09%3C%20var%20result%20%3D%20%24.parseJSON%28%24.ajax%28%7Burl%3A%20aString%2C%20data%3A%20%24.parseJSON%28data._asJSONString%28%29%29%2C%20async%3A%20false%7D%29.responseText%29%3B%0A%09if%20%28result.success%20%3D%3D%3D%20false%29%20%7B%0A%09%09self.error%28%27Server%20call%20failed%3A%20%27%20+%20result.exception%29%3B%0A%09%7D%0A%09else%20%7B%0A%09%09return%20result.result%3B%0A%09%7D%20%3E'),
|
21
|
+
messageSends: [],
|
22
|
+
referencedClasses: []
|
23
|
+
}),
|
24
|
+
smalltalk.MaglevAjax.klass);
|
25
|
+
|
26
|
+
smalltalk.addMethod(
|
27
|
+
unescape('_ajax_data_withCallback_'),
|
28
|
+
smalltalk.method({
|
29
|
+
selector: unescape('ajax%3Adata%3AwithCallback%3A'),
|
30
|
+
category: 'not yet classified',
|
31
|
+
fn: function (aString, data, aBlock){
|
32
|
+
var self=this;
|
33
|
+
$.ajax({url: aString, data: $.parseJSON(data._asJSONString()), async: true, complete: function(response) {
|
34
|
+
var result = $.parseJSON(response.responseText);
|
35
|
+
if (result.success === false) {
|
36
|
+
self.error('Server call failed: ' + result.exception);
|
37
|
+
} else {
|
38
|
+
aBlock._value_(result.result);
|
39
|
+
}
|
40
|
+
}}); ;
|
41
|
+
return self;},
|
42
|
+
args: ["aString", "data", "aBlock"],
|
43
|
+
source: unescape('ajax%3A%20aString%20data%3A%20data%20withCallback%3A%20aBlock%0A%09%3C%20%24.ajax%28%7Burl%3A%20aString%2C%20data%3A%20%24.parseJSON%28data._asJSONString%28%29%29%2C%20async%3A%20true%2C%20complete%3A%20function%28response%29%20%7B%0A%09%09var%20result%20%3D%20%24.parseJSON%28response.responseText%29%3B%0A%09%09if%20%28result.success%20%3D%3D%3D%20false%29%20%7B%0A%09%09%09self.error%28%27Server%20call%20failed%3A%20%27%20+%20result.exception%29%3B%0A%09%09%7D%20else%20%7B%0A%09%09%09aBlock._value_%28result.result%29%3B%0A%09%09%7D%0A%09%7D%7D%29%3B%20%3E'),
|
44
|
+
messageSends: [],
|
45
|
+
referencedClasses: []
|
46
|
+
}),
|
47
|
+
smalltalk.MaglevAjax.klass);
|
48
|
+
|
49
|
+
|
50
|
+
smalltalk.addClass('MaglevJsPlumb', smalltalk.Object, [], 'Maglev-Vendor');
|
51
|
+
|
52
|
+
smalltalk.MaglevJsPlumb.klass.iVarNames = ['sourceTarget','defaults','referenceConnection','instanceOfConnection','virtualClassConnection','superclassConnection','connection'];
|
53
|
+
smalltalk.addMethod(
|
54
|
+
unescape('_connectWindow_to_as_with_'),
|
55
|
+
smalltalk.method({
|
56
|
+
selector: unescape('connectWindow%3Ato%3Aas%3Awith%3A'),
|
57
|
+
category: 'interactions',
|
58
|
+
fn: function (sourceWindow, targetWindow, cType, caption){
|
59
|
+
var self=this;
|
60
|
+
try{var params=nil;
|
61
|
+
var type=nil;
|
62
|
+
var defParams=nil;
|
63
|
+
var sourceEl=nil;
|
64
|
+
var targetEl=nil;
|
65
|
+
var text=nil;
|
66
|
+
((($receiver = smalltalk.send(sourceWindow, "__eq", [targetWindow])).klass === smalltalk.Boolean) ? ($receiver ? (function(){return (function(){throw({name: 'stReturn', selector: '_connectWindow_to_as_with_', fn: function(){return self}})})();})() : nil) : smalltalk.send($receiver, "_ifTrue_", [(function(){return (function(){throw({name: 'stReturn', selector: '_connectWindow_to_as_with_', fn: function(){return self}})})();})]));
|
67
|
+
(type=smalltalk.send(smalltalk.send(self, "_connection", []), "_at_", [cType]));
|
68
|
+
(sourceEl=smalltalk.send(smalltalk.send(sourceWindow, "_container", []), "_asJQuery", []));
|
69
|
+
(targetEl=smalltalk.send(smalltalk.send(targetWindow, "_container", []), "_asJQuery", []));
|
70
|
+
(($receiver = caption) == nil || $receiver == undefined) ? (function(){return (text="");})() : (function(){return (text=smalltalk.send(caption, "_asString", []));})();
|
71
|
+
((($receiver = smalltalk.send(text, "__eq", [""])).klass === smalltalk.Boolean) ? (! $receiver ? (function(){return (text=smalltalk.send(smalltalk.send(unescape("%3Cspan%20class%3D%22component%20object-ivname-box%22%20style%3D%22white-space%3A%20nowrap%3B%22%3E"), "__comma", [text]), "__comma", [unescape("%3C/span%3E")]));})() : nil) : smalltalk.send($receiver, "_ifFalse_", [(function(){return (text=smalltalk.send(smalltalk.send(unescape("%3Cspan%20class%3D%22component%20object-ivname-box%22%20style%3D%22white-space%3A%20nowrap%3B%22%3E"), "__comma", [text]), "__comma", [unescape("%3C/span%3E")]));})]));
|
72
|
+
params = $.extend(true, {}, type);
|
73
|
+
params.source = sourceEl;
|
74
|
+
params.target = targetEl;
|
75
|
+
params.overlays[1][1].label = text; ;
|
76
|
+
smalltalk.send((typeof jsPlumb == 'undefined' ? nil : jsPlumb), "_connect_", [params]);
|
77
|
+
return self;
|
78
|
+
} catch(e) {if(e.name === 'stReturn' && e.selector === '_connectWindow_to_as_with_'){return e.fn()} throw(e)}},
|
79
|
+
args: ["sourceWindow", "targetWindow", "cType", "caption"],
|
80
|
+
source: unescape('connectWindow%3A%20sourceWindow%20to%3A%20targetWindow%20as%3A%20cType%20with%3A%20caption%0A%09%7Cparams%20type%20defParams%20sourceEl%20targetEl%20text%7C%0A%09sourceWindow%20%3D%20targetWindow%20ifTrue%3A%20%5B%5E%20self%5D.%0A%09type%20%3A%3D%20self%20connection%20at%3A%20cType.%0A%09sourceEl%20%3A%3D%20sourceWindow%20container%20asJQuery.%0A%09targetEl%20%3A%3D%20targetWindow%20container%20asJQuery.%0A%09caption%0A%09%09ifNil%3A%20%5Btext%20%3A%3D%20%27%27%5D%0A%09%09ifNotNil%3A%20%5Btext%20%3A%3D%20caption%20asString%5D.%0A%09text%20%3D%20%27%27%0A%09%09ifFalse%3A%20%5Btext%20%3A%3D%20%27%3Cspan%20class%3D%22component%20object-ivname-box%22%20style%3D%22white-space%3A%20nowrap%3B%22%3E%27%2C%20text%2C%20%27%3C/span%3E%27%5D.%0A%09%3C%20params%20%3D%20%24.extend%28true%2C%20%7B%7D%2C%20type%29%3B%20%0A%09params.source%20%3D%20sourceEl%3B%0A%09params.target%20%3D%20targetEl%3B%20%0A%09params.overlays%5B1%5D%5B1%5D.label%20%3D%20text%3B%20%3E.%0A%0A%09jsPlumb%20connect%3A%20params.'),
|
81
|
+
messageSends: ["ifTrue:", unescape("%3D"), "at:", "connection", "asJQuery", "container", "ifNil:ifNotNil:", "asString", "ifFalse:", unescape("%2C"), "connect:"],
|
82
|
+
referencedClasses: []
|
83
|
+
}),
|
84
|
+
smalltalk.MaglevJsPlumb.klass);
|
85
|
+
|
86
|
+
smalltalk.addMethod(
|
87
|
+
unescape('_connectWindow_to_with_'),
|
88
|
+
smalltalk.method({
|
89
|
+
selector: unescape('connectWindow%3Ato%3Awith%3A'),
|
90
|
+
category: 'interactions',
|
91
|
+
fn: function (sourceWindow, targetWindow, parameters){
|
92
|
+
var self=this;
|
93
|
+
try{var params=nil;
|
94
|
+
var type=nil;
|
95
|
+
var defParams=nil;
|
96
|
+
((($receiver = smalltalk.send(sourceWindow, "__eq", [targetWindow])).klass === smalltalk.Boolean) ? ($receiver ? (function(){return (function(){throw({name: 'stReturn', selector: '_connectWindow_to_with_', fn: function(){return self}})})();})() : nil) : smalltalk.send($receiver, "_ifTrue_", [(function(){return (function(){throw({name: 'stReturn', selector: '_connectWindow_to_with_', fn: function(){return self}})})();})]));
|
97
|
+
(type=smalltalk.send(smalltalk.send(self, "_connection", []), "_at_", [smalltalk.send(parameters, "_at_", [smalltalk.symbolFor("type")])]));
|
98
|
+
params = $.extend(true, {}, defParams); ;
|
99
|
+
(function($rec){smalltalk.send($rec, "_basicAt_put_", ["source", smalltalk.send(sourceWindow, "_container", [])]);return smalltalk.send($rec, "_basicAt_put_", ["target", smalltalk.send(targetWindow, "_container", [])]);})(params);
|
100
|
+
smalltalk.send((typeof jsPlumb == 'undefined' ? nil : jsPlumb), "_connect_", [params]);
|
101
|
+
return self;
|
102
|
+
} catch(e) {if(e.name === 'stReturn' && e.selector === '_connectWindow_to_with_'){return e.fn()} throw(e)}},
|
103
|
+
args: ["sourceWindow", "targetWindow", "parameters"],
|
104
|
+
source: unescape('connectWindow%3A%20sourceWindow%20to%3A%20targetWindow%20with%3A%20parameters%0A%09%7Cparams%20type%20defParams%7C%0A%09sourceWindow%20%3D%20targetWindow%20ifTrue%3A%20%5B%5E%20self%5D.%0A%09type%20%3A%3D%20self%20connection%20at%3A%20%28parameters%20at%3A%20%23type%29.%0A%09%3C%20params%20%3D%20%24.extend%28true%2C%20%7B%7D%2C%20defParams%29%3B%20%3E.%0A%09params%0A%09%09basicAt%3A%20%27source%27%20put%3A%20sourceWindow%20container%3B%0A%09%09basicAt%3A%20%27target%27%20put%3A%20targetWindow%20container.%0A%0A%09jsPlumb%20connect%3A%20params.'),
|
105
|
+
messageSends: ["ifTrue:", unescape("%3D"), "at:", "connection", "basicAt:put:", "container", "connect:"],
|
106
|
+
referencedClasses: []
|
107
|
+
}),
|
108
|
+
smalltalk.MaglevJsPlumb.klass);
|
109
|
+
|
110
|
+
smalltalk.addMethod(
|
111
|
+
unescape('_connection'),
|
112
|
+
smalltalk.method({
|
113
|
+
selector: unescape('connection'),
|
114
|
+
category: 'accessing',
|
115
|
+
fn: function (){
|
116
|
+
var self=this;
|
117
|
+
return self['@connection'];
|
118
|
+
return self;},
|
119
|
+
args: [],
|
120
|
+
source: unescape('connection%0A%09%5E%20connection'),
|
121
|
+
messageSends: [],
|
122
|
+
referencedClasses: []
|
123
|
+
}),
|
124
|
+
smalltalk.MaglevJsPlumb.klass);
|
125
|
+
|
126
|
+
smalltalk.addMethod(
|
127
|
+
unescape('_constConnection'),
|
128
|
+
smalltalk.method({
|
129
|
+
selector: unescape('constConnection'),
|
130
|
+
category: 'constants',
|
131
|
+
fn: function (){
|
132
|
+
var self=this;
|
133
|
+
return (function($rec){smalltalk.send($rec, "_at_put_", [smalltalk.symbolFor("iv"), self['@referenceConnection']]);smalltalk.send($rec, "_at_put_", [smalltalk.symbolFor("hashKey"), self['@referenceConnection']]);smalltalk.send($rec, "_at_put_", [smalltalk.symbolFor("hashValue"), self['@referenceConnection']]);smalltalk.send($rec, "_at_put_", [smalltalk.symbolFor("arrayElement"), self['@referenceConnection']]);smalltalk.send($rec, "_at_put_", [smalltalk.symbolFor("class"), self['@instanceOfConnection']]);smalltalk.send($rec, "_at_put_", [smalltalk.symbolFor("virtualClass"), self['@virtualClassConnection']]);smalltalk.send($rec, "_at_put_", [smalltalk.symbolFor("superclass"), self['@superclassConnection']]);return smalltalk.send($rec, "_yourself", []);})(smalltalk.send((smalltalk.Dictionary || Dictionary), "_new", []));
|
134
|
+
return self;},
|
135
|
+
args: [],
|
136
|
+
source: unescape('constConnection%0A%09%5E%20Dictionary%20new%0A%09%09at%3A%20%23iv%20put%3A%20referenceConnection%3B%0A%09%09at%3A%20%23hashKey%20put%3A%20referenceConnection%3B%0A%09%09at%3A%20%23hashValue%20put%3A%20referenceConnection%3B%0A%09%09at%3A%20%23arrayElement%20put%3A%20referenceConnection%3B%0A%09%09at%3A%20%23class%20put%3A%20instanceOfConnection%3B%0A%09%09at%3A%20%23virtualClass%20put%3A%20virtualClassConnection%3B%0A%09%09at%3A%20%23superclass%20put%3A%20superclassConnection%3B%0A%09%09yourself'),
|
137
|
+
messageSends: ["at:put:", "yourself", "new"],
|
138
|
+
referencedClasses: ["Dictionary"]
|
139
|
+
}),
|
140
|
+
smalltalk.MaglevJsPlumb.klass);
|
141
|
+
|
142
|
+
smalltalk.addMethod(
|
143
|
+
unescape('_constDefaults'),
|
144
|
+
smalltalk.method({
|
145
|
+
selector: unescape('constDefaults'),
|
146
|
+
category: 'constants',
|
147
|
+
fn: function (){
|
148
|
+
var self=this;
|
149
|
+
return {
|
150
|
+
Connector: ["Bezier", {curviness: 50}],
|
151
|
+
DragOptions: {cursor: "pointer", zIndex: 2000},
|
152
|
+
PaintStyle: {strokeStyle: "gray", lineWidth: 2},
|
153
|
+
Endpoint: ["Dot",{radius: 1}],
|
154
|
+
EndpointStyle: {radius: 1, fillStyle: "gray"},
|
155
|
+
HoverPaintStyle: {strokeStyle: "#ec9f2e"},
|
156
|
+
EndpointHoverStyle: {fillStyle: "#ec9f2e"},
|
157
|
+
Anchors: ["BottomCenter", "TopCenter"]}; ;
|
158
|
+
return self;},
|
159
|
+
args: [],
|
160
|
+
source: unescape('constDefaults%0A%09%3C%20return%20%7B%0A%09%09Connector%3A%20%5B%22Bezier%22%2C%20%7Bcurviness%3A%2050%7D%5D%2C%0A%09%09DragOptions%3A%20%7Bcursor%3A%20%22pointer%22%2C%20zIndex%3A%202000%7D%2C%0A%09%09PaintStyle%3A%20%7BstrokeStyle%3A%20%22gray%22%2C%20lineWidth%3A%202%7D%2C%0A%09%09Endpoint%3A%20%5B%22Dot%22%2C%7Bradius%3A%201%7D%5D%2C%0A%09%09EndpointStyle%3A%20%7Bradius%3A%201%2C%20fillStyle%3A%20%22gray%22%7D%2C%0A%09%09HoverPaintStyle%3A%20%7BstrokeStyle%3A%20%22%23ec9f2e%22%7D%2C%0A%09%09EndpointHoverStyle%3A%20%7BfillStyle%3A%20%22%23ec9f2e%22%7D%2C%0A%09%09Anchors%3A%20%5B%22BottomCenter%22%2C%20%22TopCenter%22%5D%7D%3B%20%3E'),
|
161
|
+
messageSends: [],
|
162
|
+
referencedClasses: []
|
163
|
+
}),
|
164
|
+
smalltalk.MaglevJsPlumb.klass);
|
165
|
+
|
166
|
+
smalltalk.addMethod(
|
167
|
+
unescape('_constInstanceOfConnection'),
|
168
|
+
smalltalk.method({
|
169
|
+
selector: unescape('constInstanceOfConnection'),
|
170
|
+
category: 'constants',
|
171
|
+
fn: function (){
|
172
|
+
var self=this;
|
173
|
+
return {
|
174
|
+
overlays: ["Arrow", [
|
175
|
+
"Label",
|
176
|
+
{label: "?", location: 0.25, id: "myLabel"}]],
|
177
|
+
paintStyle: {
|
178
|
+
lineWidth: 2,
|
179
|
+
strokeStyle:"#9b59bb",
|
180
|
+
dashstyle:"4 2",
|
181
|
+
joinstyle:"miter"}}; ;
|
182
|
+
return self;},
|
183
|
+
args: [],
|
184
|
+
source: unescape('constInstanceOfConnection%0A%09%3C%20return%20%7B%0A%09%09overlays%3A%20%5B%22Arrow%22%2C%20%5B%0A%09%09%09%22Label%22%2C%0A%09%09%09%7Blabel%3A%20%22%3F%22%2C%20location%3A%200.25%2C%20id%3A%20%22myLabel%22%7D%5D%5D%2C%0A%09%09paintStyle%3A%20%7B%0A%09%09%09lineWidth%3A%202%2C%0A%09%09%09strokeStyle%3A%22%239b59bb%22%2C%0A%09%09%09dashstyle%3A%224%202%22%2C%0A%09%09%09joinstyle%3A%22miter%22%7D%7D%3B%20%3E'),
|
185
|
+
messageSends: [],
|
186
|
+
referencedClasses: []
|
187
|
+
}),
|
188
|
+
smalltalk.MaglevJsPlumb.klass);
|
189
|
+
|
190
|
+
smalltalk.addMethod(
|
191
|
+
unescape('_constReferenceConnection'),
|
192
|
+
smalltalk.method({
|
193
|
+
selector: unescape('constReferenceConnection'),
|
194
|
+
category: 'constants',
|
195
|
+
fn: function (){
|
196
|
+
var self=this;
|
197
|
+
return {
|
198
|
+
overlays: ["Arrow", [
|
199
|
+
"Label",
|
200
|
+
{label: "?", location: 0.25, id: "myLabel"}]]}; ;
|
201
|
+
return self;},
|
202
|
+
args: [],
|
203
|
+
source: unescape('constReferenceConnection%0A%09%3C%20return%20%7B%0A%09%09overlays%3A%20%5B%22Arrow%22%2C%20%5B%0A%09%09%09%22Label%22%2C%0A%09%09%09%7Blabel%3A%20%22%3F%22%2C%20location%3A%200.25%2C%20id%3A%20%22myLabel%22%7D%5D%5D%7D%3B%20%3E'),
|
204
|
+
messageSends: [],
|
205
|
+
referencedClasses: []
|
206
|
+
}),
|
207
|
+
smalltalk.MaglevJsPlumb.klass);
|
208
|
+
|
209
|
+
smalltalk.addMethod(
|
210
|
+
unescape('_constSourceTarget'),
|
211
|
+
smalltalk.method({
|
212
|
+
selector: unescape('constSourceTarget'),
|
213
|
+
category: 'constants',
|
214
|
+
fn: function (){
|
215
|
+
var self=this;
|
216
|
+
return {
|
217
|
+
dropOptions: {
|
218
|
+
hoverClass:"dragHover"
|
219
|
+
},
|
220
|
+
anchor: "Continuous"}; ;
|
221
|
+
return self;},
|
222
|
+
args: [],
|
223
|
+
source: unescape('constSourceTarget%0A%09%3C%20return%20%7B%0A%09%09dropOptions%3A%20%7B%0A%09%09%09hoverClass%3A%22dragHover%22%0A%09%09%7D%2C%0A%20%09%09anchor%3A%20%22Continuous%22%7D%3B%20%3E'),
|
224
|
+
messageSends: [],
|
225
|
+
referencedClasses: []
|
226
|
+
}),
|
227
|
+
smalltalk.MaglevJsPlumb.klass);
|
228
|
+
|
229
|
+
smalltalk.addMethod(
|
230
|
+
unescape('_constSuperclassConnection'),
|
231
|
+
smalltalk.method({
|
232
|
+
selector: unescape('constSuperclassConnection'),
|
233
|
+
category: 'constants',
|
234
|
+
fn: function (){
|
235
|
+
var self=this;
|
236
|
+
return {
|
237
|
+
overlays: ["PlainArrow", [
|
238
|
+
"Label",
|
239
|
+
{label: "?", location: 0.25, id: "myLabel"}]],
|
240
|
+
paintStyle: {
|
241
|
+
lineWidth: 2,
|
242
|
+
strokeStyle:"#346789",
|
243
|
+
joinstyle:"miter"}}; ;
|
244
|
+
return self;},
|
245
|
+
args: [],
|
246
|
+
source: unescape('constSuperclassConnection%0A%09%3C%20return%20%7B%0A%09%09overlays%3A%20%5B%22PlainArrow%22%2C%20%5B%0A%09%09%09%22Label%22%2C%0A%09%09%09%7Blabel%3A%20%22%3F%22%2C%20location%3A%200.25%2C%20id%3A%20%22myLabel%22%7D%5D%5D%2C%0A%09%09paintStyle%3A%20%7B%0A%09%09%09lineWidth%3A%202%2C%0A%09%09%09strokeStyle%3A%22%23346789%22%2C%0A%09%09%09joinstyle%3A%22miter%22%7D%7D%3B%20%3E'),
|
247
|
+
messageSends: [],
|
248
|
+
referencedClasses: []
|
249
|
+
}),
|
250
|
+
smalltalk.MaglevJsPlumb.klass);
|
251
|
+
|
252
|
+
smalltalk.addMethod(
|
253
|
+
unescape('_constVirtualClassConnection'),
|
254
|
+
smalltalk.method({
|
255
|
+
selector: unescape('constVirtualClassConnection'),
|
256
|
+
category: 'constants',
|
257
|
+
fn: function (){
|
258
|
+
var self=this;
|
259
|
+
return {
|
260
|
+
overlays: ["Arrow", [
|
261
|
+
"Label",
|
262
|
+
{label: "?", location: 0.25, id: "myLabel"}]],
|
263
|
+
paintStyle: {
|
264
|
+
lineWidth: 2,
|
265
|
+
strokeStyle:"#c50b0b",
|
266
|
+
dashstyle:"4 2",
|
267
|
+
joinstyle:"miter"}}; ;
|
268
|
+
return self;},
|
269
|
+
args: [],
|
270
|
+
source: unescape('constVirtualClassConnection%0A%09%3C%20return%20%7B%0A%09%09overlays%3A%20%5B%22Arrow%22%2C%20%5B%0A%09%09%09%22Label%22%2C%0A%09%09%09%7Blabel%3A%20%22%3F%22%2C%20location%3A%200.25%2C%20id%3A%20%22myLabel%22%7D%5D%5D%2C%0A%09%09paintStyle%3A%20%7B%0A%09%09%09lineWidth%3A%202%2C%0A%09%09%09strokeStyle%3A%22%23c50b0b%22%2C%0A%09%09%09dashstyle%3A%224%202%22%2C%0A%09%09%09joinstyle%3A%22miter%22%7D%7D%3B%20%3E'),
|
271
|
+
messageSends: [],
|
272
|
+
referencedClasses: []
|
273
|
+
}),
|
274
|
+
smalltalk.MaglevJsPlumb.klass);
|
275
|
+
|
276
|
+
smalltalk.addMethod(
|
277
|
+
unescape('_defaults'),
|
278
|
+
smalltalk.method({
|
279
|
+
selector: unescape('defaults'),
|
280
|
+
category: 'accessing',
|
281
|
+
fn: function (){
|
282
|
+
var self=this;
|
283
|
+
return self['@defaults'];
|
284
|
+
return self;},
|
285
|
+
args: [],
|
286
|
+
source: unescape('defaults%0A%09%5E%20defaults'),
|
287
|
+
messageSends: [],
|
288
|
+
referencedClasses: []
|
289
|
+
}),
|
290
|
+
smalltalk.MaglevJsPlumb.klass);
|
291
|
+
|
292
|
+
smalltalk.addMethod(
|
293
|
+
unescape('_deleteEndpointsFor_'),
|
294
|
+
smalltalk.method({
|
295
|
+
selector: unescape('deleteEndpointsFor%3A'),
|
296
|
+
category: 'interactions',
|
297
|
+
fn: function (anObject){
|
298
|
+
var self=this;
|
299
|
+
var endpoints=nil;
|
300
|
+
(endpoints=smalltalk.send((typeof jsPlumb == 'undefined' ? nil : jsPlumb), "_getEndpoints_", [anObject]));
|
301
|
+
(($receiver = endpoints) != nil && $receiver != undefined) ? (function(){return smalltalk.send(endpoints, "_do_", [(function(endpoint){return smalltalk.send((typeof jsPlumb == 'undefined' ? nil : jsPlumb), "_deleteEndpoint_", [endpoint]);})]);})() : nil;
|
302
|
+
return self;},
|
303
|
+
args: ["anObject"],
|
304
|
+
source: unescape('deleteEndpointsFor%3A%20anObject%0A%09%7Cendpoints%7C%0A%09endpoints%20%3A%3D%20jsPlumb%20getEndpoints%3A%20anObject.%0A%09endpoints%20ifNotNil%3A%20%5Bendpoints%20do%3A%20%5B%3Aendpoint%20%7C%20jsPlumb%20deleteEndpoint%3A%20endpoint%5D%5D.'),
|
305
|
+
messageSends: ["getEndpoints:", "ifNotNil:", "do:", "deleteEndpoint:"],
|
306
|
+
referencedClasses: []
|
307
|
+
}),
|
308
|
+
smalltalk.MaglevJsPlumb.klass);
|
309
|
+
|
310
|
+
smalltalk.addMethod(
|
311
|
+
unescape('_initialize'),
|
312
|
+
smalltalk.method({
|
313
|
+
selector: unescape('initialize'),
|
314
|
+
category: 'initializing',
|
315
|
+
fn: function (){
|
316
|
+
var self=this;
|
317
|
+
smalltalk.send(self, "_initializeConstants", []);
|
318
|
+
smalltalk.send(self, "_initializeJsPlumb", []);
|
319
|
+
return self;},
|
320
|
+
args: [],
|
321
|
+
source: unescape('initialize%0A%09self%20initializeConstants.%0A%09self%20initializeJsPlumb.'),
|
322
|
+
messageSends: ["initializeConstants", "initializeJsPlumb"],
|
323
|
+
referencedClasses: []
|
324
|
+
}),
|
325
|
+
smalltalk.MaglevJsPlumb.klass);
|
326
|
+
|
327
|
+
smalltalk.addMethod(
|
328
|
+
unescape('_initializeChromeFix'),
|
329
|
+
smalltalk.method({
|
330
|
+
selector: unescape('initializeChromeFix'),
|
331
|
+
category: 'initializing',
|
332
|
+
fn: function (){
|
333
|
+
var self=this;
|
334
|
+
document.onselectstart = function() {
|
335
|
+
return false;
|
336
|
+
}; ;
|
337
|
+
return self;},
|
338
|
+
args: [],
|
339
|
+
source: unescape('initializeChromeFix%0A%09%3C%20document.onselectstart%20%3D%20function%28%29%20%7B%0A%09%09return%20false%3B%0A%09%7D%3B%20%3E'),
|
340
|
+
messageSends: [],
|
341
|
+
referencedClasses: []
|
342
|
+
}),
|
343
|
+
smalltalk.MaglevJsPlumb.klass);
|
344
|
+
|
345
|
+
smalltalk.addMethod(
|
346
|
+
unescape('_initializeConstants'),
|
347
|
+
smalltalk.method({
|
348
|
+
selector: unescape('initializeConstants'),
|
349
|
+
category: 'initializing',
|
350
|
+
fn: function (){
|
351
|
+
var self=this;
|
352
|
+
(self['@sourceTarget']=smalltalk.send(self, "_constSourceTarget", []));
|
353
|
+
(self['@defaults']=smalltalk.send(self, "_constDefaults", []));
|
354
|
+
(self['@referenceConnection']=smalltalk.send(self, "_constReferenceConnection", []));
|
355
|
+
(self['@instanceOfConnection']=smalltalk.send(self, "_constInstanceOfConnection", []));
|
356
|
+
(self['@virtualClassConnection']=smalltalk.send(self, "_constVirtualClassConnection", []));
|
357
|
+
(self['@superclassConnection']=smalltalk.send(self, "_constSuperclassConnection", []));
|
358
|
+
(self['@connection']=smalltalk.send(self, "_constConnection", []));
|
359
|
+
return self;},
|
360
|
+
args: [],
|
361
|
+
source: unescape('initializeConstants%0A%09sourceTarget%20%3A%3D%20self%20constSourceTarget.%0A%09defaults%20%3A%3D%20self%20constDefaults.%0A%09referenceConnection%20%3A%3D%20self%20constReferenceConnection.%0A%09instanceOfConnection%20%3A%3D%20self%20constInstanceOfConnection.%0A%09virtualClassConnection%20%3A%3D%20self%20constVirtualClassConnection.%0A%09superclassConnection%20%3A%3D%20self%20constSuperclassConnection.%0A%09connection%20%3A%3D%20self%20constConnection.'),
|
362
|
+
messageSends: ["constSourceTarget", "constDefaults", "constReferenceConnection", "constInstanceOfConnection", "constVirtualClassConnection", "constSuperclassConnection", "constConnection"],
|
363
|
+
referencedClasses: []
|
364
|
+
}),
|
365
|
+
smalltalk.MaglevJsPlumb.klass);
|
366
|
+
|
367
|
+
smalltalk.addMethod(
|
368
|
+
unescape('_initializeJsPlumb'),
|
369
|
+
smalltalk.method({
|
370
|
+
selector: unescape('initializeJsPlumb'),
|
371
|
+
category: 'initializing',
|
372
|
+
fn: function (){
|
373
|
+
var self=this;
|
374
|
+
smalltalk.send((typeof jsPlumb == 'undefined' ? nil : jsPlumb), "_bind_a_", ["ready", (function(){smalltalk.send(self, "_initializeChromeFix", []);smalltalk.send((typeof jsPlumb == 'undefined' ? nil : jsPlumb), "_setRenderMode_", [smalltalk.send((typeof jsPlumb == 'undefined' ? nil : jsPlumb), "_SVG", [])]);return smalltalk.send((typeof jsPlumb == 'undefined' ? nil : jsPlumb), "_importDefaults_", [self['@defaults']]);})]);
|
375
|
+
return self;},
|
376
|
+
args: [],
|
377
|
+
source: unescape('initializeJsPlumb%0A%09jsPlumb%0A%09%09bind%3A%20%27ready%27%0A%09%09a%3A%20%5B%0A%09%09%09self%20initializeChromeFix.%0A%09%09%09jsPlumb%20setRenderMode%3A%20jsPlumb%20SVG.%0A%09%09%09jsPlumb%20importDefaults%3A%20defaults%5D.'),
|
378
|
+
messageSends: ["bind:a:", "initializeChromeFix", "setRenderMode:", "SVG", "importDefaults:"],
|
379
|
+
referencedClasses: []
|
380
|
+
}),
|
381
|
+
smalltalk.MaglevJsPlumb.klass);
|
382
|
+
|
383
|
+
smalltalk.addMethod(
|
384
|
+
unescape('_instanceOfConnection'),
|
385
|
+
smalltalk.method({
|
386
|
+
selector: unescape('instanceOfConnection'),
|
387
|
+
category: 'accessing',
|
388
|
+
fn: function (){
|
389
|
+
var self=this;
|
390
|
+
return self['@instanceOfConnection'];
|
391
|
+
return self;},
|
392
|
+
args: [],
|
393
|
+
source: unescape('instanceOfConnection%0A%09%5E%20instanceOfConnection'),
|
394
|
+
messageSends: [],
|
395
|
+
referencedClasses: []
|
396
|
+
}),
|
397
|
+
smalltalk.MaglevJsPlumb.klass);
|
398
|
+
|
399
|
+
smalltalk.addMethod(
|
400
|
+
unescape('_prepareObject_'),
|
401
|
+
smalltalk.method({
|
402
|
+
selector: unescape('prepareObject%3A'),
|
403
|
+
category: 'interactions',
|
404
|
+
fn: function (anObject){
|
405
|
+
var self=this;
|
406
|
+
smalltalk.send((typeof jsPlumb == 'undefined' ? nil : jsPlumb), "_draggable_", [anObject]);
|
407
|
+
smalltalk.send((typeof jsPlumb == 'undefined' ? nil : jsPlumb), "_makeSource_a_", [anObject, self['@sourceTarget']]);
|
408
|
+
smalltalk.send((typeof jsPlumb == 'undefined' ? nil : jsPlumb), "_makeTarget_a_", [anObject, self['@sourceTarget']]);
|
409
|
+
return self;},
|
410
|
+
args: ["anObject"],
|
411
|
+
source: unescape('prepareObject%3A%20anObject%0A%09jsPlumb%20draggable%3A%20anObject.%0A%09jsPlumb%20makeSource%3A%20anObject%20a%3A%20sourceTarget.%0A%09jsPlumb%20makeTarget%3A%20anObject%20a%3A%20sourceTarget.'),
|
412
|
+
messageSends: ["draggable:", "makeSource:a:", "makeTarget:a:"],
|
413
|
+
referencedClasses: []
|
414
|
+
}),
|
415
|
+
smalltalk.MaglevJsPlumb.klass);
|
416
|
+
|
417
|
+
smalltalk.addMethod(
|
418
|
+
unescape('_referenceConnection'),
|
419
|
+
smalltalk.method({
|
420
|
+
selector: unescape('referenceConnection'),
|
421
|
+
category: 'accessing',
|
422
|
+
fn: function (){
|
423
|
+
var self=this;
|
424
|
+
return self['@referenceConnection'];
|
425
|
+
return self;},
|
426
|
+
args: [],
|
427
|
+
source: unescape('referenceConnection%0A%09%5E%20referenceConnection'),
|
428
|
+
messageSends: [],
|
429
|
+
referencedClasses: []
|
430
|
+
}),
|
431
|
+
smalltalk.MaglevJsPlumb.klass);
|
432
|
+
|
433
|
+
smalltalk.addMethod(
|
434
|
+
unescape('_sourceTarget'),
|
435
|
+
smalltalk.method({
|
436
|
+
selector: unescape('sourceTarget'),
|
437
|
+
category: 'accessing',
|
438
|
+
fn: function (){
|
439
|
+
var self=this;
|
440
|
+
return self['@sourceTarget'];
|
441
|
+
return self;},
|
442
|
+
args: [],
|
443
|
+
source: unescape('sourceTarget%0A%09%5E%20sourceTarget'),
|
444
|
+
messageSends: [],
|
445
|
+
referencedClasses: []
|
446
|
+
}),
|
447
|
+
smalltalk.MaglevJsPlumb.klass);
|
448
|
+
|
449
|
+
smalltalk.addMethod(
|
450
|
+
unescape('_virtualClassConnection'),
|
451
|
+
smalltalk.method({
|
452
|
+
selector: unescape('virtualClassConnection'),
|
453
|
+
category: 'accessing',
|
454
|
+
fn: function (){
|
455
|
+
var self=this;
|
456
|
+
return self['@virtualClassConnection'];
|
457
|
+
return self;},
|
458
|
+
args: [],
|
459
|
+
source: unescape('virtualClassConnection%0A%09%5E%20virtualClassConnection'),
|
460
|
+
messageSends: [],
|
461
|
+
referencedClasses: []
|
462
|
+
}),
|
463
|
+
smalltalk.MaglevJsPlumb.klass);
|
464
|
+
|
465
|
+
|