Skip to main content


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 12:29 Go to next message
Christophe Bouhier is currently offline Christophe BouhierFriend
Messages: 937
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 12:46 Go to previous message
Christophe Bouhier is currently offline Christophe BouhierFriend
Messages: 937
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: Thu Apr 25 11:30:17 GMT 2024

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

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

Back to the top