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

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


        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


   * @throws QuickFixNotFoundException Throw if a quick fix problem occurs.
   */
  private SWTBotShell activatePopupShell() throws QuickFixNotFoundException {
    try {
      SWTBotShell shell = bot.shell("", bot.activeShell().widget); //$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 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 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

  }

  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

                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(
View Full Code Here

        return fromActivatedPreferences();
    }
   
    static PreferencesBot fromActivatedPreferences() {
        SWTBotShell botShell = bot.shell("Preferences");
        botShell.activate();
        return new PreferencesBot(botShell);
    }

    public PreferencesBot(SWTBotShell botShell) {
        this.botShell = botShell;
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.