@Override public void confirmShellLeavingClosingSession() throws RemoteException { SWTBot bot = new SWTBot(); SWTBotShell shell; if (!Views.getInstance().sarosView().isHost()) { shell = bot.shell(SHELL_CONFIRM_LEAVING_SESSION); } else { shell = bot.shell(SHELL_CONFIRM_CLOSING_SESSION); } shell.activate(); shell.bot().button(YES).click(); Views.getInstance().sarosView().waitUntilIsNotInSession(); }
@Override public IViews views() throws RemoteException { return Views.getInstance(); }