Package org.jboss.forge.ui.test.impl

Examples of org.jboss.forge.ui.test.impl.UIProviderImpl


   public static WizardTesterImpl<?> create(Class<?> wizardClass, AddonRegistry addonRegistry,
            Resource<?>... initialSelection) throws Exception
   {
      Imported<UIContextListener> listeners = addonRegistry.getServices(UIContextListener.class);
      UISelection<Resource<?>> selection = Selections.from(initialSelection);
      UIContextImpl context = new UIContextImpl(new UIProviderImpl(true), listeners, selection);
      return new WizardTesterImpl(wizardClass, addonRegistry, context);
   }
View Full Code Here


   public static CommandTesterImpl<?> create(Class<?> commandClass, AddonRegistry addonRegistry,
            Resource<?>... initialSelection) throws Exception
   {
      Imported<UIContextListener> listeners = addonRegistry.getServices(UIContextListener.class);
      UISelection<Resource<?>> selection = Selections.from(initialSelection);
      UIContextImpl context = new UIContextImpl(new UIProviderImpl(true), listeners, selection);
      return new CommandTesterImpl(commandClass, addonRegistry, context);
   }
View Full Code Here

   public UIProviderImpl getProvider()
   {
      if (providerImpl == null)
      {
         providerImpl = new UIProviderImpl(true);
      }
      return providerImpl;
   }
View Full Code Here

   public CommandController createCommandController(Class<? extends UICommand> commandClass,
            Resource<?>... initialSelection) throws Exception
   {
      Imported<UIContextListener> listeners = addonRegistry.getServices(UIContextListener.class);
      UISelection<Resource<?>> selection = Selections.from(initialSelection);
      UIContextImpl context = new UIContextImpl(new UIProviderImpl(true), listeners, selection);
      return factory
               .createSingleController(context, addonRegistry.getServices(commandClass).get(), new UIRuntimeImpl());
   }
View Full Code Here

   public WizardCommandController createWizardController(Class<? extends UIWizard> wizardClass,
            Resource<?>... initialSelection) throws Exception
   {
      Imported<UIContextListener> listeners = addonRegistry.getServices(UIContextListener.class);
      UISelection<Resource<?>> selection = Selections.from(initialSelection);
      UIContextImpl context = new UIContextImpl(new UIProviderImpl(true), listeners, selection);
      return factory.createWizardController(context, addonRegistry.getServices(wizardClass).get(),
               new UIRuntimeImpl());
   }
View Full Code Here

   public UIProviderImpl getProvider()
   {
      if (providerImpl == null)
      {
         providerImpl = new UIProviderImpl(true);
      }
      return providerImpl;
   }
View Full Code Here

TOP

Related Classes of org.jboss.forge.ui.test.impl.UIProviderImpl

Copyright © 2018 www.massapicom. 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.