private int verticalAlignment = SWT.CENTER;
// internal
- //private Boolean isUrl = false;
+ // private Boolean isUrl = false;
private Integer imageWidth, imageHeight;
private BundleContext bundleContext;
@Override
public void afterPropertiesSet() {
-// if (target != null) {
-// if (target.startsWith("/")) {
-// isUrl = true;
-// } else {
-// try {
-// new URL(target);
-// isUrl = true;
-// } catch (MalformedURLException e1) {
-// isUrl = false;
-// }
-// }
-// }
+ // if (target != null) {
+ // if (target.startsWith("/")) {
+ // isUrl = true;
+ // } else {
+ // try {
+ // new URL(target);
+ // isUrl = true;
+ // } catch (MalformedURLException e1) {
+ // isUrl = false;
+ // }
+ // }
+ // }
if (image != null) {
ImageData image = loadImage();
}
}
+ /** @return {@link Composite} with a single {@link Label} child. */
@Override
public Control createUi(final Composite parent, Node context) {
Composite comp = new Composite(parent, SWT.BOTTOM);
if (target != null) {
labelText
.append("<a style='color:inherit;text-decoration:inherit;' href=\"");
-// if (!isUrl)
-// labelText.append('#');
+ // if (!isUrl)
+ // labelText.append('#');
labelText.append(target);
labelText.append("\">");
}