Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[pde-dev] Re: ContextMenu actions not initialized

Hi,

I just found the answer. You can provide an extension
org.eclipse.ui.startup with classes that need to be started on
startup. So the menu action is added in the extension and needs to
implement IStartup.

Regards,
Leen Toelen

On 2/22/06, Leen Toelen <toelen@xxxxxxxxx> wrote:
> Hi,
>
> I am trying to create a dynamic menu in eclipse in a custom view. I
> used this example code:
>
> https://bugs.eclipse.org/bugs/attachment.cgi?id=8223
>
> This works fine for all objectcontribution actions that are defined in
> the same plugin as the view. Then the action objects are constructed
> when the menu is shown, and I can do setMenuCreator(this). But if I
> define a dynamic objectContribution in another plugin, the are shown
> in the menu, but the objects are only initialized just before being
> run. Anyone knows how to change this.
>
> Regards,
> Leen Toelen
>


Back to the top