Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [dali-dev] EMF binding/selection committed

Karen Moore wrote:
> Markus,
> How should selection be working at this point?  Does selection in the
> java editor cause both the persistence properties and the persitsence
> outline view to update or is the persistence properties view still
> dependent on the outline view?  In BasicMappingCompositeTest.setup() it
> tries to set the selection in the persistence outline to be a particular
> persistentAttribute.  If you put a delay(5000) in after that call,
> you'll see in the UI that the outline view looks like it is selected,
> but not in focus.  This is not updating the persistence properties hence
> the ClassCastException later when you try to get the MappingComposite,
> but the PersistentTypeComposite is still selected in the properties
> view.  I guess I am not sure how this is supposed to be working at this
> point, but maybe this will help you to fix the problem.  Let me know if
> I can help more with it.
> 
> Karen

Great, your hints put me on the right track. In the end it was a simple
oneliner. :)
The new ViewerSelectionTracker only fires an ISelectionNotification if
the Viewer is on focus. Normally its on focus if you click with the
mouse into it, but in  the test case it wasn't.
So it was really only setting the setFocus() before setting the selection.

-- 
Regards,
Markus Kuppe

Versant GmbH, European Headquarters
Wiesenkamp 22b, 22359 Hamburg, Germany
+49(40)60990-215, http://www.versant.com


Back to the top