Author: jpeterka
Date: 2010-04-14 08:33:06 -0400 (Wed, 14 Apr 2010)
New Revision: 21466
Modified:
trunk/jst/tests/org.jboss.tools.ui.bot.ext/src/org/jboss/tools/ui/bot/ext/view/ExplorerBase.java
Log:
Fix for proper selection of Explorer type
Modified:
trunk/jst/tests/org.jboss.tools.ui.bot.ext/src/org/jboss/tools/ui/bot/ext/view/ExplorerBase.java
===================================================================
---
trunk/jst/tests/org.jboss.tools.ui.bot.ext/src/org/jboss/tools/ui/bot/ext/view/ExplorerBase.java 2010-04-14
11:56:02 UTC (rev 21465)
+++
trunk/jst/tests/org.jboss.tools.ui.bot.ext/src/org/jboss/tools/ui/bot/ext/view/ExplorerBase.java 2010-04-14
12:33:06 UTC (rev 21466)
@@ -109,9 +109,7 @@
* @return editor with opened file
*/
public SWTBotEditor openFile(String projectName, String... path) {
- SWTBot viewBot = viewByTitle(IDELabel.View.PROJECT_EXPLORER).bot();
- viewByTitle(IDELabel.View.PROJECT_EXPLORER).show();
- viewByTitle(IDELabel.View.PROJECT_EXPLORER).setFocus();
+ SWTBot viewBot = open.viewOpen(viewObject).bot();
SWTBotTree tree = viewBot.tree();
SWTBotTreeItem item = tree.expandNode(projectName);
StringBuilder builder = new StringBuilder(projectName);
@@ -130,7 +128,7 @@
* @param projectName
*/
public void runOnServer(String projectName) {
- SWTBot viewBot = viewByTitle(viewObject.getName()).bot();
+ SWTBot viewBot = open.viewOpen(viewObject).bot();
SWTBotTreeItem item = viewBot.tree().expandNode(projectName);
ContextMenuHelper.prepareTreeItemForContextMenu(viewBot.tree(), item);
final SWTBotMenu menuRunAs =
viewBot.menu(IDELabel.Menu.RUN).menu(IDELabel.Menu.RUN_AS);
Show replies by date