Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse 4 » MApplication.find does not find MenuContributions
MApplication.find does not find MenuContributions [message #1216193] Thu, 28 November 2013 06:06 Go to next message
Alex Kipling is currently offline Alex Kipling
Messages: 246
Registered: July 2012
Senior Member
I created a MenuContribution in my Application.e4xmi.
Then I tried to start a search for the MenuContribution, which is a new ModelElement.
The simple getter works.
        // does not work
        mApplication = eclipseContext.get(MApplication.class);
        modelService.findElements(mApplication, idContribution, null, null);
        modelService.findElements(mApplication, idCore, null, null);
        modelService.findElements(mApplication, idContribution);
        // works
        mApplication.getMenuContributions()


Is it a bug or is it intended behaviour?
Unfortunately I can not login to bugzilla to commit it as a bug.
Re: MApplication.find does not find MenuContributions [message #1216245 is a reply to message #1216193] Thu, 28 November 2013 06:39 Go to previous message
Sopot Cela is currently offline Sopot Cela
Messages: 589
Registered: December 2010
Senior Member

It's something in between a bug and a feature. https://bugs.eclipse.org/bugs/show_bug.cgi?id=383403
Previous Topic:replacing WorkbenchLogger
Next Topic:JavaScript Explorer not showing project until refresh in eclipse 4 RCP application
Goto Forum:
  


Current Time: Thu Apr 17 20:47:39 EDT 2014

Powered by FUDForum. Page generated in 0.01987 seconds