| <html> |
| <head> |
| <link rel="stylesheet" href="../webroot/stylesheet.css"> |
| <link href="https://fonts.googleapis.com/css?family=PT+Sans" rel="stylesheet"> |
| </head> |
| <body> |
| <h1>First steps with EASE</h1> |
| |
| <h2>Hello World</h2> |
| Open the <i>Script Shell</i> view and enter following code: |
| <pre>print("Hello World");</pre> |
| |
| The result will be printed to the <i>Console</i> view.<br /> |
| The return value of the operation will be visible in the Script Shell directly. |
| |
| <h2>Java Access</h2> |
| Java classes can be accessed directly by providing their full qualified name: |
| <pre>new java.io.File("C:/");</pre> |
| |
| For simpler access classes or and packages can be imported into the global namespace: |
| <pre>importClass(java.io.File); |
| new File("C:/")</pre> |
| |
| <h2>Eclipse Access</h2> |
| Due to a special classloader policy we may access Eclipse classes too: |
| <pre>org.eclipse.core.resources.ResourcesPlugin.getWorkspace().getRoot();</pre> |
| |
| </body> |
| </html> |