/** * Deletes Application Server in Server View on position specified by index * * @param bot * @param index - zero based Position of Server within Server Tree */ public static void deleteApplicationServer(SWTWorkbenchBot bot, int index) { SWTJBTExt.chooseServerPopupMenu(bot, index, IDELabel.Menu.DELETE, 10 * 1000L); bot.shell(IDELabel.Shell.DELETE_SERVER).activate(); bot.button(IDELabel.Button.OK).click(); }
/** * Stops Application Server in Server View on position specified by index * * @param bot * @param index - zero based Position of Server within Server Tree * @param iuTimeOut */ public static void stopApplicationServer(SWTWorkbenchBot bot, int index, long uiTimeOut) { SWTJBTExt.chooseServerPopupMenu(bot, index, IDELabel.Menu.STOP, 20 * 1000L, uiTimeOut); }
/** * Choose Server Popup Menu with specified label on Server with position specified by index with * defaul UI TimeOut * * @param bot * @param index * @param menuLabel * @param timeOut */ public static void chooseServerPopupMenu( SWTWorkbenchBot bot, int index, String menuLabel, long timeOut) { chooseServerPopupMenu(bot, index, menuLabel, timeOut, SWTJBTExt.DEFAULT_UI_TIMEOUT); }
/** * Starts Application Server in Server View on position specified by index * * @param bot * @param index - zero based Position of Server within Server Tree * @param uiTimeOut */ public static void startApplicationServer(SWTWorkbenchBot bot, int index, long uiTimeOut) { SWTJBTExt.chooseServerPopupMenu(bot, index, IDELabel.Menu.START, 120 * 1000L, uiTimeOut); bot.sleep(10 * 1000L); }