Skip to content

Commit dfd9109

Browse files
marcushoepfnerakurtakov
authored andcommitted
Fix java doc in o.e.jface and o.e.jface.examples.databinding
Issue eclipse-platform#1103
1 parent cfd5e50 commit dfd9109

File tree

5 files changed

+23
-20
lines changed

5 files changed

+23
-20
lines changed

bundles/org.eclipse.jface/src/org/eclipse/jface/widgets/AbstractControlFactory.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -52,9 +52,9 @@ public abstract class AbstractControlFactory<F extends AbstractControlFactory<?,
5252
* setting the tool tip text to an empty string replaces the default, causing no
5353
* tool tip text to be shown.
5454
*
55-
* The mnemonic indicator (character '&') is not displayed in a tool tip. To
56-
* display a single '&' in the tool tip, the character '&' can be escaped by
57-
* doubling it in the string.
55+
* The mnemonic indicator (character '&amp;') is not displayed in a tool tip. To
56+
* display a single '&amp;' in the tool tip, the character '&amp;' can be
57+
* escaped by doubling it in the string.
5858
*
5959
* @param tooltipText the tool tip text
6060
* @return this

bundles/org.eclipse.jface/src/org/eclipse/jface/widgets/TableColumnFactory.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -119,9 +119,9 @@ public TableColumnFactory align(int alignment) {
119119
* setting the tool tip text to an empty string replaces the default, causing no
120120
* tool tip text to be shown.
121121
*
122-
* The mnemonic indicator (character '&') is not displayed in a tool tip. To
123-
* display a single '&' in the tool tip, the character '&' can be escaped by
124-
* doubling it in the string.
122+
* The mnemonic indicator (character '&amp;') is not displayed in a tool tip. To
123+
* display a single '&amp;' in the tool tip, the character '&amp;' can be
124+
* escaped by doubling it in the string.
125125
*
126126
* @param tooltip the tool tip text
127127
* @return this

bundles/org.eclipse.jface/src/org/eclipse/jface/widgets/TreeColumnFactory.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -119,9 +119,9 @@ public TreeColumnFactory align(int alignment) {
119119
* setting the tool tip text to an empty string replaces the default, causing no
120120
* tool tip text to be shown.
121121
*
122-
* The mnemonic indicator (character '&') is not displayed in a tool tip. To
123-
* display a single '&' in the tool tip, the character '&' can be escaped by
124-
* doubling it in the string.
122+
* The mnemonic indicator (character '&amp;') is not displayed in a tool tip. To
123+
* display a single '&amp;' in the tool tip, the character '&amp;' can be
124+
* escaped by doubling it in the string.
125125
*
126126
* @param tooltip the tool tip text
127127
* @return this

examples/org.eclipse.jface.examples.databinding/src/org/eclipse/jface/examples/databinding/radioGroup/RadioGroup.java

Lines changed: 13 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -536,19 +536,22 @@ public void setItem (int index, String string) {
536536
}
537537

538538
/**
539-
* Selects the item at the given zero-relative index in the receiver.
540-
* If the item at the index was already selected, it remains selected.
541-
* The current selection is first cleared, then the new item is selected.
542-
* Indices that are out of range are ignored.
539+
* Selects the item at the given zero-relative index in the receiver. If the
540+
* item at the index was already selected, it remains selected. The current
541+
* selection is first cleared, then the new item is selected. Indices that are
542+
* out of range are ignored.
543543
*
544544
* @param index the index of the item to select
545545
*
546-
* @exception SWTException <ul>
547-
* <li>ERROR_WIDGET_DISPOSED - if the receiver has been disposed</li>
548-
* <li>ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the receiver</li>
549-
* </ul>
550-
* @see List#deselectAll()
551-
* @see List#select(int)
546+
* @exception SWTException
547+
* <ul>
548+
* <li>ERROR_WIDGET_DISPOSED - if the receiver has been
549+
* disposed</li>
550+
* <li>ERROR_THREAD_INVALID_ACCESS - if not called from
551+
* the thread that created the receiver</li>
552+
* </ul>
553+
* @see org.eclipse.swt.widgets.List#deselectAll()
554+
* @see org.eclipse.swt.widgets.List#select(int)
552555
*/
553556
public void setSelection (int index) {
554557
if (index < 0 || index > buttons.length - 1) {

examples/org.eclipse.jface.examples.databinding/src/org/eclipse/jface/examples/databinding/snippets/Snippet040SideEffectRunOnce.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131

3232
/**
3333
* This snippet shows how to use the
34-
* {@link ISideEffect#runOnce(java.util.function.Supplier, java.util.function.Consumer)}
34+
* {@link ISideEffect#create(java.util.function.Supplier, java.util.function.Consumer)}
3535
* method to react properly, when an observable is changed inside an async
3636
* action, e.g., a Job.
3737
*/

0 commit comments

Comments
 (0)