use of org.eclipse.e4.core.services.contributions.IContributionFactory in project eclipse.platform.ui by eclipse-platform.
the class UITest method getEngine.
protected IPresentationEngine getEngine() {
if (engine == null) {
IContributionFactory contributionFactory = applicationContext.get(IContributionFactory.class);
Object newEngine = contributionFactory.create(engineURI, applicationContext);
assertTrue(newEngine instanceof IPresentationEngine);
applicationContext.set(IPresentationEngine.class.getName(), newEngine);
engine = (IPresentationEngine) newEngine;
}
return engine;
}
Aggregations