Skip to content

Commit a0d6ffc

Browse files
deepika-uakurtakov
authored andcommitted
SWT Javadoc bash for 4.38
Fixes #2788
1 parent 28bb9b4 commit a0d6ffc

File tree

4 files changed

+24
-8
lines changed

4 files changed

+24
-8
lines changed

bundles/org.eclipse.swt/Eclipse SWT/cocoa/org/eclipse/swt/widgets/Combo.java

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -478,7 +478,6 @@ public Point computeSize (int wHint, int hHint, boolean changed) {
478478
* <p>
479479
* The current selection is copied to the clipboard.
480480
* </p>
481-
*
482481
* @exception SWTException <ul>
483482
* <li>ERROR_WIDGET_DISPOSED - if the receiver has been disposed</li>
484483
* <li>ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the receiver</li>
@@ -1154,7 +1153,12 @@ void mouseDown(long id, long sel, long theEvent) {
11541153
* The selected text is deleted from the widget
11551154
* and new text inserted from the clipboard.
11561155
* </p>
1157-
*
1156+
* <p>
1157+
* <strong>Note:</strong> Pasting data to controls may occurs asynchronously. The widget
1158+
* text may not reflect the updated value immediately after calling this method.
1159+
* The new text will appear once pending events are processed in the event loop.
1160+
* Use {@link Display#asyncExec(Runnable)} before accessing <code>getText()</code>.
1161+
* </p>
11581162
* @exception SWTException <ul>
11591163
* <li>ERROR_WIDGET_DISPOSED - if the receiver has been disposed</li>
11601164
* <li>ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the receiver</li>

bundles/org.eclipse.swt/Eclipse SWT/cocoa/org/eclipse/swt/widgets/Text.java

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -477,7 +477,6 @@ public Rectangle computeTrim (int x, int y, int width, int height) {
477477
* <p>
478478
* The current selection is copied to the clipboard.
479479
* </p>
480-
*
481480
* @exception SWTException <ul>
482481
* <li>ERROR_WIDGET_DISPOSED - if the receiver has been disposed</li>
483482
* <li>ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the receiver</li>
@@ -1519,7 +1518,12 @@ boolean isNeeded(ScrollBar scrollbar) {
15191518
* The selected text is deleted from the widget
15201519
* and new text inserted from the clipboard.
15211520
* </p>
1522-
*
1521+
* <p>
1522+
* <strong>Note:</strong> Pasting data to controls may occurs asynchronously. The widget
1523+
* text may not reflect the updated value immediately after calling this method.
1524+
* The new text will appear once pending events are processed in the event loop.
1525+
* Use {@link Display#asyncExec(Runnable)} before accessing <code>getText()</code>.
1526+
* </p>
15231527
* @exception SWTException <ul>
15241528
* <li>ERROR_WIDGET_DISPOSED - if the receiver has been disposed</li>
15251529
* <li>ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the receiver</li>

bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Combo.java

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -676,7 +676,6 @@ Point computeSizeInPixels (Point hintInPoints, int zoom, boolean changed) {
676676
* <p>
677677
* The current selection is copied to the clipboard.
678678
* </p>
679-
*
680679
* @exception SWTException <ul>
681680
* <li>ERROR_WIDGET_DISPOSED - if the receiver has been disposed</li>
682681
* <li>ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the receiver</li>
@@ -1494,7 +1493,12 @@ public int indexOf (String string, int start) {
14941493
* The selected text is deleted from the widget
14951494
* and new text inserted from the clipboard.
14961495
* </p>
1497-
*
1496+
* <p>
1497+
* <strong>Note:</strong> Pasting data to controls may occurs asynchronously. The widget
1498+
* text may not reflect the updated value immediately after calling this method.
1499+
* The new text will appear once pending events are processed in the event loop.
1500+
* Use {@link Display#asyncExec(Runnable)} before accessing <code>getText()</code>.
1501+
* </p>
14981502
* @exception SWTException <ul>
14991503
* <li>ERROR_WIDGET_DISPOSED - if the receiver has been disposed</li>
15001504
* <li>ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the receiver</li>

bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Text.java

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -790,7 +790,6 @@ Point computeSizeInPixels (Point hintInPoints, int zoom, boolean changed) {
790790
* <p>
791791
* The current selection is copied to the clipboard.
792792
* </p>
793-
*
794793
* @exception SWTException <ul>
795794
* <li>ERROR_WIDGET_DISPOSED - if the receiver has been disposed</li>
796795
* <li>ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the receiver</li>
@@ -1629,7 +1628,12 @@ boolean isUseWsBorder () {
16291628
* The selected text is deleted from the widget
16301629
* and new text inserted from the clipboard.
16311630
* </p>
1632-
*
1631+
* <p>
1632+
* <strong>Note:</strong> Pasting data to controls may occurs asynchronously. The widget
1633+
* text may not reflect the updated value immediately after calling this method.
1634+
* The new text will appear once pending events are processed in the event loop.
1635+
* Use {@link Display#asyncExec(Runnable)} before accessing <code>getText()</code>.
1636+
* </p>
16331637
* @exception SWTException <ul>
16341638
* <li>ERROR_WIDGET_DISPOSED - if the receiver has been disposed</li>
16351639
* <li>ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the receiver</li>

0 commit comments

Comments
 (0)