java - How to provide dependency injections in Eclipse RCP 3.x? -


everyone!

i'm trying deal eclipse rcp 3.x application. i've read lot of articles dependency injection in rcp e4 applications. can use di in rcp 3.x apps?

i found perfect link di in e4. idea how use in rcp 3.x app?

first of all, i'm interested in own objects injection (btw, how add own object application context?).

best regards

in 3.x code can ieclipsecontext necessary use contextinjectionfactory using

ieclipsecontext workbenchcontext = platformui.getworkbench().getservice(ieclipsecontext.class); 

to workbench context.

in view or editor can current part context using:

ieclipsecontext partcontext = getsite().getservice(ieclipsecontext.class); 

Comments

Popular posts from this blog

Command prompt result in label. Python 2.7 -

javascript - How do I use URL parameters to change link href on page? -

amazon web services - AWS Route53 Trying To Get Site To Resolve To www -