Revision e5488fb6
Added by Lutz Suhrbier over 12 years ago
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/ui/forms/ToggleableTextElement.java | ||
---|---|---|
27 | 27 |
import org.eclipse.swt.widgets.Text; |
28 | 28 |
|
29 | 29 |
import eu.etaxonomy.taxeditor.preference.Resources; |
30 |
import eu.etaxonomy.taxeditor.singlesource.ui.forms.CdmFormFactoryFacade; |
|
30 | 31 |
import eu.etaxonomy.taxeditor.store.StoreUtil; |
31 | 32 |
|
32 | 33 |
/** |
... | ... | |
50 | 51 |
* <p>Constructor for ToggleableTextElement.</p> |
51 | 52 |
* |
52 | 53 |
* @param style a int. |
53 |
* @param formFactory a {@link eu.etaxonomy.taxeditor.ui.forms.CdmFormFactory} object.
|
|
54 |
* @param formFactory a {@link eu.etaxonomy.taxeditor.singlesource.ui.forms.CdmFormFactoryFacade} object.
|
|
54 | 55 |
* @param parentElement a {@link eu.etaxonomy.taxeditor.ui.forms.ICdmFormElement} object. |
55 | 56 |
* @param labelString a {@link java.lang.String} object. |
56 | 57 |
* @param initialText a {@link java.lang.String} object. |
57 | 58 |
* @param initialState a boolean. |
58 | 59 |
*/ |
59 |
protected ToggleableTextElement(CdmFormFactory formFactory, ICdmFormElement parentElement,
|
|
60 |
public ToggleableTextElement(CdmFormFactoryFacade formFactory, ICdmFormElement parentElement,
|
|
60 | 61 |
String labelString, String initialText, boolean initialState, int style) { |
61 | 62 |
super(formFactory, parentElement); |
62 | 63 |
|
... | ... | |
64 | 65 |
addControl(label); |
65 | 66 |
|
66 | 67 |
container = formFactory.createComposite(getLayoutComposite(), SWT.WRAP); |
67 |
container.setLayout(CdmFormFactory.LAYOUT(2, false)); |
|
68 |
container.setLayoutData(CdmFormFactory.FILL_HORIZONTALLY()); |
|
68 |
container.setLayout(CdmFormFactoryFacade.LAYOUT(2, false));
|
|
69 |
container.setLayoutData(CdmFormFactoryFacade.FILL_HORIZONTALLY());
|
|
69 | 70 |
addControl(container); |
70 | 71 |
|
71 | 72 |
text_cache = formFactory.createText(container, initialText, SWT.WRAP | SWT.MULTI); |
72 | 73 |
addControl(text_cache); |
73 | 74 |
text_cache.addModifyListener(this); |
74 |
text_cache.setLayoutData(CdmFormFactory.FILL()); |
|
75 |
text_cache.setLayoutData(CdmFormFactoryFacade.FILL());
|
|
75 | 76 |
|
76 | 77 |
// Don't accept carriage returns as input |
77 | 78 |
text_cache.addKeyListener( new KeyAdapter(){ |
Also available in: Unified diff
Single Sourced CdmFormFactory markFinished Problem