Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [e4-dev] Gettng the model service

Nice! Thanks. I was looking through the OSGi registry hoping to find something useful but I didn't. In the IDE I found the IWorkbench service but that is not available in a small RCP app. I didn't think of looking thru the platform services. 

Thanks again.

Cheers,

Wim



On Wed, Jan 22, 2014 at 5:27 PM, Lars Vogel <lars.vogel@xxxxxxxxx> wrote:
FYI site refers to getViewSite() in a ViewPart. 


2014/1/22 Lars Vogel <lars.vogel@xxxxxxxxx>
Just get the local context via:

IEclipseContext parentContext = (IEclipseContext) site.getService(IEclipseContext.class);

afterwards you can retrieve every element from this context via its key, i.g. EModelService


2014/1/22 Wim Jongman <wim.jongman@xxxxxxxxx>
Guys, if I am in a small RCP 3x application like the 3x mail example. How do I get hold of the model service programmatically? 

TIA

_______________________________________________
e4-dev mailing list
e4-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/e4-dev




_______________________________________________
e4-dev mailing list
e4-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/e4-dev



Back to the top