Revision a14f5d39
Added by Patrick Plitzner over 10 years ago
- adapted EntitiySelectionElement to be able to use with WindowBuilder
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/ui/element/AbstractCdmFormElementComposite.java | ||
---|---|---|
8 | 8 |
import org.eclipse.core.runtime.Assert; |
9 | 9 |
import org.eclipse.jface.util.IPropertyChangeListener; |
10 | 10 |
import org.eclipse.jface.util.PropertyChangeEvent; |
11 |
import org.eclipse.swt.SWT; |
|
11 | 12 |
import org.eclipse.swt.graphics.Color; |
12 | 13 |
import org.eclipse.swt.widgets.Composite; |
13 | 14 |
import org.eclipse.swt.widgets.Control; |
14 | 15 |
import org.eclipse.ui.forms.widgets.FormToolkit; |
15 | 16 |
import org.eclipse.ui.forms.widgets.Section; |
16 | 17 |
import org.eclipse.ui.forms.widgets.TableWrapLayout; |
18 |
import org.eclipse.wb.swt.SWTResourceManager; |
|
17 | 19 |
|
18 | 20 |
import eu.etaxonomy.taxeditor.model.AbstractUtility; |
19 | 21 |
|
... | ... | |
35 | 37 |
*/ |
36 | 38 |
public AbstractCdmFormElementComposite(Composite parent, final FormToolkit formFactory, ICdmFormElement parentFormElement, int style) { |
37 | 39 |
super(parent, style); |
40 |
setBackground(SWTResourceManager.getColor(SWT.COLOR_WHITE)); |
|
38 | 41 |
|
39 | 42 |
this.parentElement = parentFormElement; |
40 | 43 |
if(formFactory instanceof CdmFormFactory){ |
41 | 44 |
this.formFactory = (CdmFormFactory) formFactory; |
42 | 45 |
} |
46 |
//TODO what to do when not instance of CdmFormFactory |
|
43 | 47 |
|
44 | 48 |
TableWrapLayout twl_layoutComposite = new TableWrapLayout(); |
45 | 49 |
twl_layoutComposite.numColumns = 2; |
Also available in: Unified diff