label.setText("Feel free to support " + pluginName+ " plugin in the way you like:");
Font font = JFaceResources.getFontRegistry().getBold(
JFaceResources.getDialogFont().getFontData()[0].getName());
Link link = new Link(commonPanel, SWT.NONE);
link.setFont(font);
link.setText(" - <a>visit homepage</a>");
link.setToolTipText("You need just a sense of humor!");
link.addListener (SWT.Selection, new Listener () {
public void handleEvent(Event event) {
handleUrlClick("http://andrei.gmxhome.de/bytecode");
}
});
link = new Link(commonPanel, SWT.NONE);
link.setFont(font);
link.setText(" - <a>report issue or feature request</a>");
link.setToolTipText("You need a valid account at ow2.org!");
link.addListener (SWT.Selection, new Listener () {
public void handleEvent(Event event) {
handleUrlClick("http://forge.ow2.org/tracker/?group_id=23");
}
});
link = new Link(commonPanel, SWT.NONE);
link.setFont(font);
link.setText(" - <a>add to your favorites at Eclipse MarketPlace</a>");
link.setToolTipText("You need a valid bugzilla account at Eclipse.org!");
link.addListener (SWT.Selection, new Listener () {
public void handleEvent(Event event) {
handleUrlClick("http://marketplace.eclipse.org/content/bytecode-outline");
}
});
link = new Link(commonPanel, SWT.NONE);
link.setFont(font);
link.setText(" - <a>make a donation to support plugin development</a>");
link.setToolTipText("You do NOT need a PayPal account!");
link.addListener (SWT.Selection, new Listener () {
public void handleEvent(Event event) {
handleUrlClick("https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=R5SHJLNGUXKHU");
}
});
}