|How to deal with command framework and MasterDetailsBlock [message #1067728]
||Wed, 10 July 2013 10:19
| Jan Krakora
Registered: December 2009
I'm wondering how to work with commands/handlers and MasterDetailsBlock. |
Let's say the plugin's extensions editor.
You can select an extension (e.g. a view in org.eclipse.ui.views extension point) and then you can use Edit->Copy or Edit->Delete menu to copy/delete that extension.
On the right side you have details about that extension (id, name, class, ...).
When you select a text in a Text widget (e.g. from class) you can use Edit->Copy or Edit->Delete menu again.
How is that implemented???
I can understand the tree with extensions. One can register it to the partSite as a selectionProvider and then create handlers for the selection.
But how are implemented handlers for the details part?
I can see now that the WidgetMethodHandler (the default handler for cut, copy and paste commands) is active when
the focused control has appropriate methods. So my question has to be modified. How would it be implemented, when
the detail part contains another viewer, let's say a TableViewer. And I would like to have copy/paste/delete commands active for that table?
[Updated on: Wed, 10 July 2013 13:33]
Report message to a moderator
Powered by FUDForum
. Page generated in 0.02291 seconds