Skip to content

Commit 8314654

Browse files
committed
SWT Javadoc bash for 4.38
Fixes #2788
1 parent 63d5582 commit 8314654

File tree

6 files changed

+28
-20
lines changed

6 files changed

+28
-20
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/gtk/org/eclipse/swt/widgets/Combo.java

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -494,6 +494,7 @@ Point computeNativeSize (long h, int wHint, int hHint, boolean changed) {
494494
* <p>
495495
* The current selection is copied to the clipboard.
496496
* </p>
497+
*
497498
* @exception SWTException <ul>
498499
* <li>ERROR_WIDGET_DISPOSED - if the receiver has been disposed</li>
499500
* <li>ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the receiver</li>
@@ -1941,12 +1942,7 @@ long paintSurface () {
19411942
* The selected text is deleted from the widget
19421943
* and new text inserted from the clipboard.
19431944
* </p>
1944-
* <p>
1945-
* <strong>Note:</strong> Pasting data to controls may occurs asynchronously. The widget
1946-
* text may not reflect the updated value immediately after calling this method.
1947-
* The new text will appear once pending events are processed in the event loop.
1948-
* Use {@link Display#asyncExec(Runnable)} before accessing <code>getText()</code>.
1949-
* </p>
1945+
*
19501946
* @exception SWTException <ul>
19511947
* <li>ERROR_WIDGET_DISPOSED - if the receiver has been disposed</li>
19521948
* <li>ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the receiver</li>

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

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -739,6 +739,7 @@ Rectangle computeTrimInPixels (int x, int y, int width, int height) {
739739
* <p>
740740
* The current selection is copied to the clipboard.
741741
* </p>
742+
*
742743
* @exception SWTException <ul>
743744
* <li>ERROR_WIDGET_DISPOSED - if the receiver has been disposed</li>
744745
* <li>ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the receiver</li>
@@ -2095,12 +2096,7 @@ long paintWindow () {
20952096
* The selected text is deleted from the widget
20962097
* and new text inserted from the clipboard.
20972098
* </p>
2098-
* <p>
2099-
* <strong>Note:</strong> Pasting data to controls may occurs asynchronously. The widget
2100-
* text may not reflect the updated value immediately after calling this method.
2101-
* The new text will appear once pending events are processed in the event loop.
2102-
* Use {@link Display#asyncExec(Runnable)} before accessing <code>getText()</code>.
2103-
* </p>
2099+
*
21042100
* @exception SWTException <ul>
21052101
* <li>ERROR_WIDGET_DISPOSED - if the receiver has been disposed</li>
21062102
* <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)