Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse 4 » XWT + TableViewer + Handler + open vs load Behaviour(org.eclipse.e4.xwt.XWTException: Event handler "rowSelected" is not found.)
XWT + TableViewer + Handler + open vs load Behaviour [message #502601] Wed, 09 December 2009 02:26 Go to next message
Walter Mising name is currently offline Walter Mising nameFriend
Messages: 126
Registered: July 2009
Senior Member
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 #502962 is a reply to message #502601] Thu, 10 December 2009 13:02 Go to previous messageGo to next message
Yves YANG is currently offline Yves YANGFriend
Messages: 687
Registered: July 2009
Senior Member
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 #503002 is a reply to message #502962] Thu, 10 December 2009 14:47 Go to previous message
Walter Mising name is currently offline Walter Mising nameFriend
Messages: 126
Registered: July 2009
Senior Member
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 + Retrieve Table Data
Next Topic:XWT + TableViewer + Handler + open vs load Behaviour
Goto Forum:
  


Current Time: Mon Nov 24 20:27:53 GMT 2014

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

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