]> gerrit.simantics Code Review - simantics/platform.git/blobdiff - bundles/org.eclipse.swt.win32.win32.x86_64/src/org/eclipse/swt/accessibility/AccessibleEditableTextEvent.java
Work around SWT 4.13 - 4.18 Win32 DnD bug 567422
[simantics/platform.git] / bundles / org.eclipse.swt.win32.win32.x86_64 / src / org / eclipse / swt / accessibility / AccessibleEditableTextEvent.java
diff --git a/bundles/org.eclipse.swt.win32.win32.x86_64/src/org/eclipse/swt/accessibility/AccessibleEditableTextEvent.java b/bundles/org.eclipse.swt.win32.win32.x86_64/src/org/eclipse/swt/accessibility/AccessibleEditableTextEvent.java
new file mode 100644 (file)
index 0000000..d874a0a
--- /dev/null
@@ -0,0 +1,94 @@
+/*******************************************************************************
+ * Copyright (c) 2010, 2017 IBM Corporation and others.
+ *
+ * This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License 2.0
+ * which accompanies this distribution, and is available at
+ * https://www.eclipse.org/legal/epl-2.0/
+ *
+ * SPDX-License-Identifier: EPL-2.0
+ *
+ * Contributors:
+ *     IBM Corporation - initial API and implementation
+ *******************************************************************************/
+package org.eclipse.swt.accessibility;
+
+import java.util.*;
+
+/**
+ * Instances of this class are sent as a result of accessibility clients
+ * sending AccessibleEditableText messages to an accessible object.
+ *
+ * @see AccessibleEditableTextListener
+ * @see AccessibleEditableTextAdapter
+ *
+ * @since 3.7
+ */
+public class AccessibleEditableTextEvent extends EventObject {
+
+       /**
+        * [in] 0-based start offset of the character range to perform
+        * the operation on
+        *
+        * @see AccessibleEditableTextListener#copyText
+        * @see AccessibleEditableTextListener#cutText
+        * @see AccessibleEditableTextListener#pasteText
+        * @see AccessibleEditableTextListener#replaceText
+        */
+       public int start;
+
+       /**
+        * [in] 0-based ending offset of the character range to perform
+        * the operation on
+        *
+        * @see AccessibleEditableTextListener#copyText
+        * @see AccessibleEditableTextListener#cutText
+        * @see AccessibleEditableTextListener#replaceText
+        */
+       public int end;
+
+       /**
+        * [in] a string that will replace the specified character range
+        *
+        * @see AccessibleEditableTextListener#replaceText
+        */
+       public String string;
+
+       /**
+        * [out] Set this field to {@link ACC#OK} if the operation
+        * was completed successfully, and <code>null</code> otherwise.
+        *
+        * @see AccessibleEditableTextListener#copyText
+        * @see AccessibleEditableTextListener#cutText
+        * @see AccessibleEditableTextListener#pasteText
+        * @see AccessibleEditableTextListener#replaceText
+        */
+       public String result;
+
+       static final long serialVersionUID = -5045447704486894646L;
+
+/**
+ * Constructs a new instance of this class.
+ *
+ * @param source the object that fired the event
+ */
+public AccessibleEditableTextEvent(Object source) {
+       super(source);
+}
+
+/**
+ * Returns a string containing a concise, human-readable
+ * description of the receiver.
+ *
+ * @return a string representation of the event
+ */
+@Override
+public String toString () {
+       return "AccessibleEditableTextEvent {" //$NON-NLS-1$
+               + "start=" + start   //$NON-NLS-1$
+               + " end=" + end   //$NON-NLS-1$
+               + " string=" + string   //$NON-NLS-1$
+               + " result=" + result   //$NON-NLS-1$
+               + "}";  //$NON-NLS-1$
+}
+}