summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 0f9b286)
raw | patch | inline | side by side (parent: 0f9b286)
author | ishmal <ishmal@users.sourceforge.net> | |
Wed, 12 Mar 2008 18:55:33 +0000 (18:55 +0000) | ||
committer | ishmal <ishmal@users.sourceforge.net> | |
Wed, 12 Mar 2008 18:55:33 +0000 (18:55 +0000) |
src/ui/dialog/scriptdialog.cpp | patch | blob | history |
index ff075c1868da82da7d4992a4297423780f6667c5..7b299b700cdb9231e10eb8a1c9d4142c92fdb5e2 100644 (file)
" * This is some example Javascript.\n"
" * Try 'Execute Javascript'\n"
" */\n"
+ "importPackage(javax.swing);\n"
"function sayHello() {\n"
- " println('Hello, world!');\n"
+ " JOptionPane.showMessageDialog(null, 'Hello, world!',\n"
+ " 'Welcome to Inkscape', JOptionPane.WARNING_MESSAGE);\n"
"}\n"
"\n"
"sayHello();\n"