import org.eclipse.swt.graphics.Color;
import org.eclipse.swt.widgets.Button;
import org.eclipse.swt.widgets.Composite;
-import org.eclipse.swt.widgets.Display;
import org.eclipse.swt.widgets.Layout;
import org.eclipse.ui.forms.widgets.TableWrapLayout;
import eu.etaxonomy.taxeditor.ui.element.ICdmFormElement;
import eu.etaxonomy.taxeditor.ui.element.IEntityElement;
import eu.etaxonomy.taxeditor.ui.element.ISelectable;
+import eu.etaxonomy.taxeditor.ui.element.LayoutConstants;
/**
* <p>
box.setBackgroundMode(SWT.INHERIT_DEFAULT);
addControl(box);
- TableWrapLayout boxLayout = CdmFormFactory.LAYOUT(2, false);
+ TableWrapLayout boxLayout = LayoutConstants.LAYOUT(2, false);
boxLayout.topMargin = 4;
boxLayout.bottomMargin = 4;
box.setLayout(boxLayout);
- box.setLayoutData(CdmFormFactory.FILL_HORIZONTALLY());
+ box.setLayoutData(LayoutConstants.FILL_HORIZONTALLY());
// box.setBackground(Display.getCurrent().getSystemColor(SWT.COLOR_BLUE));
setLayoutComposite(container);
addControl(container);
- Layout containerLayout = CdmFormFactory.LAYOUT(2, false);
+ Layout containerLayout = LayoutConstants.LAYOUT(2, false);
container.setLayout(containerLayout);
- container.setLayoutData(CdmFormFactory.FILL_HORIZONTALLY());
+ container.setLayoutData(LayoutConstants.FILL_HORIZONTALLY());
if (removeListener != null) {
button_remove = formFactory.createButton(box, null, SWT.PUSH);
addControl(button_remove);
- button_remove.setLayoutData(CdmFormFactory.RIGHT());
+ button_remove.setLayoutData(LayoutConstants.RIGHT());
button_remove.setImage(ImageResources
.getImage(ImageResources.TRASH_ICON));
button_remove.setToolTipText("Remove");