XWT loaded event lookup problem [message #843853] |
Fri, 13 April 2012 08:36  |
Eclipse User |
|
|
|
I tried to setup a loaded event handler on a CLR class for a Shell widget as follows:
<Shell xmlns="www.eclipse.org/xwt/presentation" xmlns:x="www.eclipse.org/xwt"
x:Class="br.rar.dups.Application" text="XWT Application" xmlns:p1="clr-namespace:br.rar.dups"
loaded="onLoad">
If I specify the onLoad method as follows:
public void onLoad(Application clr, Event event) {
StackLayout layout =(StackLayout) XWT.findElementByName(clr, "stack");
}
ResourceLoader updateEvent complains about not finding onLoad method...
in turn if I specify it as follows:
public void onLoad(Shell widget, Event event) {
StackLayout layout =(StackLayout) XWT.findElementByName(widget, "stack");
}
updateEvent method finds the onLoad method but LoadingData inner class fails to execute the method on its end method since it tries to invoke the found method with the Application CLR class as parameter... resulting in an IllegalArgumentException with an almost blank catching code.
|
|
|
|
|
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.04825 seconds