XWT + TableViewer + Selection Change [message #501693] |
Thu, 03 December 2009 09:10  |
Eclipse User |
|
|
|
E4 XWT needs more documentation as it is not quite easy to debug for a
beginner.
Anyways, how can I catch the selection changed events of a TableViewer ( I
am using pure XWT ) ?
<TableViewer x:style="BORDER|SINGLE|FULL_SELECTION" input="{Binding}"
selection="rowSelected" >
In the handler I have declared
protected void rowSelected ( org.eclipse.jface.viewers.ISelection e )
{
System.out.println ( e ) ;
}
I am getting this exception
org.eclipse.e4.xwt.XWTException: Converter is missing of type:
org.eclipse.jface.viewers.ISelection from String
Any pointers / document site where I can get more info ?
Thanks,
- Walter.
|
|
|
Re: XWT + TableViewer + Selection Change [message #501990 is a reply to message #501693] |
Fri, 04 December 2009 11:27  |
Eclipse User |
|
|
|
"Walter Prabhakar" <kwchess@gmail.com> wrote in message
news:hf8gso$n4$1@build.eclipse.org...
> E4 XWT needs more documentation as it is not quite easy to debug for a
> beginner.
I agree with you. I try to some from time to time, but it is not enough. We
appreciate if someone can contribute it.
By now, I suggest you to look at our example in the project
/cvsroot/eclipse/e4/org.eclipse.e4.xwt/tests/org.eclipse.e4. xwt.tests. There
is a package that contains all test cases of JFace
>
> Anyways, how can I catch the selection changed events of a TableViewer ( I
> am using pure XWT ) ?
You need to eclare a Java class as event handler in the parent node:
x:Class="
|
|
|
Re: XWT + TableViewer + Selection Change [message #565448 is a reply to message #501693] |
Fri, 04 December 2009 11:27  |
Eclipse User |
|
|
|
"Walter Prabhakar" <kwchess@gmail.com> wrote in message
news:hf8gso$n4$1@build.eclipse.org...
> E4 XWT needs more documentation as it is not quite easy to debug for a
> beginner.
I agree with you. I try to some from time to time, but it is not enough. We
appreciate if someone can contribute it.
By now, I suggest you to look at our example in the project
/cvsroot/eclipse/e4/org.eclipse.e4.xwt/tests/org.eclipse.e4. xwt.tests. There
is a package that contains all test cases of JFace
>
> Anyways, how can I catch the selection changed events of a TableViewer ( I
> am using pure XWT ) ?
You need to eclare a Java class as event handler in the parent node:
x:Class="
|
|
|
Powered by
FUDForum. Page generated in 0.29957 seconds