|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.eclipse.swtbot.eclipse.finder.widgets.SWTBotWorkbenchPart<IViewReference>
org.eclipse.swtbot.eclipse.finder.widgets.SWTBotView
public class SWTBotView
This represents the eclipse View item.
| Field Summary |
|---|
| Fields inherited from class org.eclipse.swtbot.eclipse.finder.widgets.SWTBotWorkbenchPart |
|---|
bot, log, partReference |
| Constructor Summary | |
|---|---|
SWTBotView(IViewReference partReference,
SWTWorkbenchBot bot)
Creates an instance of a view part. |
|
SWTBotView(IViewReference partReference,
SWTWorkbenchBot bot,
SelfDescribing description)
Creates an instance of a view part. |
|
| Method Summary | |
|---|---|
void |
close()
Close the partReference. |
IViewReference |
getViewReference()
|
boolean |
isActive()
|
SWTBotViewMenu |
menu(String label)
Gets a menu item matching the give label within the partReference menu if one exists. |
SWTBotViewMenu |
menu(String label,
int index)
Gets a menu item matching the give label within the partReference menu if one exists. |
List<SWTBotViewMenu> |
menus()
Gets a list of all menus within the partReference. |
void |
setFocus()
Sets focus on the current part. |
| Methods inherited from class org.eclipse.swtbot.eclipse.finder.widgets.SWTBotWorkbenchPart |
|---|
assertActive, bot, findWidget, findWidgets, getReference, getTitle, getToolbarButtons, getWidget, show, toolbarButton, toolbarDropDownButton, toolbarPushButton, toolbarRadioButton, toolbarToggleButton |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SWTBotView(IViewReference partReference,
SWTWorkbenchBot bot)
partReference - the view reference representing this view.bot - the bot that's used to find controls within this view.
public SWTBotView(IViewReference partReference,
SWTWorkbenchBot bot,
SelfDescribing description)
partReference - the part reference.bot - the helper bot.description - the description of the workbench part.| Method Detail |
|---|
public void setFocus()
SWTBotWorkbenchPart
setFocus in class SWTBotWorkbenchPart<IViewReference>public IViewReference getViewReference()
public boolean isActive()
isActive in class SWTBotWorkbenchPart<IViewReference>true if the part is currently active.public void close()
close in class SWTBotWorkbenchPart<IViewReference>public List<SWTBotViewMenu> menus()
public SWTBotViewMenu menu(String label)
throws WidgetNotFoundException
label - The label matching name in the menu.
SWTBotMenu item.
WidgetNotFoundException - Thrown if the menu can not be found or if the partReference does not contain a
menu.
public SWTBotViewMenu menu(String label,
int index)
throws WidgetNotFoundException
label - The label matching name in the menu.index - The index of the menu to choose.
SWTBotMenu item.
WidgetNotFoundException - Thrown if the menu can not be found or if the partReference does not contain a
menu.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||