[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
Re: [ease-dev] Hello World Java Script
|
Hi Jonah,
my question was Java related, but I think it was not obviously in my first mail.
Thanks for your help,
Raphael
2017-02-11 22:55 GMT+01:00 Jonah Graham <jonah@xxxxxxxxxxxxxxxx>:
> Raphael, Christian's reply made me realize I am not sure I answered
> your expected question. The subject line of your email referred to
> Java Script, but your message referred to native Java. I answered the
> Javascript version of the questions you asked.
>
> HTH
> Jonah
>
> ~~~
> Jonah Graham
> Kichwa Coders Ltd.
> www.kichwacoders.com
>
>
> On 11 February 2017 at 21:53, Jonah Graham <jonah@xxxxxxxxxxxxxxxx> wrote:
>> Hi Raphael,
>>
>> You might find it useful to clone the ease examples scripts:
>> https://git.eclipse.org/c/ease/org.eclipse.ease.scripts.git/
>>
>> To answer the specific questions:
>>
>>> I try a Hello-World-Example, but my Hello World text was not written
>>> in the UI Console (only to the console of Eclipse). So
>>> System.out.println ist not written to the write console.
>> When using "System" from Javascript, you are using the one in the same
>> JVM as Eclipse is running, so System.out is the stdout of Eclipse, not
>> the console. Example:
>> https://git.eclipse.org/c/ease/org.eclipse.ease.scripts.git/tree/JavaScript%20Beginner%20Tutorial/01%20Hello%20world/03%20Hello%20World%20SysOut.js
>>
>>> Does someone know how can I print to the right console?
>> Use the custom provided print() method. Example:
>> https://git.eclipse.org/c/ease/org.eclipse.ease.scripts.git/tree/JavaScript%20Beginner%20Tutorial/01%20Hello%20world/01%20Hello%20world.js
>>
>>
>>> And second question: How can I load modules?
>> Further example in same category is using showInfoDialog from the UI
>> Module. The code is:
>>
>> loadModule('/System/UI');
>> showInfoDialog("Hello World", "Greetings");
>>
>> The full example (which has no more code, but comments):
>> https://git.eclipse.org/c/ease/org.eclipse.ease.scripts.git/tree/JavaScript%20Beginner%20Tutorial/01%20Hello%20world/02%20Hello%20World%20UI.js
>>
>> For documentation on the modules, open Help within your EASE install.
>>
>> HTH
>> Jonah
> _______________________________________________
> ease-dev mailing list
> ease-dev@xxxxxxxxxxx
> To change your delivery options, retrieve your password, or unsubscribe from this list, visit
> https://dev.eclipse.org/mailman/listinfo/ease-dev