use of org.eclipse.ui.internal.activities.ws.WorkbenchActivitySupport in project eclipse.platform.ui by eclipse-platform.
the class Workbench method initializeLazyServices.
private void initializeLazyServices() {
e4Context.set(IExtensionTracker.class.getName(), new ContextFunction() {
@Override
public Object compute(IEclipseContext context, String contextKey) {
if (tracker == null) {
tracker = new UIExtensionTracker(getDisplay());
}
return tracker;
}
});
e4Context.set(IWorkbenchActivitySupport.class.getName(), new ContextFunction() {
@Override
public Object compute(IEclipseContext context, String contextKey) {
if (workbenchActivitySupport == null) {
workbenchActivitySupport = new WorkbenchActivitySupport();
}
return workbenchActivitySupport;
}
});
e4Context.set(IProgressService.class.getName(), new ContextFunction() {
@Override
public Object compute(IEclipseContext context, String contextKey) {
return ProgressManager.getInstance();
}
});
WorkbenchPlugin.getDefault().initializeContext(e4Context);
}
Aggregations