Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse 4 » XWT + TableViewer + Handler + open vs load Behaviour
XWT + TableViewer + Handler + open vs load Behaviour [message #565624] Wed, 09 December 2009 02:26 Go to next message
Walter Mising name is currently offline Walter Mising nameFriend
Messages: 128
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 #565713 is a reply to message #565624] Thu, 10 December 2009 13:02 Go to previous messageGo to next message
Yves YANG is currently offline Yves YANGFriend
Messages: 688
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 #565735 is a reply to message #565713] Thu, 10 December 2009 14:47 Go to previous message
Walter Mising name is currently offline Walter Mising nameFriend
Messages: 128
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 + Handler + open vs load Behaviour
Next Topic:Somthing is missing in the "New and Noteworthy".
Goto Forum:
  


Current Time: Thu Mar 28 20:29:17 GMT 2024

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

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

Back to the top