Skip to main content



      Home
Home » Eclipse Projects » Eclipse 4 » XWT + TableViewer + Handler + open vs load Behaviour
XWT + TableViewer + Handler + open vs load Behaviour [message #565624] Tue, 08 December 2009 21:26 Go to next message
Eclipse UserFriend
I have a handler containing a method
protected void rowSelected(Object sender, Event event) {
System.out.println("Row Selected Event !")
}

When using a stand alone program to invoke XWT.open, "rowSelected" is called. XWT open was used here
XWT.open(url, getSG());

However, when I use the same XWT and run it as eclipse product, I get the following execption
org.eclipse.e4.xwt.XWTException: Event handler "rowSelected" is not found.
Only differnece is XWT.load is called
XWT.load(parent, url, getSG ( ) );

Did I miss anything ?

Thanks
- Walter.
Re: XWT + TableViewer + Handler + open vs load Behaviour [message #565713 is a reply to message #565624] Thu, 10 December 2009 08:02 Go to previous messageGo to next message
Eclipse UserFriend
It is a problem of class loader. You need to add the folowing code before calling XWT.load() or XWT.open()
XWT.setLoadingContext(new DefaultLoadingContext(this.getClass()
.getClassLoader()));
Re: XWT + TableViewer + Handler + open vs load Behaviour [message #565735 is a reply to message #565713] Thu, 10 December 2009 09:47 Go to previous message
Eclipse UserFriend
Thanks Yves Yang.
"Yves YANG" <yves.yang@soyatec.com> wrote in message
news:hfqrhj$e3j$1@build.eclipse.org...
> It is a problem of class loader. You need to add the folowing code before
> calling XWT.load() or XWT.open()
> XWT.setLoadingContext(new DefaultLoadingContext(this.getClass()
> .getClassLoader()));
>
>
Previous Topic:XWT + TableViewer + Handler + open vs load Behaviour
Next Topic:Somthing is missing in the "New and Noteworthy".
Goto Forum:
  


Current Time: Wed Jul 16 19:57:42 EDT 2025

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

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

Back to the top