Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristian Pontesegger2014-11-20 19:19:39 +0000
committerChristian Pontesegger2014-11-20 19:19:39 +0000
commit4dc5e7d14d279ccd34e1887f0f345475192be850 (patch)
tree25c78057288a7539f87caca49063ad1444bd9df8 /JavaScript Beginner Tutorial
downloadorg.eclipse.ease.scripts-4dc5e7d14d279ccd34e1887f0f345475192be850.tar.gz
org.eclipse.ease.scripts-4dc5e7d14d279ccd34e1887f0f345475192be850.tar.xz
org.eclipse.ease.scripts-4dc5e7d14d279ccd34e1887f0f345475192be850.zip
added initial script projects
Diffstat (limited to 'JavaScript Beginner Tutorial')
-rw-r--r--JavaScript Beginner Tutorial/.project11
-rw-r--r--JavaScript Beginner Tutorial/01 Hello world/01 Hello world.js3
-rw-r--r--JavaScript Beginner Tutorial/01 Hello world/02 Hello World UI.js5
3 files changed, 19 insertions, 0 deletions
diff --git a/JavaScript Beginner Tutorial/.project b/JavaScript Beginner Tutorial/.project
new file mode 100644
index 0000000..247f6b5
--- /dev/null
+++ b/JavaScript Beginner Tutorial/.project
@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<projectDescription>
+ <name>JavaScript Beginner Tutorial</name>
+ <comment></comment>
+ <projects>
+ </projects>
+ <buildSpec>
+ </buildSpec>
+ <natures>
+ </natures>
+</projectDescription>
diff --git a/JavaScript Beginner Tutorial/01 Hello world/01 Hello world.js b/JavaScript Beginner Tutorial/01 Hello world/01 Hello world.js
new file mode 100644
index 0000000..fc48d4d
--- /dev/null
+++ b/JavaScript Beginner Tutorial/01 Hello world/01 Hello world.js
@@ -0,0 +1,3 @@
+// to run, right click on file in Project Explorer and select "Run As/EASE Script"
+// output will be printed to the console view
+print("Hello World"); \ No newline at end of file
diff --git a/JavaScript Beginner Tutorial/01 Hello world/02 Hello World UI.js b/JavaScript Beginner Tutorial/01 Hello world/02 Hello World UI.js
new file mode 100644
index 0000000..cdbe3e8
--- /dev/null
+++ b/JavaScript Beginner Tutorial/01 Hello world/02 Hello World UI.js
@@ -0,0 +1,5 @@
+// load additional UI commands
+loadModule('/System/UI');
+
+// open message box
+showInfoDialog("Hello World", "Greetings"); \ No newline at end of file

Back to the top