Trouble accessing java objects [message #21113] |
Mon, 29 June 2009 08:20  |
Eclipse User |
|
|
|
Hi!
I've got some trouble accessing a java object within evl/eol.
The given example works fine:
var frame := new Native('javax.swing.JFrame');
But when I try to call my own object like
var clazz := new Native('workflow.validation.TestClass');
I'm getting the following error message:
"Type 'workflow.validation.TestClass' not found"
Any suggestions?
Greetings
|
|
|
|
|
|
|
Re: Trouble accessing java objects [message #479780 is a reply to message #479765] |
Wed, 12 August 2009 09:42  |
Eclipse User |
|
|
|
Hi Dimitris
> This is the expected behaviour as Epsilon couldn't possibly know
> anything about your plugin until it is activated (i.e. in a runtime
> workbench).
thank for your quick (and easy :-) ) answer. Surely I need more studying
and practice on Eclipse plug-ins.
Ivo(sh)
|
|
|
|
|
Re: Trouble accessing java objects [message #573779 is a reply to message #21162] |
Wed, 12 August 2009 07:33  |
Eclipse User |
|
|
|
Hi All
I tried to use some native Java class in EOL but I haven't success. Even I used Dimitrios's and Louis's document named "Epsilon Tools" even information from this thread - if I start attached "nt.eol" script from inside of Eclipse, I will get error is "Type 'nativetest.NativeTest' not found". But if I start it from "generated" Eclipse application, script work ok.
Probably I must be something overlooking ... can someone take a look to attached sources and help me?
Thanks in advance
---
Ivo(sh)
Versions:
Eclipse Galileo Modeling Suite / Epsilon 0.8.6 on Linux 64bit
---
plugin.xml:
<?xml version="1.0" encoding="UTF-8"?>
<?eclipse version="3.4"?>
<plugin>
<extension point="org.eclipse.epsilon.common.dt.tool">
<tool class="nativetest.NativeTest" defaultName="nativetest"/>
</extension>
</plugin>
---
MANIFEST.MF:
Manifest-Version: 1.0
Bundle-ManifestVersion: 2
Bundle-Name: Nativetest
Bundle-SymbolicName: nativetest;singleton:=true
Bundle-Version: 1.0.0.qualifier
Bundle-Activator: nativetest.Activator
Require-Bundle: org.eclipse.core.runtime, org.eclipse.epsilon.common.dt;bundle-version="0.8.6", org.eclipse.epsilon.eol.engine;bundle-version="0.8.6"
Bundle-RequiredExecutionEnvironment: JavaSE-1.6
---
NativeTest.java:
package nativetest;
public class NativeTest {
public String hello() {
return "HELLO FROM NATIVE TEST RUN";
}
}
---
nt.eol:
'START'.println();
var x := new Native('nativetest.NativeTest');
x.println();
x.hello().println();
|
|
|
Re: Trouble accessing java objects [message #573819 is a reply to message #573779] |
Wed, 12 August 2009 08:59  |
Eclipse User |
|
|
|
Hi Ivosh,
This is the expected behaviour as Epsilon couldn't possibly know
anything about your plugin until it is activated (i.e. in a runtime
workbench).
Cheers,
Dimitris
Ivosh Musil wrote:
> Hi All
>
> I tried to use some native Java class in EOL but I haven't success. Even
> I used Dimitrios's and Louis's document named "Epsilon Tools" even
> information from this thread - if I start attached "nt.eol" script from
> inside of Eclipse, I will get error is "Type 'nativetest.NativeTest' not
> found". But if I start it from "generated" Eclipse application, script
> work ok.
>
> Probably I must be something overlooking ... can someone take a look to
> attached sources and help me?
>
>
> Thanks in advance
>
> ---
> Ivo(sh)
>
>
>
> Versions:
>
> Eclipse Galileo Modeling Suite / Epsilon 0.8.6 on Linux 64bit
>
> ---
> plugin.xml:
>
> <?xml version="1.0" encoding="UTF-8"?>
> <?eclipse version="3.4"?>
> <plugin>
> <extension point="org.eclipse.epsilon.common.dt.tool">
> <tool class="nativetest.NativeTest" defaultName="nativetest"/>
> </extension>
> </plugin>
>
> ---
> MANIFEST.MF:
>
> Manifest-Version: 1.0
> Bundle-ManifestVersion: 2
> Bundle-Name: Nativetest
> Bundle-SymbolicName: nativetest;singleton:=true
> Bundle-Version: 1.0.0.qualifier
> Bundle-Activator: nativetest.Activator
> Require-Bundle: org.eclipse.core.runtime,
> org.eclipse.epsilon.common.dt;bundle-version="0.8.6",
> org.eclipse.epsilon.eol.engine;bundle-version="0.8.6"
> Bundle-RequiredExecutionEnvironment: JavaSE-1.6
>
> ---
> NativeTest.java:
>
> package nativetest;
>
> public class NativeTest {
> public String hello() {
> return "HELLO FROM NATIVE TEST RUN";
> }
> }
>
> ---
> nt.eol:
>
> 'START'.println();
> var x := new Native('nativetest.NativeTest');
> x.println();
> x.hello().println();
>
>
|
|
|
Re: Trouble accessing java objects [message #573933 is a reply to message #479765] |
Wed, 12 August 2009 09:42  |
Eclipse User |
|
|
|
Hi Dimitris
> This is the expected behaviour as Epsilon couldn't possibly know
> anything about your plugin until it is activated (i.e. in a runtime
> workbench).
thank for your quick (and easy :-) ) answer. Surely I need more studying
and practice on Eclipse plug-ins.
Ivo(sh)
|
|
|
Powered by
FUDForum. Page generated in 0.11203 seconds