parentGridData.heightHint = 500;
parentGridData.widthHint = 500;
parent.setLayoutData(parentGridData);
//super.createDialogArea(parent);
FormToolkit tk = GOIMPlugin.getFormToolkit(parent.getDisplay());
ScrolledForm form = tk.createScrolledForm(parent);
form.setText("Gamers Own Instant Messenger - Credits");
form.setLayoutData(new GridData(SWT.FILL,SWT.FILL,true,true));
String aboutText = Platform.getProduct().getProperty(CREDIT_PROPERTY);
// StringBuffer buf = new StringBuffer();
// buf.append("<form>")
// .append("<p>")
// .append("<span color=\"header\" font=\"header\">Gamers Own Instant Messenger</span><br/>")
// .append("<img href=\"aboutImage\" align=\"bottom\" /></p><p>")
// .append(aboutText.replace("\n","<br/>"))
// .append("</p><p>")
// .append("<span color=\"header\" font=\"header\">Credits</span><br/><br/>")
// .append("</p>")
// .append("<li><b>Herbert Poul</b></li>")
// .append("<li bindent=\"20\">Coming soon</li>")
// .append("</form>");
TableWrapLayout formBodyLayout = new TableWrapLayout();
formBodyLayout.leftMargin = 10;
form.getBody().setLayout(formBodyLayout);
form.getBody().setLayoutData(new GridData(SWT.FILL,SWT.FILL,true,true));
FormText text = tk.createFormText(form.getBody(),true);
// text.setText(buf.toString(),true,true);
text.setText(aboutText,true,true);
// text.setImage("aboutImage",img);
// text.setColor("header",tk.getColors().getColor(FormColors.TITLE));
// text.setFont( "header",JFaceResources.getHeaderFont());
TableWrapData tableWrapData = new TableWrapData(TableWrapData.FILL);
text.setLayoutData(tableWrapData);
text.addHyperlinkListener(new IHyperlinkListener(){
public void linkEntered(HyperlinkEvent e) {
}
public void linkExited(HyperlinkEvent e) {
}
public void linkActivated(HyperlinkEvent e) {
try {
PlatformUI.getWorkbench().getBrowserSupport().getExternalBrowser().openURL(new URL((String)e.data));
} catch (PartInitException e1) {
e1.printStackTrace();
} catch (MalformedURLException e1) {
e1.printStackTrace();
}
}});
return form.getContent();
}