コード例 #1
0
 /**
  * Creates new Server within Server View when Wizard for new Project is called
  *
  * @param bot
  * @param serverGroup
  * @param serverType
  */
 public static void addServerToServerViewOnWizardPage(
     SWTWorkbenchBot bot, String serverGroup, String serverType) {
   // Check if there is defined Application Server if not create one
   if (!SWTJBTExt.isServerDefinedInWebWizardPage(bot)) {
     // Specify Application Server for Deployment
     bot.button(IDELabel.Button.NEW, 1).click();
     bot.shell(IDELabel.Shell.NEW_SERVER).activate();
     bot.tree().select(serverGroup);
     bot.tree().expandNode(serverGroup).select(serverType);
     bot.button(IDELabel.Button.FINISH).click();
   }
 }
コード例 #2
0
 /**
  * Return true when in Web Page of Wizard is defined at least one Server Runtime Instance Dynamic
  * version of isServerDefinedInWebWizardPage
  *
  * @return
  */
 public boolean isServerDefinedInWebWizardPage() {
   return SWTJBTExt.isServerDefinedInWebWizardPage(bot);
 }