From 5256cc2dda0b5a9ea09467009831c78f328e50f5 Mon Sep 17 00:00:00 2001
From: Carolyn MacLeod
SWT
:
* INHERIT_NONE
, INHERIT_DEFAULT
,
- * INHERTIT_FORCE
.
+ * INHERIT_FORCE
.
*
* @return the background mode
*
diff --git a/bundles/org.eclipse.swt/Eclipse SWT/cocoa/org/eclipse/swt/widgets/Control.java b/bundles/org.eclipse.swt/Eclipse SWT/cocoa/org/eclipse/swt/widgets/Control.java
index d27ffa40f2..79066812ed 100644
--- a/bundles/org.eclipse.swt/Eclipse SWT/cocoa/org/eclipse/swt/widgets/Control.java
+++ b/bundles/org.eclipse.swt/Eclipse SWT/cocoa/org/eclipse/swt/widgets/Control.java
@@ -23,7 +23,7 @@ import org.eclipse.swt.internal.cocoa.*;
* SWT.LEFT_TO_RIGHT
or SWT.RIGHT_TO_LEFT
.
+ *
+ * @return the text direction style
+ *
+ * @exception SWTException SWT.LEFT_TO_RIGHT
or
+ * SWT.RIGHT_TO_LEFT
.
+ *
+ * setOrientation
would override this value with the text direction
+ * that is consistent with the new orientation.
+ *
+ * Warning: This API is currently only implemented on Windows. + * It doesn't set the base text direction on GTK and Cocoa. + *
+ * + * @param textDirection the base text direction style + * + * @exception SWTException
- * A SegmentEvent
is sent whenever text content is being modified. The user can
- * customize appearance of text by indicating certain characters to be inserted
+ * A SegmentEvent
is sent whenever text content is being modified or
+ * a segment listener is added or removed. You can
+ * customize the appearance of text by indicating certain characters to be inserted
* at certain text offsets. This may be used for bidi purposes, e.g. when
* adjacent segments of right-to-left text should not be reordered relative to
* each other.
- * E.g., Multiple Java string literals in a right-to-left language
+ * E.g., multiple Java string literals in a right-to-left language
* should generally remain in logical order to each other, that is, the
* way they are stored.
- *
- * After SegmentListener is added, user may call setText(String)
- * for segments to take effect.
*
* Warning: This API is currently only implemented on Windows and GTK. @@ -1502,10 +1500,6 @@ public void removeModifyListener (ModifyListener listener) { /** * Removes the listener from the collection of listeners who will * be notified when the receiver's text is modified. - *
- * After SegmentListener is removed, user may call setText(String)
- * for segments to take effect.
- *
* If the item is not in the receiver, then it is ignored. *
@@ -3015,7 +3015,7 @@ public void setSelection (TreeItem item) { /** * Sets the receiver's selection to be the given array of items. * The current selection is cleared before the new items are selected, - * and if necessary, the receiver is scrolled to make the new selection visible. + * and if necessary the receiver is scrolled to make the new selection visible. ** Items that are not in the receiver are ignored. * If the receiver is single-select and multiple items are specified, diff --git a/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/graphics/GCData.java b/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/graphics/GCData.java index ce25efeaa7..89f3041560 100644 --- a/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/graphics/GCData.java +++ b/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/graphics/GCData.java @@ -24,15 +24,15 @@ import org.eclipse.swt.*; * platforms, and should never be called from application code. *
* @see Sample code and further information - * @noinstantiate This class is not intended to be instantiated by clients. + * @noreference This class is not intended to be referenced by clients */ public final class GCData { public Device device; public int style, state = -1; - /** - * @noreference This field is not intended to be referenced by clients. - */ - public GdkColor foreground, background; + + public GdkColor foreground; + + public GdkColor background; public Font font; public Pattern foregroundPattern; public Pattern backgroundPattern; @@ -48,9 +48,6 @@ public final class GCData { public int interpolation = SWT.DEFAULT; public Image image; - /** - * @noreference This field is not intended to be referenced by clients. - */ public long /*int*/ clipRgn, context, layout, damageRgn, drawable, cairo; public double cairoXoffset, cairoYoffset; public boolean disposeCairo; diff --git a/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Canvas.java b/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Canvas.java index 014d4d72b7..d7fe3d2e65 100644 --- a/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Canvas.java +++ b/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Canvas.java @@ -68,7 +68,6 @@ Canvas () {} * * * @see SWT - * @see Widget#checkSubclass * @see Widget#getStyle */ public Canvas (Composite parent, int style) { diff --git a/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Composite.java b/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Composite.java index fb70ae8257..23d6790df8 100644 --- a/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Composite.java +++ b/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Composite.java @@ -553,7 +553,7 @@ boolean forceFocus (long /*int*/ focusHandle) { * will be one of the following constants defined in class *SWT
:
* INHERIT_NONE
, INHERIT_DEFAULT
,
- * INHERTIT_FORCE
.
+ * INHERIT_FORCE
.
*
* @return the background mode
*
diff --git a/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Control.java b/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Control.java
index 12219c962e..0bd3b6e410 100644
--- a/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Control.java
+++ b/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Control.java
@@ -25,7 +25,7 @@ import org.eclipse.swt.internal.gtk.*;
* SWT.LEFT_TO_RIGHT
or SWT.RIGHT_TO_LEFT
.
+ *
+ * @return the text direction style
+ *
+ * @exception SWTException SWT.LEFT_TO_RIGHT
or
+ * SWT.RIGHT_TO_LEFT
.
+ *
+ * setOrientation
would override this value with the text direction
+ * that is consistent with the new orientation.
+ *
+ * Warning: This API is currently only implemented on Windows. + * It doesn't set the base text direction on GTK and Cocoa. + *
+ * + * @param textDirection the base text direction style + * + * @exception SWTException* If the item is not in the receiver, then it is ignored. *
@@ -3192,7 +3192,7 @@ public void setSelection (TreeItem item) { /** * Sets the receiver's selection to be the given array of items. * The current selection is cleared before the new items are selected, - * and if necessary, the receiver is scrolled to make the new selection visible. + * and if necessary the receiver is scrolled to make the new selection visible. ** Items that are not in the receiver are ignored. * If the receiver is single-select and multiple items are specified, diff --git a/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/graphics/GCData.java b/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/graphics/GCData.java index 1e955bae0d..deb926a6a1 100644 --- a/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/graphics/GCData.java +++ b/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/graphics/GCData.java @@ -45,14 +45,8 @@ public final class GCData { public int alpha = 0xFF; public Image image; - /** - * @noreference This field is not intended to be referenced by clients. - */ public PAINTSTRUCT ps; public int layout = -1; - /** - * @noreference This field is not intended to be referenced by clients. - */ public long /*int*/ hPen, hOldPen, hBrush, hOldBrush, hNullBitmap, hwnd, gdipGraphics, gdipPen, gdipBrush, gdipFgBrush, gdipBgBrush, gdipFont, hGDIFont; -- cgit