| java.lang.Object org.eclipse.ui.tests.harness.util.ActionUtil
ActionUtil | public class ActionUtil (Code) | | ActionUtil contains methods to run actions
in the workbench.
|
Method Summary | |
public static void | fireAboutToShow(MenuManager mgr) Fire the "handleAboutToShow" method in a menu manager. | public static IAction | getActionWithLabel(IMenuManager mgr, String label) Returns the first action found in a menu manager with a
particular label. | public static void | runAction(TestCase test, IContributionItem item) Runs an action contribution. | public static void | runActionUsingPath(TestCase test, IMenuManager mgr, String idPath) Runs an action identified by an id path in a
menu manager. | public static void | runActionUsingPath(TestCase test, IWorkbenchWindow win, String idPath) Runs an action identified by an id path in a
window. | public static void | runActionWithLabel(TestCase test, IMenuManager mgr, String label) Runs the first action found in a menu manager with a
particular label. | public static void | runActionWithLabel(TestCase test, IWorkbenchWindow win, String label) Runs the first action found in a window with a
particular label. |
fireAboutToShow | public static void fireAboutToShow(MenuManager mgr) throws Throwable(Code) | | Fire the "handleAboutToShow" method in a menu manager.
This triggers the same behavior as when a user opens a menu.
The menu to be populated with actions and those
actions to be enacted in SWT widgets.
Parameters: mgr - the menu manager to open |
getActionWithLabel | public static IAction getActionWithLabel(IMenuManager mgr, String label)(Code) | | Returns the first action found in a menu manager with a
particular label.
Parameters: mgr - the containing menu manager Parameters: label - the action label the first action with the label, or null if it is not found. |
runAction | public static void runAction(TestCase test, IContributionItem item)(Code) | | Runs an action contribution.
Parameters: test - the current test case Parameters: item - an action contribution item |
runActionUsingPath | public static void runActionUsingPath(TestCase test, IMenuManager mgr, String idPath)(Code) | | Runs an action identified by an id path in a
menu manager.
Parameters: test - the current test case Parameters: mgr - the containing menu manager Parameters: label - the action label |
runActionUsingPath | public static void runActionUsingPath(TestCase test, IWorkbenchWindow win, String idPath)(Code) | | Runs an action identified by an id path in a
window.
Parameters: test - the current test case Parameters: win - the containing window Parameters: label - the action label |
runActionWithLabel | public static void runActionWithLabel(TestCase test, IMenuManager mgr, String label)(Code) | | Runs the first action found in a menu manager with a
particular label.
Parameters: test - the current test case Parameters: mgr - the containing menu manager Parameters: label - the action label |
runActionWithLabel | public static void runActionWithLabel(TestCase test, IWorkbenchWindow win, String label)(Code) | | Runs the first action found in a window with a
particular label.
Parameters: test - the current test case Parameters: win - the containing window Parameters: label - the action label |
|
|