Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse 4 » Using EMenuService between Kepler and Luna
Using EMenuService between Kepler and Luna [message #1386271] Mon, 16 June 2014 09:46 Go to next message
Beun Goud is currently offline Beun GoudFriend
Messages: 3
Registered: December 2013
Junior Member
Hi,

In the development of a small framework, I need to use the Eclipse EMenuService to declare context menu on the model.
My application is intended to run on both 4.3 and 4.4 Eclipses versions. My problem is that this class changed its package between Kepler and Luna.
in version 4.3, EMenuService is in org.eclipse.e4.ui.workbench.swt.modeling (from org.eclipse.e4.ui.workbench.swt plugin)
in version 4.4, EMenuService is in org.eclipse.e4.ui.services (from org.eclipse.e4.ui.services plugin)

Is there any way to deal with this problem efficiently?

Thank you
Re: Using EMenuService between Kepler and Luna [message #1386273 is a reply to message #1386271] Mon, 16 June 2014 10:00 Go to previous messageGo to next message
Thomas Schindl is currently offline Thomas SchindlFriend
Messages: 6651
Registered: July 2009
Senior Member
No - the only solution I see is that you ship your own wrapper service
which dispatches to the correct Kepler / Luna one.

EMenuService was not marked API in Kepler so we changed it in Luna, with
Luna it is API and won't be changed anymore!

To

On 16.06.14 11:46, Beun Goud wrote:
> Hi,
>
> In the development of a small framework, I need to use the Eclipse
> EMenuService to declare context menu on the model.
> My application is intended to run on both 4.3 and 4.4 Eclipses versions.
> My problem is that this class changed its package between Kepler and
> Luna. in version 4.3, EMenuService is in
> org.eclipse.e4.ui.workbench.swt.modeling (from
> org.eclipse.e4.ui.workbench.swt plugin)
> in version 4.4, EMenuService is in org.eclipse.e4.ui.services (from
> org.eclipse.e4.ui.services plugin)
>
> Is there any way to deal with this problem efficiently?
>
> Thank you
Re: Using EMenuService between Kepler and Luna [message #1386289 is a reply to message #1386273] Mon, 16 June 2014 11:54 Go to previous message
Beun Goud is currently offline Beun GoudFriend
Messages: 3
Registered: December 2013
Junior Member
Thanks for your quick answer.

Yes, I know, it was not marked as API ;-/ , but I don't think there are other ways to register context menu to the model.

Do you have any advice on how to create such a wrapper service? I don't really understand how to create a service that will compile with both 4.3 and 4.4?

Thanks,
Previous Topic:@Inject calls context function but ContextInjectionFactory.make does not. Why?
Next Topic:LifeCycle and EPartService Injection Problem
Goto Forum:
  


Current Time: Fri Apr 26 01:05:42 GMT 2024

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

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

Back to the top