|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.eclipse.swtbot.eclipse.finder.widgets.SWTBotViewMenu
public class SWTBotViewMenu
A SWTBotViewMenu represents a menu item within a view's menu.
Field Summary | |
---|---|
protected Command |
cmdItem
Holds command if setup. |
protected String |
commandID
Holds the id of the command if one exists. |
protected Object |
menuClickResult
Holds the results of the click action. |
Constructor Summary | |
---|---|
SWTBotViewMenu(ActionContributionItem contributionItem)
Constructs a SWTBot View Menu item. |
|
SWTBotViewMenu(Command commandItem)
Constructs a SWTBot View Menu item. |
Method Summary | |
---|---|
void |
click()
Simulates the click action of the menu. |
Object |
getClickResult()
After a click completes, this may be use to access the results returned by the command. |
String |
getText()
GEts the text label for the menu item. |
boolean |
isChecked()
Gets if the menu item is checked (has a check mark next to it). |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected Object menuClickResult
protected Command cmdItem
protected String commandID
Constructor Detail |
---|
public SWTBotViewMenu(Command commandItem) throws WidgetNotFoundException
commandItem
- The command contribution item.
WidgetNotFoundException
- Thrown if both values are null
.
AssertionFailedException
- If the contribution item is null
.public SWTBotViewMenu(ActionContributionItem contributionItem) throws WidgetNotFoundException
contributionItem
- The action contribution item.
WidgetNotFoundException
- Thrown if both values are null
.
AssertionFailedException
- If the contribution item is null
.Method Detail |
---|
public void click() throws WidgetNotFoundException
WidgetNotFoundException
- Thrown if the action or command id are not valid.public Object getClickResult()
null
.
null
if a click never occurred.public String getText() throws WidgetNotFoundException
WidgetNotFoundException
- Thrown if the action is null
.public boolean isChecked()
true
if checked. Otherwise false
.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |