Package org.eclipse.swtbot.swt.finder.widgets

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


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


    } catch (WidgetNotFoundException ignored) {}
  }

  public void createGeneralProject(String name) {
    menu("File").menu("New").menu("Project...").click();
    SWTBotShell shell = shell("New Project");
    shell.activate();
    tree().expandNode("General").select("Project");
    button("Next >").click();
    textWithLabel("Project name:").setText(name);
    button("Finish").click();
  }
View Full Code Here

    return file;
  }

  public SWTBotEclipseEditor createFile(String name) {
    menu("File").menu("New").menu("File").click();
    SWTBotShell shell = shell("New File");
    shell.activate();
    textWithLabel("File name:").setText(name);
    button("Finish").click();
    return editorByTitle(name).toTextEditor();
  }
View Full Code Here

                assert(df.canDelete(dc));
                df.delete(dc);
              }});
      }}));
   
    SWTBotShell shell = mBot.shell("Confirm Delete");
    shell.activate();
    mBot.button("Yes").click();   
    mBot.sleep(1000);
    mBot.menu("File").menu("Save").click();
    mBot.sleep(1000);
View Full Code Here

              }
            });
      }
    }));
   
    SWTBotShell shell = mBot.shell("Create string literal");
    shell.activate();
    SWTBotText text = shell.bot().textWithLabel(
        "Enter string literal value");
    text.typeText(name + "\n");
  }
View Full Code Here

 
   
    //mBot.waitUntil(Conditions.shellIsActive("Confirm Delete"));
    //Close confirmation
   
    SWTBotShell shell = mBot.shell("Confirm Delete");
    shell.activate();
    mBot.button("Yes").click();   
    mBot.sleep(1000);
    mBot.menu("File").menu("Save").click();
    mBot.sleep(1000);
View Full Code Here

              }
            });
      }
    }));
   
    SWTBotShell shell = mBot.shell("Create string literal");
    shell.activate();
    SWTBotText text = shell.bot().textWithLabel("Enter string literal value");
    text.typeText("Test String Literal\n");
   
    //Should have the literal now
    Pair<Shape, EObject> here = TestUtil.getLiteralWithName(
        "\"Test String Literal\"", d);
View Full Code Here

        parametersStr, methodBody, methodReturnType);
  }

  private void createJavaTestProject(String projectName) {
    bot.menu("File").menu("New").menu("Project...").click();
    SWTBotShell shell = bot.shell("New Project").activate();
    bot.tree().expandNode("Java").select("Java Project");
    bot.button("Next >").click();
    bot.textWithLabel("Project name:").setText(projectName + "Test");
    bot.button("Finish").click();
    bot.waitUntil(shellCloses(shell));
View Full Code Here

        bot.menu("Window").menu("Preferences").click();
        return fromActivatedPreferences();
    }
   
    static PreferencesBot fromActivatedPreferences() {
        SWTBotShell botShell = bot.shell("Preferences");
        botShell.activate();
        return new PreferencesBot(botShell);
    }
View Full Code Here

   
    private final static SWTWorkbenchBot bot = new SWTWorkbenchBot();

    public static void newFile(String filename) {
        bot.menu("File").menu("New").menu("File").click();
        SWTBotShell shell = bot.shell("New File");
        shell.activate();
        bot.textWithLabel("File name:").setText(filename);
        bot.button("Finish").click();
    }
View Full Code Here

TOP

Related Classes of org.eclipse.swtbot.swt.finder.widgets.SWTBotShell

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.