This repository has been archived by the owner on Dec 5, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 44
ToolItem
Pavol Srna edited this page Mar 25, 2015
·
3 revisions
- ToolItem / AbstractToolItem
This class could be used for any ToolItem. It contains whole set of constructors to provide enough power to find any ToolItem you need. For more info see Usage.
This class is specialization of DefaultToolItem. This class is searching for ToolItem inside currently active and focused ViewToolBar. If there is no active View, exception is thrown.
Look up ToolItem with tooltip "New" inside Workbench
ToolItem toolItem = new DefaultToolItem(new WorkbenchShell(), "New");
Look up second ToolItem inside Workbench matching regular expression "Run.*"
ToolItem toolItem = new DefaultToolItem(new WorkbenchShell(), 1,
new WithTooltipTextMatcher(new RegexMatcher("Run.*")));
Look up tool item with tooltip "Sort" in Outline view
View outlineView = new OutlineView();
outlineView.open();
ToolItem toolItem = new ViewToolItem("Sort");