Examples of ReflectionContributionFactory


Examples of org.eclipse.e4.ui.internal.workbench.ReflectionContributionFactory

  public static IEclipseContext createDefaultHeadlessContext() {
      IEclipseContext serviceContext = E4Workbench.getServiceContext();

      IExtensionRegistry registry = RegistryFactory.getRegistry();
      ExceptionHandler exceptionHandler = new ExceptionHandler();
      ReflectionContributionFactory contributionFactory = new ReflectionContributionFactory(
          registry);
      serviceContext.set(IContributionFactory.class, contributionFactory);
      serviceContext.set(IExceptionHandler.class, exceptionHandler);
      serviceContext.set(IExtensionRegistry.class, registry);
View Full Code Here

Examples of org.eclipse.e4.ui.internal.workbench.ReflectionContributionFactory

  public static IEclipseContext createDefaultContext() {
    IEclipseContext serviceContext = E4Workbench.getServiceContext();
    final IEclipseContext appContext = serviceContext.createChild("WorkbenchContext");
    IExtensionRegistry registry = RegistryFactory.getRegistry();
    ExceptionHandler exceptionHandler = new ExceptionHandler();
    ReflectionContributionFactory contributionFactory = new ReflectionContributionFactory(registry);
    appContext.set(IContributionFactory.class.getName(), contributionFactory);

    // No default log provider available
    if (appContext.get(ILoggerProvider.class) == null) {
      serviceContext.set(ILoggerProvider.class, ContextInjectionFactory.make(LoggerProviderImpl.class, serviceContext));
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.