107108109110111112113114115116117
} }); } public boolean isEnabled() { return syncExec(new BoolResult() { public Boolean run() { return parent.isEnabled(); } }); }
466467468469470471472473474475476
* @return <code>true</code> if the widget is enabled. * @see Control#isEnabled() */ public boolean isEnabled() { if (widget instanceof Control) return syncExec(new BoolResult() { public Boolean run() { return isEnabledInternal(); } }); return false;
640641642643644645646647648649650
* * @return <code>true</code> if the widget is visible, <code>false</code> otherwise. * @since 1.0 */ public boolean isVisible() { return syncExec(new BoolResult() { public Boolean run() { if (widget instanceof Control) return ((Control) widget).isVisible(); return true; }
688689690691692693694695696697698
if (!(widget instanceof Control)) throw new UnsupportedOperationException("Can only traverse widgets of type Control. You're traversing a widget of type: " //$NON-NLS-1$ + widget.getClass().getName()); return syncExec(new BoolResult() { public Boolean run() { return ((Control) widget).traverse(traverse.type); } }); }
700701702703704705706707708709710
/** * @return <code>true</code> if this widget has focus. * @see Display#getFocusControl() */ public boolean isActive() { return syncExec(new BoolResult() { public Boolean run() { return display.getFocusControl() == widget; } }); }
99100101102103104105106107108109
/** * @return <code>true</code> if the button is checked, <code>false</code> otherwise. */ public boolean isChecked() { return syncExec(new BoolResult() { public Boolean run() { return widget.getSelection(); } }); }
9293949596979899100101102
/** * @return <code>true</code> if the item is expanded, <code>false</code> otherwise. * @see #isCollapsed() */ public boolean isExpanded() { return syncExec(new BoolResult() { public Boolean run() { return widget.getExpanded(); } }); }
96979899100101102103104105106
return new SWTBotMenu(menuItem, matcher); } @Override public boolean isEnabled() { return syncExec(new BoolResult() { public Boolean run() { return widget.isEnabled(); } }); }
111112113114115116117118119120121
* @return <code>true</code> if the menu is checked, <code>false</code> otherwise. * @see MenuItem#getSelection() * @since 1.2 */ public boolean isChecked() { return syncExec(new BoolResult() { public Boolean run() { return widget.getSelection(); } }); }