diff options
author | Scott Kovatch <skovatch> | 2011-01-17 22:58:17 +0000 |
---|---|---|
committer | Scott Kovatch <skovatch> | 2011-01-17 22:58:17 +0000 |
commit | 6d5babe8342025ed25c67380402e7d76cb9fd8e7 (patch) | |
tree | 095ad30a513414de69a9477a67a12326264f4f39 /bundles/org.eclipse.swt/Eclipse SWT/photon/org/eclipse/swt | |
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/photon/org/eclipse/swt')
-rwxr-xr-x | bundles/org.eclipse.swt/Eclipse SWT/photon/org/eclipse/swt/widgets/Control.java | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/bundles/org.eclipse.swt/Eclipse SWT/photon/org/eclipse/swt/widgets/Control.java b/bundles/org.eclipse.swt/Eclipse SWT/photon/org/eclipse/swt/widgets/Control.java index 9272ad57c9..c7e2567969 100755 --- a/bundles/org.eclipse.swt/Eclipse SWT/photon/org/eclipse/swt/widgets/Control.java +++ b/bundles/org.eclipse.swt/Eclipse SWT/photon/org/eclipse/swt/widgets/Control.java @@ -1460,6 +1460,27 @@ boolean isTabItem () { } /** + * 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. |