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

Examples of org.eclipse.swtbot.swt.finder.widgets.SWTBotShell.activate()


        TESTSUBSECTION).select();

    bot.button(UIText.ConfigurationEditorComponent_RemoveButton).click();
    SWTBotShell confirm = bot
        .shell(UIText.ConfigurationEditorComponent_RemoveSubsectionTitle);
    confirm.activate();
    confirm.bot().button(IDialogConstants.OK_LABEL).click();
    // close the editor
    preferencePage.bot().button(IDialogConstants.OK_LABEL).click();
    config.load();
    assertTrue("Subsection should be deleted", !config.getSubsections(
View Full Code Here


    preferencePage.bot().tree(1).getTreeItem(TESTSECTION).select();

    bot.button(UIText.ConfigurationEditorComponent_RemoveButton).click();
    SWTBotShell confirm = bot
        .shell(UIText.ConfigurationEditorComponent_RemoveSectionTitle);
    confirm.activate();
    confirm.bot().button(IDialogConstants.OK_LABEL).click();
    // close the editor
    preferencePage.bot().button(IDialogConstants.OK_LABEL).click();
    config.load();
    assertTrue("Values in section should be deleted", config.getStringList(
View Full Code Here

    SWTBotTree tree = getOrOpenView().bot().tree();
    tree.getAllItems()[0].select();
    ContextMenuHelper.clickContextMenu(tree, myUtil
        .getPluginLocalizedValue(ADD_SUBMODULE_CONTEXT_MENU_LABEL));
    SWTBotShell shell = bot.shell(UIText.AddSubmoduleWizard_WindowTitle);
    shell.activate();
    shell.bot().textWithLabel(UIText.SubmodulePathWizardPage_PathLabel)
        .setText("sub");
    shell.bot().button(IDialogConstants.NEXT_LABEL).click();

    shell.bot()
View Full Code Here

    SWTBotTree tree = tree();
    tree.setFocus();
    tree.select(projectName);
    bot.menu("Edit").menu("Delete").click();
    SWTBotShell shell = bot.shell("Delete Resources");
    shell.activate();
    Button button = bot.widget(widgetOfType(Button.class), shell.widget);
    new SWTBotCheckBox(button).select();
    bot.button("OK").click();
    bot.waitUntil(Conditions.shellCloses(shell));
  }
View Full Code Here

  public void createProject(String projectName) throws Exception {
    bot.menu("File").menu("New").menu("Java Project").click();

    SWTBotShell shell = bot.shell("New Java Project");
    shell.activate();
    bot.textWithLabel("Project name:").setText(projectName);
    bot.button("Finish").click();

    bot.waitUntil(Conditions.shellCloses(shell));
View Full Code Here

  private SWTWorkbenchBot  bot  = new SWTWorkbenchBot();

  public void createClass(String packageName, String className) {
    bot.menu("File").menu("New").menu("Class").click();
    SWTBotShell shell = bot.shell("New Java Class");
    shell.activate();
    bot.textWithLabel("Package:").setText(packageName);
    bot.textWithLabel("Name:").setText(className);
    bot.button("Finish").click();

    bot.waitUntil(Conditions.shellCloses(shell));
View Full Code Here

  private final SWTWorkbenchBot  bot  = new SWTWorkbenchBot();

  public void create(String projectId) {
    bot.menu("File").menu("New").menu("Project...").click();
    SWTBotShell shell = bot.shell("New Project");
    shell.activate();

    bot.tree().expandNode("Other", "New SWTBot Test Plug-in").select();
    bot.button("Next >").click();

    bot.textWithLabel("Plug-in Name:").setText(projectId);
View Full Code Here

   *
   */
  private void playWithListeners() throws Exception {
    bot.button("Select Listeners").click(); //$NON-NLS-1$
    SWTBotShell shell = bot.shell("Select Listeners"); //$NON-NLS-1$
    shell.activate();
    bot.button("Deselect All").click(); //$NON-NLS-1$
    bot.button("Select All").click(); //$NON-NLS-1$
    shell.close();
    bot.checkBox("Listen").click(); //$NON-NLS-1$
    bot.button("One").click(); //$NON-NLS-1$
View Full Code Here

        public Shell run() {
          return styledText.widget.getShell();
        }
      });
      SWTBotShell shell = bot.shell("", mainWindow); //$NON-NLS-1$
      shell.activate();
      log.debug("Activated quickfix shell."); //$NON-NLS-1$
      return shell;
    } catch (Exception e) {
      throw new QuickFixNotFoundException("Quickfix popup not found. Giving up.", e); //$NON-NLS-1$
    }
View Full Code Here

 
  public void createMFile(final String projectName, final String fileName) throws Exception {
    bot.menu("File").menu("New").menu("Other...").click();
      bot.waitUntil(Conditions.shellIsActive("New"));
    SWTBotShell shell = bot.shell("New");
    shell.activate();
   
   
      SWTBotTree wizardTree = bot.tree();
      wizardTree.expandNode("Examples").expandNode("GEF (Graphical Editing Framework)").expandNode("Logic M Diagram").select();
      bot.button("Next >").click();
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.