Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[pde-dev] Dynamic ObjectContribution

Hi,

I would like to make a dynamic objectcontribution menu in a view that
knows nothing about my plugin. When right-clicking an object, one gets
a menu. One of these (my objectContribution) should become a
dynamically filled menu.

Right now I solve this be adding three objectcontributions to the
object I want. One menu, a groupmarker in this menu, and an action
with mymenuid/mymarkerid as menupath. This action  implements
IMenuCreator and dynamically fills itself on menuShown(). This works,
but is quite a hassle.

Is there a way to make a menu dynamically filling itself when shown?

Regards,
Leen Toelen


Back to the top