Examples of SWTBotShell


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

                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

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

              }
            });
      }
    }));
   
    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

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

 
   
    //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

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

              }
            });
      }
    }));
   
    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

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

        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

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

        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

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

   
    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

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

    }

    public static ProjectBot createSimpleProject() {
        String projectName = "Project_" + System.currentTimeMillis();
        bot.menu("File").menu("New").menu("Project...").click();
        SWTBotShell shell = bot.shell("New Project");
        shell.activate();
        bot.tree().expandNode("General").select("Project");
        bot.button("Next >").click();
        bot.textWithLabel("Project name:").setText(projectName);
        bot.button("Finish").click();
        SWTUtils.sleep(2000);
View Full Code Here

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

    }
   
    public ProjectFileBot newFile(String fileName) {
        projectTree.setFocus();
        projectTree.contextMenu("New").menu("File").click();
        SWTBotShell shell = bot.shell("New File");
        shell.activate();
        bot.textWithLabel("File name:").setText(fileName);
        bot.button("Finish").click();
        SWTUtils.sleep(2000);
        SWTBotTreeItem treeItem = projectTree.getNode(fileName);
        return new ProjectFileBot(treeItem);
View Full Code Here

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

   
    public void delete() {
        projectTree.contextMenu("Refresh").click();
        SWTUtils.sleep(2000);
        projectTree.contextMenu("Delete").click();
        SWTBotShell shell = bot.shell("Delete Resources");
        shell.activate();
        shell.pressShortcut(SWT.ALT, 'D');
        bot.button("OK").click();
        projectTree = null;
    }
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.