From 0c693ec68aa92990fed67d5ac8294b0904382aa6 Mon Sep 17 00:00:00 2001
From: Carolyn MacLeod
+ * IMPORTANT: As of JDK1.5, the embedded frame does not receive mouse events.
+ * When a lightweight component is added as a child of the embedded frame,
+ * the cursor does not change. In order to work around both these problems, it is
+ * strongly recommended that a heavyweight component such as
- * IMPORTANT: As of JDK1.5, the embedded frame does not receive mouse events.
- * When a lightweight component is added as a child of the embedded frame,
- * the cursor does not change. In order to work around both these problems, it is
- * strongly recommended that a heavyweight component such as Note that there are clipboard assistant applications that take ownership
+ * of data or make copies of data when it is placed on the clipboard. In these
+ * cases, it may not be possible to clear the clipboard. The clipboards value is either one of the clipboard constants defined in
+ * class The clipboards value is either one of the clipboard constants defined in
+ * class java.awt.Frame
which is the embedded frame
- * associated with the specified composite.
- *
- * @param parent the parent Composite
of the java.awt.Frame
- * @return a java.awt.Frame
the embedded frame or null
.
- *
- * @exception IllegalArgumentException
- *
- *
- * @since 3.2
- */
- public static Frame getFrame(Composite parent) {
- if (parent == null) SWT.error(SWT.ERROR_NULL_ARGUMENT);
- if ((parent.getStyle() & SWT.EMBEDDED) == 0) return null;
- return (Frame) parent.getData(EMBEDDED_FRAME_KEY);
+/**
+ * Returns a java.awt.Frame
which is the embedded frame
+ * associated with the specified composite.
+ *
+ * @param parent the parent Composite
of the java.awt.Frame
+ * @return a java.awt.Frame
the embedded frame or null
.
+ *
+ * @exception IllegalArgumentException
+ *
+ *
+ * @since 3.2
+ */
+public static Frame getFrame(Composite parent) {
+ if (parent == null) SWT.error(SWT.ERROR_NULL_ARGUMENT);
+ if ((parent.getStyle() & SWT.EMBEDDED) == 0) return null;
+ return (Frame) parent.getData(EMBEDDED_FRAME_KEY);
+}
+
+/**
+ * Creates a new java.awt.Frame
. This frame is the root for
+ * the AWT components that will be embedded within the composite. In order
+ * for the embedding to succeed, the composite must have been created
+ * with the SWT.EMBEDDED style.
+ * java.awt.Panel
+ * be added to the frame as the root of all components.
+ * Composite
of the new java.awt.Frame
+ * @return a java.awt.Frame
to be the parent of the embedded AWT components
+ *
+ * @exception IllegalArgumentException
+ *
+ *
+ * @since 3.0
+ */
+public static Frame new_Frame(final Composite parent) {
+ if (parent == null) SWT.error(SWT.ERROR_NULL_ARGUMENT);
+ if ((parent.getStyle() & SWT.EMBEDDED) == 0) {
+ SWT.error(SWT.ERROR_INVALID_ARGUMENT);
}
- /**
- * Creates a new java.awt.Frame
. This frame is the root for
- * the AWT components that will be embedded within the composite. In order
- * for the embedding to succeed, the composite must have been created
- * with the SWT.EMBEDDED style.
- * java.awt.Panel
- * be added to the frame as the root of all components.
- * Composite
of the new java.awt.Frame
- * @return a java.awt.Frame
to be the parent of the embedded AWT components
- *
- * @exception IllegalArgumentException
- *
- *
- * @since 3.0
- */
- public static Frame new_Frame(final Composite parent) {
- if (parent == null) SWT.error(SWT.ERROR_NULL_ARGUMENT);
- if ((parent.getStyle() & SWT.EMBEDDED) == 0) {
- SWT.error(SWT.ERROR_INVALID_ARGUMENT);
+ final int /*long*/ handle = parent.view.id;
+
+ Class clazz = null;
+ try {
+ String className = embeddedFrameClass != null ? embeddedFrameClass : "apple.awt.CEmbeddedFrame";
+ if (embeddedFrameClass == null) {
+ clazz = Class.forName(className, true, ClassLoader.getSystemClassLoader());
+ } else {
+ clazz = Class.forName(className);
}
-
- final int /*long*/ handle = parent.view.id;
-
- Class clazz = null;
- try {
- String className = embeddedFrameClass != null ? embeddedFrameClass : "apple.awt.CEmbeddedFrame";
- if (embeddedFrameClass == null) {
- clazz = Class.forName(className, true, ClassLoader.getSystemClassLoader());
- } else {
- clazz = Class.forName(className);
+ } catch (ClassNotFoundException cne) {
+ SWT.error (SWT.ERROR_NOT_IMPLEMENTED, cne);
+ } catch (Throwable e) {
+ SWT.error (SWT.ERROR_UNSPECIFIED , e, " [Error while starting AWT]");
+ }
+
+ initializeSwing();
+ Object value = null;
+ Constructor constructor = null;
+ try {
+ constructor = clazz.getConstructor (new Class [] {long.class});
+ value = constructor.newInstance (new Object [] {new Long(handle)});
+ } catch (Throwable e) {
+ SWT.error(SWT.ERROR_NOT_IMPLEMENTED, e);
+ }
+ final Frame frame = (Frame) value;
+ frame.addNotify();
+
+ parent.setData(EMBEDDED_FRAME_KEY, frame);
+
+ /* Forward the iconify and deiconify events */
+ final Listener shellListener = new Listener () {
+ public void handleEvent (Event e) {
+ switch (e.type) {
+ case SWT.Deiconify:
+ EventQueue.invokeLater(new Runnable () {
+ public void run () {
+ frame.dispatchEvent (new WindowEvent (frame, WindowEvent.WINDOW_DEICONIFIED));
+ }
+ });
+ break;
+ case SWT.Iconify:
+ EventQueue.invokeLater(new Runnable () {
+ public void run () {
+ frame.dispatchEvent (new WindowEvent (frame, WindowEvent.WINDOW_ICONIFIED));
+ }
+ });
+ break;
}
- } catch (ClassNotFoundException cne) {
- SWT.error (SWT.ERROR_NOT_IMPLEMENTED, cne);
- } catch (Throwable e) {
- SWT.error (SWT.ERROR_UNSPECIFIED , e, " [Error while starting AWT]");
- }
-
- initializeSwing();
- Object value = null;
- Constructor constructor = null;
- try {
- constructor = clazz.getConstructor (new Class [] {long.class});
- value = constructor.newInstance (new Object [] {new Long(handle)});
- } catch (Throwable e) {
- SWT.error(SWT.ERROR_NOT_IMPLEMENTED, e);
}
- final Frame frame = (Frame) value;
- frame.addNotify();
-
- parent.setData(EMBEDDED_FRAME_KEY, frame);
-
- /* Forward the iconify and deiconify events */
- final Listener shellListener = new Listener () {
- public void handleEvent (Event e) {
- switch (e.type) {
- case SWT.Deiconify:
- EventQueue.invokeLater(new Runnable () {
- public void run () {
- frame.dispatchEvent (new WindowEvent (frame, WindowEvent.WINDOW_DEICONIFIED));
- }
- });
- break;
- case SWT.Iconify:
- EventQueue.invokeLater(new Runnable () {
- public void run () {
- frame.dispatchEvent (new WindowEvent (frame, WindowEvent.WINDOW_ICONIFIED));
- }
- });
- break;
- }
+ };
+ Shell shell = parent.getShell ();
+ shell.addListener (SWT.Deiconify, shellListener);
+ shell.addListener (SWT.Iconify, shellListener);
+
+ /*
+ * Generate the appropriate events to activate and deactivate
+ * the embedded frame. This is needed in order to make keyboard
+ * focus work properly for lightweights.
+ */
+ Listener listener = new Listener () {
+ public void handleEvent (Event e) {
+ switch (e.type) {
+ case SWT.Dispose:
+ Shell shell = parent.getShell ();
+ shell.removeListener (SWT.Deiconify, shellListener);
+ shell.removeListener (SWT.Iconify, shellListener);
+ parent.setVisible(false);
+ EventQueue.invokeLater(new Runnable () {
+ public void run () {
+ try {
+ frame.dispose ();
+ } catch (Throwable e) {}
+ }
+ });
+ break;
+ case SWT.FocusIn:
+ EventQueue.invokeLater(new Runnable () {
+ public void run () {
+ if (frame.isActive()) return;
+ try {
+ Class clazz = frame.getClass();
+ Method method = clazz.getMethod("synthesizeWindowActivation", new Class[]{boolean.class});
+ if (method != null) method.invoke(frame, new Object[]{new Boolean(true)});
+ } catch (Throwable e) {e.printStackTrace();}
+ }
+ });
+ break;
+ case SWT.Deactivate:
+ EventQueue.invokeLater(new Runnable () {
+ public void run () {
+ if (!frame.isActive()) return;
+ try {
+ Class clazz = frame.getClass();
+ Method method = clazz.getMethod("synthesizeWindowActivation", new Class[]{boolean.class});
+ if (method != null) method.invoke(frame, new Object[]{new Boolean(false)});
+ } catch (Throwable e) {e.printStackTrace();}
+ }
+ });
+ break;
}
- };
- Shell shell = parent.getShell ();
- shell.addListener (SWT.Deiconify, shellListener);
- shell.addListener (SWT.Iconify, shellListener);
-
- /*
- * Generate the appropriate events to activate and deactivate
- * the embedded frame. This is needed in order to make keyboard
- * focus work properly for lightweights.
- */
- Listener listener = new Listener () {
- public void handleEvent (Event e) {
- switch (e.type) {
- case SWT.Dispose:
- Shell shell = parent.getShell ();
- shell.removeListener (SWT.Deiconify, shellListener);
- shell.removeListener (SWT.Iconify, shellListener);
- parent.setVisible(false);
- EventQueue.invokeLater(new Runnable () {
- public void run () {
- try {
- frame.dispose ();
- } catch (Throwable e) {}
- }
- });
- break;
- case SWT.FocusIn:
- EventQueue.invokeLater(new Runnable () {
- public void run () {
- if (frame.isActive()) return;
- try {
- Class clazz = frame.getClass();
- Method method = clazz.getMethod("synthesizeWindowActivation", new Class[]{boolean.class});
- if (method != null) method.invoke(frame, new Object[]{new Boolean(true)});
- } catch (Throwable e) {e.printStackTrace();}
- }
- });
- break;
- case SWT.Deactivate:
- EventQueue.invokeLater(new Runnable () {
- public void run () {
- if (!frame.isActive()) return;
- try {
- Class clazz = frame.getClass();
- Method method = clazz.getMethod("synthesizeWindowActivation", new Class[]{boolean.class});
- if (method != null) method.invoke(frame, new Object[]{new Boolean(false)});
- } catch (Throwable e) {e.printStackTrace();}
- }
- });
- break;
+ }
+ };
+
+ parent.addListener (SWT.FocusIn, listener);
+ parent.addListener (SWT.Deactivate, listener);
+ parent.addListener (SWT.Dispose, listener);
+
+ parent.getDisplay().asyncExec(new Runnable() {
+ public void run () {
+ if (parent.isDisposed()) return;
+ final Rectangle clientArea = parent.getClientArea();
+ EventQueue.invokeLater(new Runnable () {
+ public void run () {
+ frame.setSize (clientArea.width, clientArea.height);
+ frame.validate();
+
+ // Bug in Cocoa AWT? For some reason the frame isn't showing up on first draw.
+ // Toggling visibility seems to be the only thing that works.
+ frame.setVisible(false);
+ frame.setVisible(true);
}
- }
- };
-
- parent.addListener (SWT.FocusIn, listener);
- parent.addListener (SWT.Deactivate, listener);
- parent.addListener (SWT.Dispose, listener);
-
- parent.getDisplay().asyncExec(new Runnable() {
- public void run () {
- if (parent.isDisposed()) return;
- final Rectangle clientArea = parent.getClientArea();
- EventQueue.invokeLater(new Runnable () {
- public void run () {
- frame.setSize (clientArea.width, clientArea.height);
- frame.validate();
-
- // Bug in Cocoa AWT? For some reason the frame isn't showing up on first draw.
- // Toggling visibility seems to be the only thing that works.
- frame.setVisible(false);
- frame.setVisible(true);
- }
- });
- }
- });
-
- return frame;
+ });
+ }
+ });
+
+ return frame;
+}
+
+/**
+ * Creates a new Shell
. This Shell is the root for
+ * the SWT widgets that will be embedded within the AWT canvas.
+ *
+ * @param display the display for the new Shell
+ * @param parent the parent java.awt.Canvas
of the new Shell
+ * @return a Shell
to be the parent of the embedded SWT widgets
+ *
+ * @exception IllegalArgumentException
+ *
+ *
+ * @since 3.0
+ */
+public static Shell new_Shell(final Display display, final Canvas parent) {
+ if (display == null) SWT.error (SWT.ERROR_NULL_ARGUMENT);
+ if (parent == null) SWT.error (SWT.ERROR_NULL_ARGUMENT);
+ int /*long*/ handle = 0;
+
+ try {
+ loadLibrary ();
+ handle = getAWTHandle (parent);
+ } catch (Throwable e) {
+ SWT.error (SWT.ERROR_NOT_IMPLEMENTED, e);
}
+ if (handle == 0) SWT.error (SWT.ERROR_INVALID_ARGUMENT, null, " [peer not created]");
- /**
- * Creates a new Shell
. This Shell is the root for
- * the SWT widgets that will be embedded within the AWT canvas.
- *
- * @param display the display for the new Shell
- * @param parent the parent java.awt.Canvas
of the new Shell
- * @return a Shell
to be the parent of the embedded SWT widgets
- *
- * @exception IllegalArgumentException
- *
- *
- * @since 3.0
- */
- public static Shell new_Shell(final Display display, final Canvas parent) {
- if (display == null) SWT.error (SWT.ERROR_NULL_ARGUMENT);
- if (parent == null) SWT.error (SWT.ERROR_NULL_ARGUMENT);
- int /*long*/ handle = 0;
-
- try {
- loadLibrary ();
- handle = getAWTHandle (parent);
- } catch (Throwable e) {
- SWT.error (SWT.ERROR_NOT_IMPLEMENTED, e);
+ final Shell shell = Shell.cocoa_new (display, handle);
+ final ComponentListener listener = new ComponentAdapter () {
+ public void componentResized (ComponentEvent e) {
+ display.asyncExec (new Runnable () {
+ public void run () {
+ if (shell.isDisposed()) return;
+ Dimension dim = parent.getSize ();
+ shell.setSize (dim.width, dim.height);
+ }
+ });
}
- if (handle == 0) SWT.error (SWT.ERROR_INVALID_ARGUMENT, null, " [peer not created]");
-
- final Shell shell = Shell.cocoa_new (display, handle);
- final ComponentListener listener = new ComponentAdapter () {
- public void componentResized (ComponentEvent e) {
- display.asyncExec (new Runnable () {
- public void run () {
- if (shell.isDisposed()) return;
- Dimension dim = parent.getSize ();
- shell.setSize (dim.width, dim.height);
- }
- });
- }
- };
- parent.addComponentListener(listener);
- shell.addListener(SWT.Dispose, new Listener() {
- public void handleEvent(Event event) {
- parent.removeComponentListener(listener);
- }
- });
- shell.setVisible (true);
- return shell;
- }
+ };
+ parent.addComponentListener(listener);
+ shell.addListener(SWT.Dispose, new Listener() {
+ public void handleEvent(Event event) {
+ parent.removeComponentListener(listener);
+ }
+ });
+ shell.setVisible (true);
+ return shell;
+}
}
\ No newline at end of file
diff --git a/bundles/org.eclipse.swt/Eclipse SWT Accessibility/carbon/org/eclipse/swt/accessibility/Accessible.java b/bundles/org.eclipse.swt/Eclipse SWT Accessibility/carbon/org/eclipse/swt/accessibility/Accessible.java
index 0f439c79e2..c89cf209a6 100644
--- a/bundles/org.eclipse.swt/Eclipse SWT Accessibility/carbon/org/eclipse/swt/accessibility/Accessible.java
+++ b/bundles/org.eclipse.swt/Eclipse SWT Accessibility/carbon/org/eclipse/swt/accessibility/Accessible.java
@@ -94,6 +94,7 @@ public class Accessible {
* AccessibleAction
interface.
+ * defined in the AccessibleActionListener
interface.
*
* @param listener the listener that should be notified when the receiver
- * is asked for AccessibleAction
interface properties
+ * is asked for AccessibleActionListener
interface properties
*
* @exception IllegalArgumentException
*
AccessibleEditableText
interface.
+ * defined in the AccessibleEditableTextListener
interface.
*
* @param listener the listener that should be notified when the receiver
- * is asked for AccessibleEditableText
interface properties
+ * is asked for AccessibleEditableTextListener
interface properties
*
* @exception IllegalArgumentException
*
AccessibleHyperlink
interface.
+ * defined in the AccessibleHyperlinkListener
interface.
*
* @param listener the listener that should be notified when the receiver
- * is asked for AccessibleHyperlink
interface properties
+ * is asked for AccessibleHyperlinkListener
interface properties
*
* @exception IllegalArgumentException
*
AccessibleTable
interface.
+ * defined in the AccessibleTableListener
interface.
*
* @param listener the listener that should be notified when the receiver
- * is asked for AccessibleTable
interface properties
+ * is asked for AccessibleTableListener
interface properties
*
* @exception IllegalArgumentException
*
AccessibleTableCell
interface.
+ * defined in the AccessibleTableCellListener
interface.
*
* @param listener the listener that should be notified when the receiver
- * is asked for AccessibleTableCell
interface properties
+ * is asked for AccessibleTableCellListener
interface properties
*
* @exception IllegalArgumentException
*
AccessibleValue
interface.
+ * defined in the AccessibleValueListener
interface.
*
* @param listener the listener that should be notified when the receiver
- * is asked for AccessibleValue
interface properties
+ * is asked for AccessibleValueListener
interface properties
*
* @exception IllegalArgumentException
*
AccessibleAttribute
interface.
+ * defined in the AccessibleAttributeListener
interface.
*
* @param listener the listener that should be notified when the receiver
- * is asked for AccessibleAttribute
interface properties
+ * is asked for AccessibleAttributeListener
interface properties
*
* @exception IllegalArgumentException
*
AccessibleAction
interface.
+ * defined in the AccessibleActionListener
interface.
*
* @param listener the listener that should no longer be notified when the receiver
- * is asked for AccessibleAction
interface properties
+ * is asked for AccessibleActionListener
interface properties
*
* @exception IllegalArgumentException
*
AccessibleEditableText
interface.
+ * defined in the AccessibleEditableTextListener
interface.
*
* @param listener the listener that should no longer be notified when the receiver
- * is asked for AccessibleEditableText
interface properties
+ * is asked for AccessibleEditableTextListener
interface properties
*
* @exception IllegalArgumentException
*
AccessibleHyperlink
interface.
+ * defined in the AccessibleHyperlinkListener
interface.
*
* @param listener the listener that should no longer be notified when the receiver
- * is asked for AccessibleHyperlink
interface properties
+ * is asked for AccessibleHyperlinkListener
interface properties
*
* @exception IllegalArgumentException
*
AccessibleTable
interface.
+ * defined in the AccessibleTableListener
interface.
*
* @param listener the listener that should no longer be notified when the receiver
- * is asked for AccessibleTable
interface properties
+ * is asked for AccessibleTableListener
interface properties
*
* @exception IllegalArgumentException
*
AccessibleTableCell
interface.
+ * defined in the AccessibleTableCellListener
interface.
*
* @param listener the listener that should no longer be notified when the receiver
- * is asked for AccessibleTableCell
interface properties
+ * is asked for AccessibleTableCellListener
interface properties
*
* @exception IllegalArgumentException
*
AccessibleValue
interface.
+ * defined in the AccessibleValueListener
interface.
*
* @param listener the listener that should no longer be notified when the receiver
- * is asked for AccessibleValue
interface properties
+ * is asked for AccessibleValueListener
interface properties
*
* @exception IllegalArgumentException
*
AccessibleAttribute
interface.
+ * defined in the AccessibleAttributeListener
interface.
*
* @param listener the listener that should no longer be notified when the receiver
- * is asked for AccessibleAttribute
interface properties
+ * is asked for AccessibleAttributeListener
interface properties
*
* @exception IllegalArgumentException
*
ACC
constant beginning with EVENT_* indicating the message to send
* @param eventData an object containing event-specific data, or null if there is no event-specific data
+ * (eventData is specified in the documentation for individual ACC.EVENT_* constants)
*
* @exception SWTException
*
*
+ * @see #dispose
* @see Control#getAccessible
*
* @since 3.6
@@ -239,10 +240,10 @@ public class Accessible {
/**
* Adds the listener to the collection of listeners that will be
* notified when an accessible client asks for any of the properties
- * defined in the AccessibleAction
interface.
+ * defined in the AccessibleActionListener
interface.
*
* @param listener the listener that should be notified when the receiver
- * is asked for AccessibleAction
interface properties
+ * is asked for AccessibleActionListener
interface properties
*
* @exception IllegalArgumentException
*
AccessibleEditableText
interface.
+ * defined in the AccessibleEditableTextListener
interface.
*
* @param listener the listener that should be notified when the receiver
- * is asked for AccessibleEditableText
interface properties
+ * is asked for AccessibleEditableTextListener
interface properties
*
* @exception IllegalArgumentException
*
AccessibleHyperlink
interface.
+ * defined in the AccessibleHyperlinkListener
interface.
*
* @param listener the listener that should be notified when the receiver
- * is asked for AccessibleHyperlink
interface properties
+ * is asked for AccessibleHyperlinkListener
interface properties
*
* @exception IllegalArgumentException
*
AccessibleTable
interface.
+ * defined in the AccessibleTableListener
interface.
*
* @param listener the listener that should be notified when the receiver
- * is asked for AccessibleTable
interface properties
+ * is asked for AccessibleTableListener
interface properties
*
* @exception IllegalArgumentException
*
AccessibleTableCell
interface.
+ * defined in the AccessibleTableCellListener
interface.
*
* @param listener the listener that should be notified when the receiver
- * is asked for AccessibleTableCell
interface properties
+ * is asked for AccessibleTableCellListener
interface properties
*
* @exception IllegalArgumentException
*
AccessibleValue
interface.
+ * defined in the AccessibleValueListener
interface.
*
* @param listener the listener that should be notified when the receiver
- * is asked for AccessibleValue
interface properties
+ * is asked for AccessibleValueListener
interface properties
*
* @exception IllegalArgumentException
*
AccessibleAttribute
interface.
+ * defined in the AccessibleAttributeListener
interface.
*
* @param listener the listener that should be notified when the receiver
- * is asked for AccessibleAttribute
interface properties
+ * is asked for AccessibleAttributeListener
interface properties
*
* @exception IllegalArgumentException
*
AccessibleAction
interface.
+ * defined in the AccessibleActionListener
interface.
*
* @param listener the listener that should no longer be notified when the receiver
- * is asked for AccessibleAction
interface properties
+ * is asked for AccessibleActionListener
interface properties
*
* @exception IllegalArgumentException
*
AccessibleEditableText
interface.
+ * defined in the AccessibleEditableTextListener
interface.
*
* @param listener the listener that should no longer be notified when the receiver
- * is asked for AccessibleEditableText
interface properties
+ * is asked for AccessibleEditableTextListener
interface properties
*
* @exception IllegalArgumentException
*
AccessibleHyperlink
interface.
+ * defined in the AccessibleHyperlinkListener
interface.
*
* @param listener the listener that should no longer be notified when the receiver
- * is asked for AccessibleHyperlink
interface properties
+ * is asked for AccessibleHyperlinkListener
interface properties
*
* @exception IllegalArgumentException
*
AccessibleTable
interface.
+ * defined in the AccessibleTableListener
interface.
*
* @param listener the listener that should no longer be notified when the receiver
- * is asked for AccessibleTable
interface properties
+ * is asked for AccessibleTableListener
interface properties
*
* @exception IllegalArgumentException
*
AccessibleTableCell
interface.
+ * defined in the AccessibleTableCellListener
interface.
*
* @param listener the listener that should no longer be notified when the receiver
- * is asked for AccessibleTableCell
interface properties
+ * is asked for AccessibleTableCellListener
interface properties
*
* @exception IllegalArgumentException
*
AccessibleValue
interface.
+ * defined in the AccessibleValueListener
interface.
*
* @param listener the listener that should no longer be notified when the receiver
- * is asked for AccessibleValue
interface properties
+ * is asked for AccessibleValueListener
interface properties
*
* @exception IllegalArgumentException
*
AccessibleAttribute
interface.
+ * defined in the AccessibleAttributeListener
interface.
*
* @param listener the listener that should no longer be notified when the receiver
- * is asked for AccessibleAttribute
interface properties
+ * is asked for AccessibleAttributeListener
interface properties
*
* @exception IllegalArgumentException
*
ACC
constant beginning with EVENT_* indicating the message to send
* @param eventData an object containing event-specific data, or null if there is no event-specific data
+ * (eventData is specified in the documentation for individual ACC.EVENT_* constants)
*
* @exception SWTException
*
*
+ * @see #dispose
* @see Control#getAccessible
*
* @since 3.6
@@ -233,10 +234,10 @@ public class Accessible {
/**
* Adds the listener to the collection of listeners that will be
* notified when an accessible client asks for any of the properties
- * defined in the AccessibleAction
interface.
+ * defined in the AccessibleActionListener
interface.
*
* @param listener the listener that should be notified when the receiver
- * is asked for AccessibleAction
interface properties
+ * is asked for AccessibleActionListener
interface properties
*
* @exception IllegalArgumentException
*
AccessibleEditableText
interface.
+ * defined in the AccessibleEditableTextListener
interface.
*
* @param listener the listener that should be notified when the receiver
- * is asked for AccessibleEditableText
interface properties
+ * is asked for AccessibleEditableTextListener
interface properties
*
* @exception IllegalArgumentException
*
AccessibleHyperlink
interface.
+ * defined in the AccessibleHyperlinkListener
interface.
*
* @param listener the listener that should be notified when the receiver
- * is asked for AccessibleHyperlink
interface properties
+ * is asked for AccessibleHyperlinkListener
interface properties
*
* @exception IllegalArgumentException
*
AccessibleTable
interface.
+ * defined in the AccessibleTableListener
interface.
*
* @param listener the listener that should be notified when the receiver
- * is asked for AccessibleTable
interface properties
+ * is asked for AccessibleTableListener
interface properties
*
* @exception IllegalArgumentException
*
AccessibleTableCell
interface.
+ * defined in the AccessibleTableCellListener
interface.
*
* @param listener the listener that should be notified when the receiver
- * is asked for AccessibleTableCell
interface properties
+ * is asked for AccessibleTableCellListener
interface properties
*
* @exception IllegalArgumentException
*
AccessibleValue
interface.
+ * defined in the AccessibleValueListener
interface.
*
* @param listener the listener that should be notified when the receiver
- * is asked for AccessibleValue
interface properties
+ * is asked for AccessibleValueListener
interface properties
*
* @exception IllegalArgumentException
*
AccessibleAttribute
interface.
+ * defined in the AccessibleAttributeListener
interface.
*
* @param listener the listener that should be notified when the receiver
- * is asked for AccessibleAttribute
interface properties
+ * is asked for AccessibleAttributeListener
interface properties
*
* @exception IllegalArgumentException
*
AccessibleAction
interface.
+ * defined in the AccessibleActionListener
interface.
*
* @param listener the listener that should no longer be notified when the receiver
- * is asked for AccessibleAction
interface properties
+ * is asked for AccessibleActionListener
interface properties
*
* @exception IllegalArgumentException
*
AccessibleEditableText
interface.
+ * defined in the AccessibleEditableTextListener
interface.
*
* @param listener the listener that should no longer be notified when the receiver
- * is asked for AccessibleEditableText
interface properties
+ * is asked for AccessibleEditableTextListener
interface properties
*
* @exception IllegalArgumentException
*
AccessibleHyperlink
interface.
+ * defined in the AccessibleHyperlinkListener
interface.
*
* @param listener the listener that should no longer be notified when the receiver
- * is asked for AccessibleHyperlink
interface properties
+ * is asked for AccessibleHyperlinkListener
interface properties
*
* @exception IllegalArgumentException
*
AccessibleTable
interface.
+ * defined in the AccessibleTableListener
interface.
*
* @param listener the listener that should no longer be notified when the receiver
- * is asked for AccessibleTable
interface properties
+ * is asked for AccessibleTableListener
interface properties
*
* @exception IllegalArgumentException
*
AccessibleTableCell
interface.
+ * defined in the AccessibleTableCellListener
interface.
*
* @param listener the listener that should no longer be notified when the receiver
- * is asked for AccessibleTableCell
interface properties
+ * is asked for AccessibleTableCellListener
interface properties
*
* @exception IllegalArgumentException
*
AccessibleValue
interface.
+ * defined in the AccessibleValueListener
interface.
*
* @param listener the listener that should no longer be notified when the receiver
- * is asked for AccessibleValue
interface properties
+ * is asked for AccessibleValueListener
interface properties
*
* @exception IllegalArgumentException
*
AccessibleAttribute
interface.
+ * defined in the AccessibleAttributeListener
interface.
*
* @param listener the listener that should no longer be notified when the receiver
- * is asked for AccessibleAttribute
interface properties
+ * is asked for AccessibleAttributeListener
interface properties
*
* @exception IllegalArgumentException
*
ACC
constant beginning with EVENT_* indicating the message to send
* @param eventData an object containing event-specific data, or null if there is no event-specific data
+ * (eventData is specified in the documentation for individual ACC.EVENT_* constants)
*
* @exception SWTException
*
*
+ * @see #dispose
* @see Control#getAccessible
*
* @since 3.6
@@ -210,10 +211,10 @@ public class Accessible {
/**
* Adds the listener to the collection of listeners that will be
* notified when an accessible client asks for any of the properties
- * defined in the AccessibleAction
interface.
+ * defined in the AccessibleActionListener
interface.
*
* @param listener the listener that should be notified when the receiver
- * is asked for AccessibleAction
interface properties
+ * is asked for AccessibleActionListener
interface properties
*
* @exception IllegalArgumentException
*
AccessibleEditableText
interface.
+ * defined in the AccessibleEditableTextListener
interface.
*
* @param listener the listener that should be notified when the receiver
- * is asked for AccessibleEditableText
interface properties
+ * is asked for AccessibleEditableTextListener
interface properties
*
* @exception IllegalArgumentException
*
AccessibleHyperlink
interface.
+ * defined in the AccessibleHyperlinkListener
interface.
*
* @param listener the listener that should be notified when the receiver
- * is asked for AccessibleHyperlink
interface properties
+ * is asked for AccessibleHyperlinkListener
interface properties
*
* @exception IllegalArgumentException
*
AccessibleTable
interface.
+ * defined in the AccessibleTableListener
interface.
*
* @param listener the listener that should be notified when the receiver
- * is asked for AccessibleTable
interface properties
+ * is asked for AccessibleTableListener
interface properties
*
* @exception IllegalArgumentException
*
AccessibleTableCell
interface.
+ * defined in the AccessibleTableCellListener
interface.
*
* @param listener the listener that should be notified when the receiver
- * is asked for AccessibleTableCell
interface properties
+ * is asked for AccessibleTableCellListener
interface properties
*
* @exception IllegalArgumentException
*
AccessibleValue
interface.
+ * defined in the AccessibleValueListener
interface.
*
* @param listener the listener that should be notified when the receiver
- * is asked for AccessibleValue
interface properties
+ * is asked for AccessibleValueListener
interface properties
*
* @exception IllegalArgumentException
*
AccessibleAttribute
interface.
+ * defined in the AccessibleAttributeListener
interface.
*
* @param listener the listener that should be notified when the receiver
- * is asked for AccessibleAttribute
interface properties
+ * is asked for AccessibleAttributeListener
interface properties
*
* @exception IllegalArgumentException
*
AccessibleAction
interface.
+ * defined in the AccessibleActionListener
interface.
*
* @param listener the listener that should no longer be notified when the receiver
- * is asked for AccessibleAction
interface properties
+ * is asked for AccessibleActionListener
interface properties
*
* @exception IllegalArgumentException
*
AccessibleEditableText
interface.
+ * defined in the AccessibleEditableTextListener
interface.
*
* @param listener the listener that should no longer be notified when the receiver
- * is asked for AccessibleEditableText
interface properties
+ * is asked for AccessibleEditableTextListener
interface properties
*
* @exception IllegalArgumentException
*
AccessibleHyperlink
interface.
+ * defined in the AccessibleHyperlinkListener
interface.
*
* @param listener the listener that should no longer be notified when the receiver
- * is asked for AccessibleHyperlink
interface properties
+ * is asked for AccessibleHyperlinkListener
interface properties
*
* @exception IllegalArgumentException
*
AccessibleTable
interface.
+ * defined in the AccessibleTableListener
interface.
*
* @param listener the listener that should no longer be notified when the receiver
- * is asked for AccessibleTable
interface properties
+ * is asked for AccessibleTableListener
interface properties
*
* @exception IllegalArgumentException
*
AccessibleTableCell
interface.
+ * defined in the AccessibleTableCellListener
interface.
*
* @param listener the listener that should no longer be notified when the receiver
- * is asked for AccessibleTableCell
interface properties
+ * is asked for AccessibleTableCellListener
interface properties
*
* @exception IllegalArgumentException
*
AccessibleValue
interface.
+ * defined in the AccessibleValueListener
interface.
*
* @param listener the listener that should no longer be notified when the receiver
- * is asked for AccessibleValue
interface properties
+ * is asked for AccessibleValueListener
interface properties
*
* @exception IllegalArgumentException
*
AccessibleAttribute
interface.
+ * defined in the AccessibleAttributeListener
interface.
*
* @param listener the listener that should no longer be notified when the receiver
- * is asked for AccessibleAttribute
interface properties
+ * is asked for AccessibleAttributeListener
interface properties
*
* @exception IllegalArgumentException
*
ACC
constant beginning with EVENT_* indicating the message to send
* @param eventData an object containing event-specific data, or null if there is no event-specific data
+ * (eventData is specified in the documentation for individual ACC.EVENT_* constants)
*
* @exception SWTException
*
+ *
+ *
+ * @since 3.1
+ */
+public void clearContents() {
+ clearContents(DND.CLIPBOARD);
+}
+
+/**
+ * If this clipboard is currently the owner of the data on the specified
+ * clipboard, clear the contents. If this clipboard is not the owner, then
+ * nothing is done.
+ *
+ * DND
, or must be built by bitwise OR'ing together
+ * (that is, using the int
"|" operator) two or more
+ * of those DND
clipboard constants.
+ *
+ *
+ * @see DND#CLIPBOARD
+ * @see DND#SELECTION_CLIPBOARD
+ *
+ * @since 3.1
+ */
+public void clearContents(int clipboards) {
+ checkWidget();
+}
+
/**
* Disposes of the operating system resources associated with the clipboard.
* The data will still be available on the system clipboard after the dispose
@@ -387,6 +435,34 @@ public TransferData[] getAvailableTypes() {
return new TransferData[0];
}
+/**
+ * Returns an array of the data types currently available on the specified
+ * clipboard. Use with Transfer.isSupportedType.
+ *
+ * DND
, or must be built by bitwise OR'ing together
+ * (that is, using the int
"|" operator) two or more
+ * of those DND
clipboard constants.
+ *
+ *
+ * @see Transfer#isSupportedType
+ * @see DND#CLIPBOARD
+ * @see DND#SELECTION_CLIPBOARD
+ *
+ * @since 3.1
+ */
+public TransferData[] getAvailableTypes(int clipboards) {
+ checkWidget();
+ return new TransferData[0];
+}
+
/**
* Returns a platform specific list of the data types currently available on the
* system clipboard.
diff --git a/bundles/org.eclipse.swt/Eclipse SWT Printing/carbon/org/eclipse/swt/printing/Printer.java b/bundles/org.eclipse.swt/Eclipse SWT Printing/carbon/org/eclipse/swt/printing/Printer.java
index 7b12bbdbb9..9b0308b6c0 100644
--- a/bundles/org.eclipse.swt/Eclipse SWT Printing/carbon/org/eclipse/swt/printing/Printer.java
+++ b/bundles/org.eclipse.swt/Eclipse SWT Printing/carbon/org/eclipse/swt/printing/Printer.java
@@ -162,7 +162,7 @@ static int unpackData(int[] handle, byte[] buffer, int offset) {
*
GestureListener
interface.
*
* @param listener the listener which should be notified
@@ -481,6 +481,8 @@ public void addPaintListener(PaintListener listener) {
* windowing toolkit that you want touch events to be generated.
*
*
+ * @param listener the listener which should be notified
+ *
* @exception IllegalArgumentException * If this is the first time this object is requested, - * then the object is created and returned. + * then the object is created and returned. The object + * returned by getAccessible() does not need to be disposed. + *
* * @return the accessible object * @@ -1384,6 +1390,19 @@ public Monitor getMonitor () { return monitors [index]; } +/** + * Returns the orientation of the receiver, which will be one of the + * constantsSWT.LEFT_TO_RIGHT
or SWT.RIGHT_TO_LEFT
.
+ *
+ * @return the orientation style
+ *
+ * @exception SWTException SWT.LEFT_TO_RIGHT
or SWT.RIGHT_TO_LEFT
.
+ * + * + * @param orientation new orientation style + * + * @exception SWTException
TouchListener
instances
- * registered for the control.
- *
- * @param enabled the new touch-enabled state.
- *
+ * Sets whether the receiver should accept touch events. By default, a Control does not accept touch
+ * events. No error or exception is thrown if the underlying hardware does not support touch input.
+ *
+ * @param enabled the new touch-enabled state
+ *
* @exception SWTException null
*
* @exception SWTException null
*
* @exception SWTException SWT.LEFT_TO_RIGHT
or SWT.RIGHT_TO_LEFT
.
+ *
+ * @return the orientation style
+ *
+ * @exception SWTException SWT.LEFT_TO_RIGHT
or SWT.RIGHT_TO_LEFT
.
+ * + * + * @param orientation new orientation style + * + * @exception SWTException
SEPARATOR
ToolItems.
*
- * @param width the new width
+ * @param width the new width. If the new value is SWT.DEFAULT
,
+ * the width is a fixed-width area whose amount is determined by the platform.
+ * If the new value is 0 a vertical or horizontal line will be drawn, depending
+ * on the setting of the corresponding style bit (SWT.VERTICAL
or
+ * SWT.HORIZONTAL
). If the new value is SWT.SEPARATOR_FILL
+ * a variable-width space is inserted that acts as a spring between the two adjoining
+ * items which will push them out to the extent of the containing ToolBar.
+ *
*
* @exception SWTException GestureListener
interface.
*
* @param listener the listener which should be notified
@@ -666,6 +666,8 @@ void addTraits(NSMutableDictionary dict, Font font) {
* windowing toolkit that you want touch events to be generated.
*
*
+ * @param listener the listener which should be notified
+ *
* @exception IllegalArgumentException * If this is the first time this object is requested, - * then the object is created and returned. + * then the object is created and returned. The object + * returned by getAccessible() does not need to be disposed. + *
* * @return the accessible object * @@ -1784,6 +1790,16 @@ public Monitor getMonitor () { } /** + * Returns the orientation of the receiver, which will be one of the + * constantsSWT.LEFT_TO_RIGHT
or SWT.RIGHT_TO_LEFT
.
+ *
+ * @return the orientation style
+ *
+ * @exception SWTException SWT.LEFT_TO_RIGHT
or SWT.RIGHT_TO_LEFT
.
+ * + * + * @param orientation new orientation style + * + * @exception SWTException
TouchListener
instances
- * registered for the control.
- *
- * @param enabled the new touch-enabled state.
- *
+ * Sets whether the receiver should accept touch events. By default, a Control does not accept touch
+ * events. No error or exception is thrown if the underlying hardware does not support touch input.
+ *
+ * @param enabled the new touch-enabled state
+ *
* @exception SWTException null
*
* @exception SWTException null
*
* @exception SWTException SWT.LEFT_TO_RIGHT
or SWT.RIGHT_TO_LEFT
.
+ *
+ * @return the orientation style
+ *
+ * @exception SWTException SWT.LEFT_TO_RIGHT
or SWT.RIGHT_TO_LEFT
.
+ * + * + * @param orientation new orientation style + * + * @exception SWTException
SWT.LEFT_TO_RIGHT
or SWT.RIGHT_TO_LEFT
.
+ *
+ * @return the orientation style
+ *
+ * @exception SWTException * If this is the first time this object is requested, - * then the object is created and returned. + * then the object is created and returned. The object + * returned by getAccessible() does not need to be disposed. + *
* * @return the accessible object * @@ -1398,7 +1414,7 @@ public void addFocusListener(FocusListener listener) { /** * Adds the listener to the collection of listeners who will * be notified when gesture events are generated for the control, - * by sending it one of the messages defined in the + * by sending it one of the messages defined in the *GestureListener
interface.
*
* @param listener the listener which should be notified
@@ -1664,6 +1680,8 @@ void addRelation (Control control) {
* windowing toolkit that you want touch events to be generated.
*
*
+ * @param listener the listener which should be notified
+ *
* @exception IllegalArgumentException SWT.LEFT_TO_RIGHT
or SWT.RIGHT_TO_LEFT
.
+ * + * + * @param orientation new orientation style + * + * @exception SWTException
TouchListener
instances
- * registered for the control.
- *
- * @param enabled the new touch-enabled state.
- *
+ * Sets whether the receiver should accept touch events. By default, a Control does not accept touch
+ * events. No error or exception is thrown if the underlying hardware does not support touch input.
+ *
+ * @param enabled the new touch-enabled state
+ *
* @exception SWTException null
*
* @exception SWTException null
*
* @exception SWTException SWT.LEFT_TO_RIGHT
or SWT.RIGHT_TO_LEFT
.
+ *
+ * @return the orientation style
+ *
+ * @exception SWTException SWT.LEFT_TO_RIGHT
or SWT.RIGHT_TO_LEFT
.
+ * + * + * @param orientation new orientation style + * + * @exception SWTException
SEPARATOR
ToolItems.
*
- * @param width the new width
+ * @param width the new width. If the new value is SWT.DEFAULT
,
+ * the width is a fixed-width area whose amount is determined by the platform.
+ * If the new value is 0 a vertical or horizontal line will be drawn, depending
+ * on the setting of the corresponding style bit (SWT.VERTICAL
or
+ * SWT.HORIZONTAL
). If the new value is SWT.SEPARATOR_FILL
+ * a variable-width space is inserted that acts as a spring between the two adjoining
+ * items which will push them out to the extent of the containing ToolBar.
+ *
*
* @exception SWTException GestureListener
interface.
*
* @param listener the listener which should be notified
@@ -427,6 +427,8 @@ public void addPaintListener(PaintListener listener) {
* windowing toolkit that you want touch events to be generated.
*
*
+ * @param listener the listener which should be notified
+ *
* @exception IllegalArgumentException * If this is the first time this object is requested, - * then the object is created and returned. + * then the object is created and returned. The object + * returned by getAccessible() does not need to be disposed. + *
* * @return the accessible object * @@ -1270,6 +1276,19 @@ int getNavigationType () { return argList [1]; } +/** + * Returns the orientation of the receiver, which will be one of the + * constantsSWT.LEFT_TO_RIGHT
or SWT.RIGHT_TO_LEFT
.
+ *
+ * @return the orientation style
+ *
+ * @exception SWTException SWT.LEFT_TO_RIGHT
or SWT.RIGHT_TO_LEFT
.
+ * + * + * @param orientation new orientation style + * + * @exception SWTException
TouchListener
instances
- * registered for the control.
- *
- * @param enabled the new touch-enabled state.
- *
+ * Sets whether the receiver should accept touch events. By default, a Control does not accept touch
+ * events. No error or exception is thrown if the underlying hardware does not support touch input.
+ *
+ * @param enabled the new touch-enabled state
+ *
* @exception SWTException null
*
* @exception SWTException null
*
* @exception SWTException SWT.LEFT_TO_RIGHT
or SWT.RIGHT_TO_LEFT
.
+ *
+ * @return the orientation style
+ *
+ * @exception SWTException SWT.LEFT_TO_RIGHT
or SWT.RIGHT_TO_LEFT
.
+ * + * + * @param orientation new orientation style + * + * @exception SWTException
SEPARATOR
ToolItems.
*
- * @param width the new width
+ * @param width the new width. If the new value is SWT.DEFAULT
,
+ * the width is a fixed-width area whose amount is determined by the platform.
+ * If the new value is 0 a vertical or horizontal line will be drawn, depending
+ * on the setting of the corresponding style bit (SWT.VERTICAL
or
+ * SWT.HORIZONTAL
). If the new value is SWT.SEPARATOR_FILL
+ * a variable-width space is inserted that acts as a spring between the two adjoining
+ * items which will push them out to the extent of the containing ToolBar.
+ *
*
* @exception SWTException GestureListener
interface.
*
* @param listener the listener which should be notified
@@ -441,6 +441,8 @@ public void addPaintListener (PaintListener listener) {
* windowing toolkit that you want touch events to be generated.
*
*
+ * @param listener the listener which should be notified
+ *
* @exception IllegalArgumentException * If this is the first time this object is requested, - * then the object is created and returned. + * then the object is created and returned. The object + * returned by getAccessible() does not need to be disposed. + *
* * @return the accessible object * @@ -1143,6 +1149,24 @@ public Monitor getMonitor () { return monitors [index]; } +/** + * Returns the orientation of the receiver, which will be one of the + * constantsSWT.LEFT_TO_RIGHT
or SWT.RIGHT_TO_LEFT
.
+ *
+ * @return the orientation style
+ *
+ * @exception SWTException Composite
* or null when the receiver is a shell that was created with null or
@@ -2150,7 +2174,7 @@ public void removeFocusListener(FocusListener listener) {
/**
* Removes the listener from the collection of listeners who will
- * be notified when a gesture is performed on the control
+ * be notified when gesture events are generated for the control.
*
* @param listener the listener which should no longer be notified
*
@@ -2164,6 +2188,7 @@ public void removeFocusListener(FocusListener listener) {
*
* @see GestureListener
* @see #addGestureListener
+ *
* @since 3.7
*/
public void removeGestureListener (GestureListener listener) {
@@ -2391,6 +2416,7 @@ public void removePaintListener(PaintListener listener) {
*
* @see TouchListener
* @see #addTouchListener
+ *
* @since 3.7
*/
public void removeTouchListener(TouchListener listener) {
@@ -2894,6 +2920,24 @@ public void setMenu (Menu menu) {
this.menu = menu;
}
+/**
+ * Sets the orientation of the receiver, which must be one
+ * of the constants SWT.LEFT_TO_RIGHT
or SWT.RIGHT_TO_LEFT
.
+ * + * + * @param orientation new orientation style + * + * @exception SWTException
TouchListener
instances
- * registered for the control.
- *
- * @param enabled the new touch-enabled state.
- *
+ * Sets whether the receiver should accept touch events. By default, a Control does not accept touch
+ * events. No error or exception is thrown if the underlying hardware does not support touch input.
+ *
+ * @param enabled the new touch-enabled state
+ *
* @exception SWTException null
*
* @exception SWTException null
*
* @exception SWTException SWT.LEFT_TO_RIGHT
or SWT.RIGHT_TO_LEFT
.
+ *
+ * @return the orientation style
+ *
+ * @exception SWTException Decorations
.
*
@@ -803,6 +821,24 @@ public void setLocation (Point location) {
setLocation (location.x, location.y);
}
+/**
+ * Sets the orientation of the receiver, which must be one
+ * of the constants SWT.LEFT_TO_RIGHT
or SWT.RIGHT_TO_LEFT
.
+ * + * + * @param orientation new orientation style + * + * @exception SWTException
true
,
* and marks it invisible otherwise.
diff --git a/bundles/org.eclipse.swt/Eclipse SWT/photon/org/eclipse/swt/widgets/Text.java b/bundles/org.eclipse.swt/Eclipse SWT/photon/org/eclipse/swt/widgets/Text.java
index 9a7d1adbb0..846c272cc5 100755
--- a/bundles/org.eclipse.swt/Eclipse SWT/photon/org/eclipse/swt/widgets/Text.java
+++ b/bundles/org.eclipse.swt/Eclipse SWT/photon/org/eclipse/swt/widgets/Text.java
@@ -842,6 +842,7 @@ public String getText (int start, int end) {
* SEPARATOR
ToolItems.
*
- * @param width the new width
+ * @param width the new width. If the new value is SWT.DEFAULT
,
+ * the width is a fixed-width area whose amount is determined by the platform.
+ * If the new value is 0 a vertical or horizontal line will be drawn, depending
+ * on the setting of the corresponding style bit (SWT.VERTICAL
or
+ * SWT.HORIZONTAL
). If the new value is SWT.SEPARATOR_FILL
+ * a variable-width space is inserted that acts as a spring between the two adjoining
+ * items which will push them out to the extent of the containing ToolBar.
+ *
*
* @exception SWTException The offsetX
and offsetY
are used to map from
+ * the gc
origin to the origin of the parent image background. This is useful
+ * to ensure proper alignment of the image background.
GestureListener
interface.
*
* @param listener the listener which should be notified
@@ -448,6 +448,8 @@ public void addPaintListener (PaintListener listener) {
* windowing toolkit that you want touch events to be generated.
*
*
+ * @param listener the listener which should be notified
+ *
* @exception IllegalArgumentException * If this is the first time this object is requested, - * then the object is created and returned. + * then the object is created and returned. The object + * returned by getAccessible() does not need to be disposed. + *
* * @return the accessible object * @@ -1193,6 +1199,24 @@ public Monitor getMonitor () { return display.getPrimaryMonitor (); } +/** + * Returns the orientation of the receiver, which will be one of the + * constantsSWT.LEFT_TO_RIGHT
or SWT.RIGHT_TO_LEFT
.
+ *
+ * @return the orientation style
+ *
+ * @exception SWTException Composite
* or null when the receiver is a shell that was created with null or
@@ -2221,7 +2245,7 @@ public void removeFocusListener(FocusListener listener) {
/**
* Removes the listener from the collection of listeners who will
- * be notified when a gesture is performed on the control
+ * be notified when gesture events are generated for the control.
*
* @param listener the listener which should no longer be notified
*
@@ -2235,6 +2259,7 @@ public void removeFocusListener(FocusListener listener) {
*
* @see GestureListener
* @see #addGestureListener
+ *
* @since 3.7
*/
public void removeGestureListener (GestureListener listener) {
@@ -2462,6 +2487,7 @@ public void removePaintListener(PaintListener listener) {
*
* @see TouchListener
* @see #addTouchListener
+ *
* @since 3.7
*/
public void removeTouchListener(TouchListener listener) {
@@ -3276,18 +3302,15 @@ public void setTransform (Transform t) {
}
/**
- * Sets the receiver to receive touch events from the OS. By default, touch
- * events are not delivered to a control unless specifically requested for that control.
- * This is independent of whether or not there are any TouchListener
instances
- * registered for the control.
- *
- * @param enabled the new touch-enabled state.
- *
+ * Sets whether the receiver should accept touch events. By default, a Control does not accept touch
+ * events. No error or exception is thrown if the underlying hardware does not support touch input.
+ *
+ * @param enabled the new touch-enabled state
+ *
* @exception SWTException SWT.LEFT_TO_RIGHT
or SWT.RIGHT_TO_LEFT
.
+ * + * + * @param orientation new orientation style + * + * @exception SWTException
null
*
* @exception SWTException null
*
* @exception SWTException
@@ -2894,7 +2928,18 @@ public void setData (Object data) {
* @param name the new app name or null
*/
public static void setAppName (String name) {
- /* Do nothing */
+ APP_NAME = name;
+}
+
+/**
+ * Sets the application version to the argument.
+ *
+ * @param version the new app version
+ *
+ * @since 3.6
+ */
+public static void setAppVersion (String version) {
+ APP_VERSION = version;
}
//void setModalDialogShell (Shell modalDailog) {
diff --git a/bundles/org.eclipse.swt/Eclipse SWT/wpf/org/eclipse/swt/widgets/Menu.java b/bundles/org.eclipse.swt/Eclipse SWT/wpf/org/eclipse/swt/widgets/Menu.java
index 5130e87dec..d7fc61cd6d 100644
--- a/bundles/org.eclipse.swt/Eclipse SWT/wpf/org/eclipse/swt/widgets/Menu.java
+++ b/bundles/org.eclipse.swt/Eclipse SWT/wpf/org/eclipse/swt/widgets/Menu.java
@@ -490,6 +490,24 @@ String getNameText () {
return result;
}
+/**
+ * Returns the orientation of the receiver, which will be one of the
+ * constants SWT.LEFT_TO_RIGHT
or SWT.RIGHT_TO_LEFT
.
+ *
+ * @return the orientation style
+ *
+ * @exception SWTException
Decorations
.
*
@@ -894,6 +912,24 @@ void setNameScope() {
// DO NOTHING
}
+/**
+ * Sets the orientation of the receiver, which must be one
+ * of the constants SWT.LEFT_TO_RIGHT
or SWT.RIGHT_TO_LEFT
.
+ * + * + * @param orientation new orientation style + * + * @exception SWTException
true
,
* and marks it invisible otherwise.
diff --git a/bundles/org.eclipse.swt/Eclipse SWT/wpf/org/eclipse/swt/widgets/Text.java b/bundles/org.eclipse.swt/Eclipse SWT/wpf/org/eclipse/swt/widgets/Text.java
index 19bc1913b5..a1c1c41232 100644
--- a/bundles/org.eclipse.swt/Eclipse SWT/wpf/org/eclipse/swt/widgets/Text.java
+++ b/bundles/org.eclipse.swt/Eclipse SWT/wpf/org/eclipse/swt/widgets/Text.java
@@ -757,6 +757,7 @@ public String getText (int start, int end) {
* SEPARATOR
ToolItems.
*
- * @param width the new width
+ * @param width the new width. If the new value is SWT.DEFAULT
,
+ * the width is a fixed-width area whose amount is determined by the platform.
+ * If the new value is 0 a vertical or horizontal line will be drawn, depending
+ * on the setting of the corresponding style bit (SWT.VERTICAL
or
+ * SWT.HORIZONTAL
). If the new value is SWT.SEPARATOR_FILL
+ * a variable-width space is inserted that acts as a spring between the two adjoining
+ * items which will push them out to the extent of the containing ToolBar.
+ *
*
* @exception SWTException