Using SelectionService to update several views [message #250192] |
Tue, 26 February 2008 03:41 |
Eclipse User |
|
|
|
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.
|
|
|
Powered by
FUDForum. Page generated in 0.37773 seconds