|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.eclipse.swtbot.eclipse.finder.widgets.SWTBotViewMenu
org.eclipse.swtbot.eclipse.finder.widgets.SWTBotCommand
public class SWTBotCommand
A SWTBotViewMenu represents a menu item within a view's menu.
| Field Summary |
|---|
| Fields inherited from class org.eclipse.swtbot.eclipse.finder.widgets.SWTBotViewMenu |
|---|
cmdItem, commandID, menuClickResult |
| Constructor Summary | |
|---|---|
SWTBotCommand(Command command)
Constructs a SWTBot command 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 name for this item. |
boolean |
isEnabled()
Gets if the command is enabled. |
| Methods inherited from class org.eclipse.swtbot.eclipse.finder.widgets.SWTBotViewMenu |
|---|
isChecked |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SWTBotCommand(Command command)
throws WidgetNotFoundException
command - The command item.
WidgetNotFoundException - Thrown if both values are null.
AssertionFailedException - If the contribution item is null.| Method Detail |
|---|
public void click()
throws WidgetNotFoundException
click in class SWTBotViewMenuWidgetNotFoundException - Thrown if the action or command id are not valid.public Object getClickResult()
null.
getClickResult in class SWTBotViewMenunull if a click never occurred.
public String getText()
throws WidgetNotFoundException
getText in class SWTBotViewMenuWidgetNotFoundException - Thrown if the command name has not been defined.public boolean isEnabled()
true if enabled. Otherwise false.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||