Skip to main content



      Home
Home » Newcomers » Newcomers » Using SelectionService to update several views
Using SelectionService to update several views [message #250192] Tue, 26 February 2008 03:41
Eclipse UserFriend
Originally posted by: ungue79.yahoo.es

Hello everybody.

I'm developing an application by using RCP.

I've got 3 views called CardView, BlockView and StructView.
StructView reads a xml file and fill a tree, CardView reads a file and
fills a table, and finally, BlockView receives a block selected from
CardView and fills some controls.
When users select data from CardView, the selection service sends an event
which is listened by BlockView an it shows the data.
When users select data from StructView, the selection service sends an
event which is listened by CardView an it selects some data in the table.

I need when StructView selects one data CardView listen and fires an event
to BlockView by using the selection service.

I'm trying doing it so:

public void selectionChanged(IWorkbenchPart part, ISelection selection) {
...
StructuredSelection sel = new StructuredSelection(block);
viewer.setSelection(sel);
...
}

but it doesn't fires an selectionchenged event to be listened by BlockView

Can anyone help me, please?

Thanks in advance.
Previous Topic:GUI using SWT in Eclipse
Next Topic:Problem Writing Resource
Goto Forum:
  


Current Time: Tue Jul 22 14:32:12 EDT 2025

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

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

Back to the top