diff options
author | Scott Kovatch | 2011-01-17 22:58:17 +0000 |
---|---|---|
committer | Scott Kovatch | 2011-01-17 22:58:17 +0000 |
commit | 6d5babe8342025ed25c67380402e7d76cb9fd8e7 (patch) | |
tree | 095ad30a513414de69a9477a67a12326264f4f39 /bundles/org.eclipse.swt/Eclipse SWT/motif | |
parent | 9022b0c87576382c8b2fca8ae1a8f53567b5217b (diff) | |
download | eclipse.platform.swt-6d5babe8342025ed25c67380402e7d76cb9fd8e7.tar.gz eclipse.platform.swt-6d5babe8342025ed25c67380402e7d76cb9fd8e7.tar.xz eclipse.platform.swt-6d5babe8342025ed25c67380402e7d76cb9fd8e7.zip |
Add isTouchEnabled() for all other platforms.
Diffstat (limited to 'bundles/org.eclipse.swt/Eclipse SWT/motif')
-rwxr-xr-x | bundles/org.eclipse.swt/Eclipse SWT/motif/org/eclipse/swt/widgets/Control.java | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/bundles/org.eclipse.swt/Eclipse SWT/motif/org/eclipse/swt/widgets/Control.java b/bundles/org.eclipse.swt/Eclipse SWT/motif/org/eclipse/swt/widgets/Control.java index 4540762b28..76abdf1de1 100755 --- a/bundles/org.eclipse.swt/Eclipse SWT/motif/org/eclipse/swt/widgets/Control.java +++ b/bundles/org.eclipse.swt/Eclipse SWT/motif/org/eclipse/swt/widgets/Control.java @@ -1620,6 +1620,26 @@ boolean isTabItem () { return (code & (SWT.TRAVERSE_ARROW_PREVIOUS | SWT.TRAVERSE_ARROW_NEXT)) != 0; } /** + * Returns <code>true</code> if this control is receiving OS-level touch events, + * otherwise <code>false</code> + * <p> + * Note that this method will return false if the current platform does not support touch-based input. + * If this method does return true, gesture events will not be sent to the control. + * + * @return <code>true</code> if the widget is currently receiving touch events; <code>false</code> otherwise. + * + * @exception SWTException <ul> + * <li>ERROR_WIDGET_DISPOSED - if the receiver has been disposed</li> + * <li>ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the receiver</li> + * </ul> + * + * @since 3.7 + */ +public boolean isTouchEnabled() { + checkWidget(); + return false; +} +/** * Returns <code>true</code> if the receiver is visible and all * ancestors up to and including the receiver's nearest ancestor * shell are visible. Otherwise, <code>false</code> is returned. |