private Composite createLinks(Composite parent) { Composite composite= new Composite(parent, SWT.NONE); composite.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, true)); GridLayout layout= new GridLayout(1, false); composite.setLayout(layout); composite.setBackground(composite.getDisplay().getSystemColor(SWT.COLOR_INFO_BACKGROUND)); for (int i= 0; i < fInput.length; i++) { final IHyperlink link= fInput[i]; Link linkControl= new Link(composite, SWT.NONE); linkControl.setLayoutData(new GridData(SWT.BEGINNING, SWT.CENTER, false, false)); linkControl.setBackground(composite.getBackground()); String text= link.getHyperlinkText(); if (text == null) text= HyperlinkMessages.getString("LinkListInformationControl.unknownLink"); //$NON-NLS-1$ if (i == 0) { text= MessageFormat.format(HyperlinkMessages.getString("LinkListInformationControl.defaultLinkPattern"), new Object[] { text }); //$NON-NLS-1$ linkControl.setFont(JFaceResources.getFontRegistry().getBold(JFaceResources.DIALOG_FONT)); } linkControl.setText("" + text + ""); linkControl.addSelectionListener(new SelectionAdapter() { /* (non-Javadoc) * @see org.eclipse.swt.events.SelectionAdapter#widgetSelected(org.eclipse.swt.events.SelectionEvent) */ public void widgetSelected(SelectionEvent e) { LinkListInformationControl.this.dispose(); link.open(); } }); } return composite; }