Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » Visual Editor (VE) » JVE log
JVE log [message #129276] Fri, 28 July 2006 20:00 Go to next message
hung is currently offline hungFriend
Messages: 117
Registered: July 2009
Senior Member
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 #129299 is a reply to message #129276] Fri, 28 July 2006 21:25 Go to previous messageGo to next message
Eclipse UserFriend
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 #129350 is a reply to message #129299] Sun, 30 July 2006 20:07 Go to previous messageGo to next message
hung is currently offline hungFriend
Messages: 117
Registered: July 2009
Senior Member
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 18:17 Go to previous message
hung is currently offline hungFriend
Messages: 117
Registered: July 2009
Senior Member
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 21:25 Go to previous message
Eclipse UserFriend
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 20:07 Go to previous message
hung is currently offline hungFriend
Messages: 117
Registered: July 2009
Senior Member
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 18:17 Go to previous message
hung is currently offline hungFriend
Messages: 117
Registered: July 2009
Senior Member
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 )
> {
> }
> }
>
>
Previous Topic:Create SWT Widget in Containment Handler of parent Composite
Next Topic:getClass().getName() returns org.eclipse.swt.widgets.Composite
Goto Forum:
  


Current Time: Thu Apr 18 23:01:56 GMT 2024

Powered by FUDForum. Page generated in 0.02208 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top