|Can't get visible-when to work [message #836467]
||Wed, 04 April 2012 14:12
| Phill Perryman
Registered: July 2009
I have an edit menu with a single handledMenuItem (Invoice Address). Run the app and it appears. I have then added a visible when core expression and set it to the definition id of the core expression from the extension point.|
In the tree on the part I have a selection listener which does a setSelection using the injected ESelectionService. I can debug this and see it make the call.
I have tried setting the selection to to the IStructuredSelection and to its first element (an InvoiceAddress) and I have tried setting the core expression to both an instanceof(InvoiceAddress) and an iterate/instanceof(InvoiceAddress).
None of these cause the menu item to appear. Also if I then set the visible when back to None the menu still does not appear. If I delete and re-add without setting the visible when it comes back again.
I am obviously missing something here.
Powered by FUDForum
. Page generated in 0.04211 seconds