Bug 491148 - Links Javadoc should use <a></a>and not <A></A>
Change-Id: Icb822bf189584c11f8582a9e2d6081dde18636c2
Signed-off-by: Lars Vogel <Lars.Vogel@vogella.com>
diff --git a/bundles/org.eclipse.swt/Eclipse SWT/cocoa/org/eclipse/swt/widgets/Link.java b/bundles/org.eclipse.swt/Eclipse SWT/cocoa/org/eclipse/swt/widgets/Link.java
index f80dff8..663ed14 100644
--- a/bundles/org.eclipse.swt/Eclipse SWT/cocoa/org/eclipse/swt/widgets/Link.java
+++ b/bundles/org.eclipse.swt/Eclipse SWT/cocoa/org/eclipse/swt/widgets/Link.java
@@ -722,7 +722,7 @@
* Sets the receiver's text.
* <p>
* The string can contain both regular text and hyperlinks. A hyperlink
- * is delimited by an anchor tag, <A> and </A>. Within an
+ * is delimited by an anchor tag, <a> and </a>. Within an
* anchor, a single HREF attribute is supported. When a hyperlink is
* selected, the text field of the selection event contains either the
* text of the hyperlink or the value of its HREF, if one was specified.
diff --git a/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Link.java b/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Link.java
index d6c87c8..9bfa969 100644
--- a/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Link.java
+++ b/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Link.java
@@ -771,7 +771,7 @@
* Sets the receiver's text.
* <p>
* The string can contain both regular text and hyperlinks. A hyperlink
- * is delimited by an anchor tag, <A> and </A>. Within an
+ * is delimited by an anchor tag, <a> and </a>. Within an
* anchor, a single HREF attribute is supported. When a hyperlink is
* selected, the text field of the selection event contains either the
* text of the hyperlink or the value of its HREF, if one was specified.
diff --git a/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Link.java b/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Link.java
index 94d07d1..bea5424 100644
--- a/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Link.java
+++ b/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Link.java
@@ -720,7 +720,7 @@
* Sets the receiver's text.
* <p>
* The string can contain both regular text and hyperlinks. A hyperlink
- * is delimited by an anchor tag, <A> and </A>. Within an
+ * is delimited by an anchor tag, <a> and </a>. Within an
* anchor, a single HREF attribute is supported. When a hyperlink is
* selected, the text field of the selection event contains either the
* text of the hyperlink or the value of its HREF, if one was specified.
diff --git a/examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet182.java b/examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet182.java
index d9964f6..1733660 100644
--- a/examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet182.java
+++ b/examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet182.java
@@ -33,7 +33,7 @@
shell.setLayout(new RowLayout());
Link link = new Link(shell, SWT.BORDER);
- link.setText("This a very simple <A>link</A> widget.");
+ link.setText("This a very simple <a>link</a> widget.");
Button setButton = new Button(shell, SWT.PUSH);
setButton.setText("Choose link color");
diff --git a/examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet365.java b/examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet365.java
index 8b3c966..556ff40 100644
--- a/examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet365.java
+++ b/examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet365.java
@@ -298,7 +298,7 @@
// Link
link = new Link(nativeGroup, SWT.NONE);
- link.setText("<A>Sample link</A>");
+ link.setText("<a>Sample link</a>");
// List
list = new List(nativeGroup, SWT.BORDER);
diff --git a/tests/org.eclipse.swt.tests/JUnit Tests/org/eclipse/swt/tests/junit/Test_org_eclipse_swt_widgets_Link.java b/tests/org.eclipse.swt.tests/JUnit Tests/org/eclipse/swt/tests/junit/Test_org_eclipse_swt_widgets_Link.java
index 4c2c9f6..407be47 100644
--- a/tests/org.eclipse.swt.tests/JUnit Tests/org/eclipse/swt/tests/junit/Test_org_eclipse_swt_widgets_Link.java
+++ b/tests/org.eclipse.swt.tests/JUnit Tests/org/eclipse/swt/tests/junit/Test_org_eclipse_swt_widgets_Link.java
@@ -135,11 +135,11 @@
"<a></a>&a",
"&a<a>a</a>&a",
"&a<a>&a</a>&a",
- "Text <a href=\"url.com\">Link</a> text <A color=#212121>Link 2</A> ",
+ "Text <a href=\"url.com\">Link</a> text <A color=#212121>Link 2</a> ",
"Text<a \t xxx=\"yyy \" id=\"ids\" href=\"HREF\" >Link< /a>End",
"Te&&xt &text && <a>L&ink</a> h&i <a>fe&&lipe</a> &l &end&&",
"Text <a id=\"1\">Link</a> something <a href=\"bla bla2\" >Link2</a> somethingelse <a>Link3 large large</a>. some text to test this wrapping thing <A href=\"last\">this is suppose to be a very long link text the spraws over several lines in the text layout</a>.end",
- "The SWT component is designed to provide <A>efficient</A>, <A>portable</A> <A>access to the user-interface facilities of the operating systems</A> on which it is implemented.",
+ "The SWT component is designed to provide <a>efficient</a>, <a>portable</a> <a>access to the user-interface facilities of the operating systems</a> on which it is implemented.",
"some text",
"ldkashdoehufweovcnhslvhregojebckreavbkuhxbiufvcyhbifuyewvbiureyd.,cmnesljliewjfchvbwoifivbeworixuieurvbiuvbohflksjeahfcliureafgyciabelitvyrwtlicuyrtliureybcliuyreuceyvbliureybct",
"\n \n \b \t ",