Bug 85255 Replace custom Link implementation with SWT Link
I20050215-0800 Replace custom Link implementation with SWT Link. Note: improve work for translators and get rid of cutom escape chars in string.
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/preferences/CHyperLinkText.java
public void setText(String text) {
		List tokens= new ArrayList();
		int last= 0, next;
		while ((next= indexOfUnescaped(text, OPENING, last)) != -1) {
			int closing= indexOfUnescaped(text, CLOSING, next);
			int comma1= indexOfUnescaped(text, SEPARATOR, next);
			int comma2= indexOfUnescaped(text, SEPARATOR, comma1 + 1);
			
			if (closing != -1) {
				if (next > last) {
					tokens.add(text.substring(last, next));
				}
				
				LinkSpec link= new LinkSpec();
				if (comma1 != -1 && comma1 < closing) {
					link.url= text.substring(next + 1, comma1);
					if (comma2 != -1 && comma2 < closing) {
						link.text= text.substring(comma1 + 1, comma2);
						link.tooltip= text.substring(comma2 + 1, closing);
					} else {
						link.text= text.substring(comma1 + 1, closing);
					}
				} else {
					link.url= text.substring(next + 1, closing);
				}
				
				tokens.add(link);
				
				last= closing + 1;