ObjectActionDelegate or Command ??? [message #332516] |
Fri, 24 October 2008 14:53  |
Eclipse User |
|
|
|
Hi all. hope someone can tell me what is the right approach to solve my
problem .
I have got two different view:
- ID: Com.test.view.v1
- ID: Com.test.view.v2
Each view display, one in a TreeViewer and one in a TableViewer information
using the same object MyObject. From both views I can act on the selected
items with common operation like lock / unlock /delete
Now, what is the best approach for creating this action? (eclipse 3.3)
- Define (ie) LockAction implements IObjectActionDelegate
or
- Define a command?
If I'm using a command, I need to use the ui.menu extension point and use
TWO menucontribution with the schema popup (one for each view)
- is there a way to define menucontribution locationuri:
popup:com.test.view.* (I cannot use the popup.any because I have got other
view in the plugin)
- or enable the command only if the selection contains specific object
(myobject)
Thanks
Kar
|
|
|
|
Powered by
FUDForum. Page generated in 0.03878 seconds