Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse 4 » XWT + TableViewer + Selection Change
XWT + TableViewer + Selection Change [message #501693] Thu, 03 December 2009 14:10 Go to next message
Walter Mising name is currently offline Walter Mising nameFriend
Messages: 128
Registered: July 2009
Senior Member
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 16:27 Go to previous message
Yves YANG is currently offline Yves YANGFriend
Messages: 688
Registered: July 2009
Senior Member
"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 16:27 Go to previous message
Yves YANG is currently offline Yves YANGFriend
Messages: 688
Registered: July 2009
Senior Member
"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="
Previous Topic:Modeled workbench changes
Next Topic:XWT + CDO + Refresh
Goto Forum:
  


Current Time: Fri Mar 29 15:14:33 GMT 2024

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

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

Back to the top