Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Remote Application Platform (RAP) » [Wizard]: TableViewer selectionProvider inside a Wizard
[Wizard]: TableViewer selectionProvider inside a Wizard [message #656375] Fri, 25 February 2011 11:15 Go to next message
Gabriele  is currently offline Gabriele Friend
Messages: 19
Registered: November 2010
Junior Member
Hi guys,
I have A JFace Wizard which has a page with a tableViewer.

I need to select elements from the table so I have to make the selection available in the table.
If I was in a ViewPart, I would do:

getSite().setSelectionProvider(viewer);


I saw that in the Wizard I can't access to a WorkbenchPart to call the setSelectionProvide method.
I can't use the getSelection from the SWT table gotten from the viewer, but I need the object of my model (i.e. the IStructuredSelection from the viewer). The TableItem selected from the SWT Table is insufficiet.

Thank you in advance for any help

Gabriele
Re: [Wizard]: TableViewer selectionProvider inside a Wizard [message #656381 is a reply to message #656375] Fri, 25 February 2011 11:20 Go to previous messageGo to next message
Ivan Furnadjiev is currently offline Ivan FurnadjievFriend
Messages: 2359
Registered: July 2009
Location: Sofia, Bulgaria
Senior Member
Hi Gabriele,
this is a newsgroup for RAP related questions. Maybe, you will get a
proper answer in the jface/workbench newsgroup.
Best,
Ivan

On 2/25/2011 1:15 PM, Gabriele wrote:
> Hi guys,
> I have A JFace Wizard which has a page with a tableViewer.
>
> I need to select elements from the table so I have to make the
> selection available in the table.
> If I was in a ViewPart, I would do:
>
>
> getSite().setSelectionProvider(viewer);
>
>
> I saw that in the Wizard I can't access to a WorkbenchPart to call the
> setSelectionProvide method.
> I can't use the getSelection from the SWT table gotten from the
> viewer, but I need the object of my model (i.e. the
> IStructuredSelection from the viewer). The TableItem selected from the
> SWT Table is insufficiet.
>
> Thank you in advance for any help
>
> Gabriele
Re: [Wizard]: TableViewer selectionProvider inside a Wizard [message #656384 is a reply to message #656381] Fri, 25 February 2011 11:43 Go to previous message
Gabriele  is currently offline Gabriele Friend
Messages: 19
Registered: November 2010
Junior Member
Hi Ivan,
I had post here, because I'm developing a RAP application.
Sorry
I have created a new post in JFace forum.

Best regards
Gabriele
Previous Topic:E-Mail link
Next Topic:Upload Widget
Goto Forum:
  


Current Time: Thu Oct 28 03:06:14 GMT 2021

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

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

Back to the top