Examples of SWTBotShell


Examples of net.sf.swtbot.widgets.SWTBotShell

   * @param shellText the text on the shell.
   * @return a wrapper around a shell with the specified text.
   * @throws WidgetNotFoundException if the widget is not found.
   */
  public SWTBotShell shell(String shellText) throws WidgetNotFoundException {
    return new SWTBotShell(finder, shellText);
  }
View Full Code Here

Examples of net.sf.swtbot.widgets.SWTBotShell

   * @param index the index of the shell in case there are multiple shells with the same text.
   * @return a wrapper around a shell with the specified text.
   * @throws WidgetNotFoundException if the widget is not found.
   */
  public SWTBotShell shell(String shellText, int index) throws WidgetNotFoundException {
    return new SWTBotShell(finder, shellText, index);
  }
View Full Code Here

Examples of net.sf.swtbot.widgets.SWTBotShell

   *
   * @return the current active shell
   * @throws WidgetNotFoundException if the widget is not found.
   */
  public SWTBotShell activeShell() throws WidgetNotFoundException {
    return new SWTBotShell(finder.activeShell());
  }
View Full Code Here

Examples of net.sf.swtbot.widgets.SWTBotShell

   */
  public SWTBotShell[] shells() throws WidgetNotFoundException {
    Shell[] shells = finder.getShells();
    SWTBotShell[] result = new SWTBotShell[shells.length];
    for (int i = 0; i < result.length; i++)
      result[i] = new SWTBotShell(shells[i]);
    return result;
  }
View Full Code Here

Examples of net.sf.swtbot.widgets.SWTBotShell

   * @param quickFixIndex the index of the quickfix item to apply.
   * @throws QuickFixNotFoundException if the quickfix could not be found.
   * @throws WidgetNotFoundException if the quickfix could not be found.
   */
  public void quickfix(int quickFixIndex) throws QuickFixNotFoundException, WidgetNotFoundException {
    SWTBotShell quickFixShell = activateQuickFixShell();
    SWTBotTable quickFixTable = getQuickFixTable(quickFixShell);
    applyQuickFix(quickFixTable, quickFixIndex);
  }
View Full Code Here

Examples of net.sf.swtbot.widgets.SWTBotShell

   * @param quickFixName the name of the quick fix to apply.
   * @throws QuickFixNotFoundException if the quickfix could not be found.
   */
  public void quickfix(String quickFixName) throws QuickFixNotFoundException {
    int retries = 10;
    SWTBotShell quickFixShell = activateQuickFixShell();
    SWTBotTable quickFixTable = getQuickFixTable(quickFixShell);
    applyQuickFix(quickFixTable, quickFixName, retries);
  }
View Full Code Here

Examples of net.sf.swtbot.widgets.SWTBotShell

   * @return the list of all available quickfixes.
   * @throws QuickFixNotFoundException if the quickfix could not be found.
   * @since 1.2
   */
  public List getQuickFixes() throws QuickFixNotFoundException {
    SWTBotShell quickFixShell = activateQuickFixShell();
    SWTBotTable quickFixTable = getQuickFixTable(quickFixShell);
    int rowCount = quickFixTable.rowCount();
    List result = new ArrayList();
    for (int i = 0; i < rowCount; i++)
      result.add(quickFixTable.cell(i, 0));
View Full Code Here

Examples of org.eclipse.swtbot.swt.finder.widgets.SWTBotShell

    }


    private String clickCheckButton( final String label )
    {
        SWTBotShell shell = BotUtils.shell( new Runnable()
        {
            public void run()
            {
                bot.button( label ).click();
            }
        }, "Error", label );

        String shellText = shell.getText();
        String labelText = bot.label( 1 ).getText(); // label(0) is the image
        bot.button( "OK" ).click();

        if ( shellText.equals( label ) )
        {
View Full Code Here

Examples of org.eclipse.swtbot.swt.finder.widgets.SWTBotShell

    return "The shell '" + text + "' did not activate"; //$NON-NLS-1$ //$NON-NLS-2$
  }

  public boolean test() throws Exception {
    try {
      final SWTBotShell shell = bot.shell(text);
      return UIThreadRunnable.syncExec(new BoolResult() {
        public Boolean run() {
          return shell.widget.isVisible() || shell.widget.isFocusControl();
        }
      });
View Full Code Here

Examples of org.eclipse.swtbot.swt.finder.widgets.SWTBotShell

      public void run() {
        action.getShell().open();
      }
    });

    SWTBotShell bot = new SWTBotShell(action.getShell());
    bot.bot().link().click();

    Format format = new SimpleDateFormat(CalendarAction.DATE_FORMAT);
    assertEquals(format.format(today.getTime()), action.getText());

    Calendar cal = action.getCalendar();
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.