Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Rich Client Platform (RCP) » I think *IMenuService* has a bug in 3.6(Multiple contribution managers for one site works not correctly.)
I think *IMenuService* has a bug in 3.6 [message #638663] Thu, 11 November 2010 22:23 Go to next message
Jeeeyul Lee is currently offline Jeeeyul Lee
Messages: 108
Registered: July 2009
Location: Seoul
Senior Member

Hello,

I used 2 Coolbar managers in an EditorPart, and I'v let MenuService contribute through Menu Extensions.
like this:

this.tagToolbarManager = new CCoolBarManager(SWT.FLAT);
getMenuService().populateContributionManager(this.tagToolbar Manager, TOOLBAR_URI_TAG_EDIOR);

this.termsToolbarManager = new CCoolBarManager(SWT.FLAT);
getMenuService().populateContributionManager(this.termsToolb arManager, TOOLBAR_URI_TERMS_EDITOR);

but menu service contributed same toolbar contents for 2 toolbar even each has different Menu URI.
Contents seems to merged from contents of two Menu URIs.

It works like URIs are same.
URIs are "toolbar:termsEditor" and "toolbar:tagsEditor";

I found this on eclipse 3.6, and This problem was not exist on Eclipse 3.4.

ps. CCoolBarManager is customized CoolBarManager,
because, original CoolBarManager on eclipse 3.4 have some errors when Menu Service release it.


is this a bug? or new restriction for site.
Re: I think *IMenuService* has a bug in 3.6 [message #638669 is a reply to message #638663] Thu, 11 November 2010 23:20 Go to previous messageGo to next message
Prakash G.R. is currently offline Prakash G.R.
Messages: 621
Registered: July 2009
Senior Member
On 12/11/10 8:53 AM, Jiyul wrote:
> I used 2 Coolbar managers in an EditorPart, and I'v let MenuService
> contribute through Menu Extensions.
> like this:
>
> this.tagToolbarManager = new CCoolBarManager(SWT.FLAT);
> getMenuService().populateContributionManager(this.tagToolbar Manager,
> TOOLBAR_URI_TAG_EDIOR);
>
> this.termsToolbarManager = new CCoolBarManager(SWT.FLAT);
> getMenuService().populateContributionManager(this.termsToolb arManager,
> TOOLBAR_URI_TERMS_EDITOR);
>
> but menu service contributed same toolbar contents for 2 toolbar even
> each has different Menu URI.
> Contents seems to merged from contents of two Menu URIs.
>
> It works like URIs are same.
> URIs are "toolbar:termsEditor" and "toolbar:tagsEditor";
>
> I found this on eclipse 3.6, and This problem was not exist on Eclipse 3.4.
>
> ps. CCoolBarManager is customized CoolBarManager, because, original
> CoolBarManager on eclipse 3.4 have some errors when Menu Service release
> it.
>
>
> is this a bug? or new restriction for site.


Sounds like a bug. Can you raise a bug with sample code to reproduce?
http://bit.ly/NewBugInPlatformUI

--
- Prakash
Platform UI Team, IBM

www.eclipse-tips.com
Re: It wasn't bug. [message #638902 is a reply to message #638669] Fri, 12 November 2010 21:27 Go to previous message
Jeeeyul Lee is currently offline Jeeeyul Lee
Messages: 108
Registered: July 2009
Location: Seoul
Senior Member

It wasn't bug.
https://bugs.eclipse.org/bugs/show_bug.cgi?id=330055
Previous Topic:How can I show all of String in Console View
Next Topic:Dynamically displaying controls depending on selection from combo box / Master Details model
Goto Forum:
  


Current Time: Fri Aug 22 21:51:26 EDT 2014

Powered by FUDForum. Page generated in 0.05814 seconds