JVE log [message #129276] |
Fri, 28 July 2006 16:00  |
Eclipse User |
|
|
|
Are there any log, trace files that VE parses those composites. The
reason I looked for the log/trace is because my composite doesn't show up
in VE, and if I hover the mouse over it, it shows this warning message :
xxxx : java.lang.RuntimeException(null)
where xxx is the attribute that I am trying to set on my composite.
Thanks.
|
|
|
|
Re: JVE log [message #129350 is a reply to message #129299] |
Sun, 30 July 2006 16:07   |
Eclipse User |
|
|
|
Thanks Rich,
The log didn't show those exceptions, however, I was able to figure out
why there was the java.lang.RuntimeException(null).
There's still one exception when hover the mouse over my composite in VE.
It gives ClassNotFoundException. Here is an example of generated code
when drop from Palette.
private void createMyComposite()
{
myComposite = new MyComposite(this,SWT.NONE);
myComposite.setMyProperty(new MyProperty(2)); // @jve
}
VE complains that MyProperty class is not found. I have tried to extend
"org.eclipse.jem.proxy.contributors" to add my jars to VE JRE's classpath,
but no luck. Because of this exception, my composite doesn't render in VE
at all.
However, if I modified the code something like this, close and edit the
file again, it magically displays in VE.
private void createMyComposite()
{
try
{
myComposite = new MyComposite(this,SWT.NONE);
myComposite.setMyProperty(new MyProperty(2)); // @jve
}
catch ( Exception e )
{
}
}
|
|
|
Re: JVE log [message #129362 is a reply to message #129350] |
Mon, 31 July 2006 14:17  |
Eclipse User |
|
|
|
I got it to work by specify the whole qualified classname, ie:
myComposite.setMyProperty(new myPackage.myProperty(2));
Thanks.
Hung Lam wrote:
> Thanks Rich,
> The log didn't show those exceptions, however, I was able to figure out
> why there was the java.lang.RuntimeException(null).
> There's still one exception when hover the mouse over my composite in
> VE. It gives ClassNotFoundException. Here is an example of generated
> code when drop from Palette.
>
> private void createMyComposite()
> {
> myComposite = new MyComposite(this,SWT.NONE);
> myComposite.setMyProperty(new MyProperty(2)); // @jve
> }
>
> VE complains that MyProperty class is not found. I have tried to
> extend "org.eclipse.jem.proxy.contributors" to add my jars to VE JRE's
> classpath, but no luck. Because of this exception, my composite doesn't
> render in VE at all.
>
> However, if I modified the code something like this, close and edit the
> file again, it magically displays in VE.
>
> private void createMyComposite()
> {
> try
> {
> myComposite = new MyComposite(this,SWT.NONE);
> myComposite.setMyProperty(new MyProperty(2)); // @jve
> }
> catch ( Exception e )
> {
> }
> }
>
>
|
|
|
Re: JVE log [message #613616 is a reply to message #129276] |
Fri, 28 July 2006 17:25  |
Eclipse User |
|
|
|
Originally posted by: richkulp.us.NO_SPAM.ibm.com
Try the workspaces .metadata/.log file.
Hung Lam wrote:
> Are there any log, trace files that VE parses those composites. The
> reason I looked for the log/trace is because my composite doesn't show
> up in VE, and if I hover the mouse over it, it shows this warning message :
> xxxx : java.lang.RuntimeException(null)
>
> where xxx is the attribute that I am trying to set on my composite.
>
> Thanks.
>
--
Thanks,
Rich Kulp
|
|
|
Re: JVE log [message #613632 is a reply to message #129299] |
Sun, 30 July 2006 16:07  |
Eclipse User |
|
|
|
Thanks Rich,
The log didn't show those exceptions, however, I was able to figure out
why there was the java.lang.RuntimeException(null).
There's still one exception when hover the mouse over my composite in VE.
It gives ClassNotFoundException. Here is an example of generated code
when drop from Palette.
private void createMyComposite()
{
myComposite = new MyComposite(this,SWT.NONE);
myComposite.setMyProperty(new MyProperty(2)); // @jve
}
VE complains that MyProperty class is not found. I have tried to extend
"org.eclipse.jem.proxy.contributors" to add my jars to VE JRE's classpath,
but no luck. Because of this exception, my composite doesn't render in VE
at all.
However, if I modified the code something like this, close and edit the
file again, it magically displays in VE.
private void createMyComposite()
{
try
{
myComposite = new MyComposite(this,SWT.NONE);
myComposite.setMyProperty(new MyProperty(2)); // @jve
}
catch ( Exception e )
{
}
}
|
|
|
Re: JVE log [message #613638 is a reply to message #129350] |
Mon, 31 July 2006 14:17  |
Eclipse User |
|
|
|
I got it to work by specify the whole qualified classname, ie:
myComposite.setMyProperty(new myPackage.myProperty(2));
Thanks.
Hung Lam wrote:
> Thanks Rich,
> The log didn't show those exceptions, however, I was able to figure out
> why there was the java.lang.RuntimeException(null).
> There's still one exception when hover the mouse over my composite in
> VE. It gives ClassNotFoundException. Here is an example of generated
> code when drop from Palette.
>
> private void createMyComposite()
> {
> myComposite = new MyComposite(this,SWT.NONE);
> myComposite.setMyProperty(new MyProperty(2)); // @jve
> }
>
> VE complains that MyProperty class is not found. I have tried to
> extend "org.eclipse.jem.proxy.contributors" to add my jars to VE JRE's
> classpath, but no luck. Because of this exception, my composite doesn't
> render in VE at all.
>
> However, if I modified the code something like this, close and edit the
> file again, it magically displays in VE.
>
> private void createMyComposite()
> {
> try
> {
> myComposite = new MyComposite(this,SWT.NONE);
> myComposite.setMyProperty(new MyProperty(2)); // @jve
> }
> catch ( Exception e )
> {
> }
> }
>
>
|
|
|
Powered by
FUDForum. Page generated in 0.05685 seconds