Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF » removing dyn. contributed items from a menu.
removing dyn. contributed items from a menu. [message #1037329] Tue, 09 April 2013 08:29 Go to next message
Christophe Bouhier is currently offline Christophe Bouhier
Messages: 897
Registered: July 2009
Senior Member
Hello,

I am using a DynamicMenuContribution to populate a menu.
The menu is filled nicely, it is however re-populated whenever selected
the next time.

Removing the items doesn't seem to have any effect?

protected MMenu createChildMenuManager;
protected MMenu createSiblingMenuManager;

@AboutToHide
public void aboutToHide(List<MMenuElement> items) {

// CB TODO, Doesn't clean.
items.remove(createChildMenuManager);
items.remove(createSiblingMenuManager);
}


Am I missing something here? Is this a bug?
thanks Christophe
Re: removing dyn. contributed items from a menu. [message #1037346 is a reply to message #1037329] Tue, 09 April 2013 08:46 Go to previous message
Christophe Bouhier is currently offline Christophe Bouhier
Messages: 897
Registered: July 2009
Senior Member
hehe :-) Wrong list. sorry.


On 09-04-13 14:29, Christophe Bouhier wrote:
> Hello,
>
> I am using a DynamicMenuContribution to populate a menu.
> The menu is filled nicely, it is however re-populated whenever selected
> the next time.
>
> Removing the items doesn't seem to have any effect?
>
> protected MMenu createChildMenuManager;
> protected MMenu createSiblingMenuManager;
>
> @AboutToHide
> public void aboutToHide(List<MMenuElement> items) {
>
> // CB TODO, Doesn't clean.
> items.remove(createChildMenuManager);
> items.remove(createSiblingMenuManager);
> }
>
>
> Am I missing something here? Is this a bug?
> thanks Christophe
Previous Topic:[CDO] CDORevisionData.NIL in revision deltas - not supported?
Next Topic:[TENEO] Support for Dynamic-Update Attribute
Goto Forum:
  


Current Time: Wed Jul 30 23:20:56 EDT 2014

Powered by FUDForum. Page generated in 0.01968 seconds