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
}
		}
		
		if (last < text.length())
			tokens.add(text.substring(last));
		
		setText(tokens);
	}
	
	private int indexOfUnescaped(String target, String str, int index) {
		if (index == -1)
			return -1;
		while (true) {
			index= target.indexOf(str, index);
			if (index <= 0 || target.charAt(index - 1) != ESCAPE)
				return index;
		}
	}
	
	private void setText(List tokens) {
		for (Iterator it= tokens.iterator(); it.hasNext();) {
			Object token= it.next();
			if (token instanceof LinkSpec) {
				final LinkSpec spec= (LinkSpec) token;
				Assert.isNotNull(spec.url);
				Link link= new Link(this, SWT.NONE);
				link.setText("<a href=\"" + spec.url + "\">" + (spec.text == null ? spec.url : spec.text) + "</a>");  
				link.setToolTipText(spec.tooltip);
				link.addSelectionListener(new SelectionAdapter() {
					public void widgetSelected(SelectionEvent e) {