Examples of UIContextImpl


Examples of com.eclipsesource.tabris.internal.ui.UIContextImpl

  protected void createTabrisUI( Shell shell ) {
    RemoteUI remoteUI = new RemoteUI( shell );
    shell.setLayout( new ZIndexStackLayout() );
    UIImpl ui = new UIImpl();
    Controller controller = new Controller( shell, remoteUI, ui.getDescriptorHolder() );
    UIContextImpl context = new UIContextImpl( shell.getDisplay(), controller, ui );
    remoteUI.setContext( context );
    remoteUI.setController( controller );
    configuration.configure( ui, context );
    context.markInitialized();
    controller.createGlobalActions( context );
    controller.createRootPages( context );
  }
View Full Code Here

Examples of org.jboss.forge.addon.ui.test.impl.UIContextImpl

   }

   @Test
   public void testNoExceptionsOnEnabledCommandNames()
   {
      UIContext context = new UIContextImpl(true, Selections.emptySelection());
      Set<String> enabledCommandNames = commandFactory.getEnabledCommandNames(context);
      Assert.assertEquals(5, enabledCommandNames.size());
   }
View Full Code Here

Examples of org.jboss.forge.addon.ui.test.impl.UIContextImpl

   }

   @Test
   public void testNoExceptionsOnCommandsNames()
   {
      UIContext context = new UIContextImpl(true, Selections.emptySelection());
      Set<String> commandNames = commandFactory.getCommandNames(context);
      Assert.assertEquals(5, commandNames.size());

   }
View Full Code Here

Examples of org.jboss.forge.addon.ui.test.impl.UIContextImpl

   public CommandController createCommandController(String name, Resource<?>... initialSelection) throws Exception
   {
      CommandController result = null;
      Iterable<UICommand> commands = commandFactory.getCommands();
      UIContextImpl context = getUIContextInstance(initialSelection);
      for (UICommand command : commands)
      {
         UICommandMetadata metadata = command.getMetadata(context);
         if (name.equals(metadata.getName()))
         {
View Full Code Here

Examples of org.jboss.forge.addon.ui.test.impl.UIContextImpl

   public WizardCommandController createWizardController(String name, Resource<?>... initialSelection) throws Exception
   {
      WizardCommandController result = null;
      Iterable<UICommand> commands = commandFactory.getCommands();
      UIContextImpl context = getUIContextInstance(initialSelection);
      for (UICommand command : commands)
      {
         if (command instanceof UIWizard)
         {
            UICommandMetadata metadata = command.getMetadata(context);
View Full Code Here

Examples of org.jboss.forge.addon.ui.test.impl.UIContextImpl

   private UIContextImpl getUIContextInstance(Resource<?>... initialSelection)
   {
      Imported<UIContextListener> listeners = addonRegistry.getServices(UIContextListener.class);
      UISelection<Resource<?>> selection = Selections.from(initialSelection);
      UIContextImpl context = new UIContextImpl(getProvider(), listeners, selection);
      return context;
   }
View Full Code Here

Examples of org.jboss.forge.addon.ui.test.impl.UIContextImpl

   public CommandController createCommandController(String name, Resource<?>... initialSelection) throws Exception
   {
      CommandController result = null;
      Iterable<UICommand> commands = commandFactory.getCommands();
      UIContextImpl context = getUIContextInstance(initialSelection);
      for (UICommand command : commands)
      {
         UICommandMetadata metadata = command.getMetadata(context);
         if (name.equals(metadata.getName()))
         {
View Full Code Here

Examples of org.jboss.forge.addon.ui.test.impl.UIContextImpl

   private UIContextImpl getUIContextInstance(Resource<?>... initialSelection)
   {
      Imported<UIContextListener> listeners = addonRegistry.getServices(UIContextListener.class);
      UISelection<Resource<?>> selection = Selections.from(initialSelection);
      UIContextImpl context = new UIContextImpl(getProvider(), listeners, selection);
      return context;
   }
View Full Code Here

Examples of org.jboss.forge.addon.ui.test.impl.UIContextImpl

   public CommandController createCommandController(String name, Resource<?>... initialSelection) throws Exception
   {
      CommandController result = null;
      Iterable<UICommand> commands = commandFactory.getCommands();
      UIContextImpl context = getUIContextInstance(initialSelection);
      for (UICommand command : commands)
      {
         UICommandMetadata metadata = command.getMetadata(context);
         if (name.equals(metadata.getName()))
         {
View Full Code Here

Examples of org.jboss.forge.addon.ui.test.impl.UIContextImpl

   private UIContextImpl getUIContextInstance(Resource<?>... initialSelection)
   {
      Imported<UIContextListener> listeners = addonRegistry.getServices(UIContextListener.class);
      UISelection<Resource<?>> selection = Selections.from(initialSelection);
      UIContextImpl context = new UIContextImpl(getProvider(), listeners, selection);
      return context;
   }
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.