Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Rich Client Platform (RCP) » How to deal with command framework and MasterDetailsBlock
How to deal with command framework and MasterDetailsBlock [message #1067728] Wed, 10 July 2013 10:19
Jan Krakora is currently offline Jan KrakoraFriend
Messages: 477
Registered: December 2009
Location: Prague
Senior Member
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?

EDIT:
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

Previous Topic:Jetty Disables OSGi Services
Next Topic:BindingContext and keybindings
Goto Forum:
  


Current Time: Tue Mar 19 03:31:53 GMT 2024

Powered by FUDForum. Page generated in 0.01671 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top