Composite composite = toolkit.createComposite(section);
composite.setLayout(new GridLayout(1, false));
composite.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, true));
section.setClient(composite);
ImageHyperlink hyperlink = toolkit.createImageHyperlink(composite,
SWT.LEAD);
hyperlink.setHoverImage(PlatformUI.getWorkbench().getSharedImages()
.getImage(IDE.SharedImages.IMG_OBJ_PROJECT));
hyperlink.setImage(PlatformUI.getWorkbench().getSharedImages()
.getImage(IDE.SharedImages.IMG_OBJ_PROJECT_CLOSED));
hyperlink.setText("Share Project Request");
if (listener != null) {
hyperlink.addHyperlinkListener(listener);
}
hyperlink.addHyperlinkListener(new CloseDialogListener());
Control text = toolkit.createText(composite, sender.getName()
+ " has sent a request to share project '" + projectName
+ "' with you.");
text.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, true));