/* Link to Feedvalidator in case of an error */
if (bm.isErrorLoading()) {
new Label(fContainer, SWT.None);
Link validateLink = new Link(fContainer, SWT.None);
validateLink.setLayoutData(new GridData(SWT.BEGINNING, SWT.BEGINNING, false, false));
validateLink.setText(Messages.InformationPropertyPage_FIND_OUT_MORE);
validateLink.addSelectionListener(new SelectionAdapter() {
@Override
public void widgetSelected(SelectionEvent e) {
try {
URI uri = new URI("http://www.feedvalidator.org/check.cgi?url=" + URIUtils.urlEncode(bm.getFeedLinkReference().getLinkAsText())); //$NON-NLS-1$
OpenInBrowserAction action = new OpenInBrowserAction();
action.selectionChanged(null, new StructuredSelection(uri));
action.run();
} catch (URISyntaxException ex) {
Activator.safeLogError(ex.getMessage(), ex);
}
}
});
}
/* Feed: Description */
createLabel(fContainer, Messages.InformationPropertyPage_DESCRIPTION, true);
fDescriptionLabel = new Label(fContainer, SWT.WRAP);
fDescriptionLabel.setLayoutData(new GridData(SWT.FILL, SWT.FILL, false, false));
((GridData) fDescriptionLabel.getLayoutData()).widthHint = 300;
/* Feed: Homepage */
createLabel(fContainer, Messages.InformationPropertyPage_HOMEPAGE, true);
fHomepageLink = new Link(fContainer, SWT.NONE);
fHomepageLink.setLayoutData(new GridData(SWT.FILL, SWT.BEGINNING, true, false));
/* Created */
if (bm.getCreationDate() != null) {
createLabel(fContainer, Messages.InformationPropertyPage_CREATED, true);