import org.eclipse.ui.forms.widgets.TableWrapData;
import eu.etaxonomy.cdm.common.UriUtils;
-import eu.etaxonomy.taxeditor.store.StoreUtil;
+import eu.etaxonomy.taxeditor.model.MessagingUtils;
/**
* <p>ImageElement class.</p>
super(formFactory, parentElement);
container = new Composite(getLayoutComposite(), style);
- container.setLayoutData(CdmFormFactory.FILL(2, 1));
+ container.setLayoutData(LayoutConstants.FILL(2, 1));
container.addPaintListener(this);
}
try {
runnable.run(monitor);
} catch (Exception e) {
- StoreUtil.errorDialog("Could not load image", getClass(), e.getMessage() + ": " + getImageUri(), e);
+ MessagingUtils.messageDialog("Could not load image", getClass(), e.getMessage() + ": " + getImageUri(), e);
}
return Status.OK_STATUS;
try {
runnable.run(monitor);
} catch (Exception e) {
- StoreUtil.errorDialog("Could not unload image", getClass(), e.getMessage() + ": " + getImageUri(), e);
+ MessagingUtils.messageDialog("Could not unload image", getClass(), e.getMessage() + ": " + getImageUri(), e);
}
return Status.OK_STATUS;
/** {@inheritDoc} */
@Override
public void paintControl(PaintEvent e) {
- TableWrapData layoutData = CdmFormFactory.FILL(2, 1);
+ TableWrapData layoutData = LayoutConstants.FILL(2, 1);
Control control = (Control) e.widget;
if(image != null){
Rectangle imageMaxBounds = calculateImageBounds(image, control);