[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Newsgroup Home]
[news.eclipse.technology.emft] Re: properties view tab refresh

John,

The reason why your workaround does not work is probably that you 
programmatically select the exact same element that already _is_ selected. 
This will not fire a selection event and thus will not update the properties 
view.

I think I ran into the same problem a long time ago and filed this bug 
https://bugs.eclipse.org/bugs/show_bug.cgi?id=202199 . This hasn't been 
fixed, and I actually also have no working workaround :-(

Regards,
 Achim

John  wrote:

> Hi, Have discovered from other discussion on this forum that the
> Properties view tab list is only refreshed when an element is selected!!!!
> 
> So as a workaround for this, I listen for the event that I am interested
> in and then try to force a selection using :
> 
> List elements =
> 
UMLModeler.getUMLUIHelper().getSelectedElements("org.eclipse.ui.navigator.ProjectExplorer");
> if(!elements.isEmpty()){
>   List selection = new ArrayList();
>   selection.add(elements.get(0));
> 
UMLModeler.getUMLUIHelper().setSelectedElements("org.eclipse.ui.navigator.ProjectExplorer",
> selection);
> 
> However this still does not trigger a refresh of the Properties view tab
> list.
> Any help would be gratefully received.