Revision 707b6237
Added by Niels Hoffmann over 12 years ago
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/ui/forms/TextWithLabelElement.java | ||
---|---|---|
71 | 71 |
|
72 | 72 |
int scrollStyle = textHeight == null ? SWT.NULL |
73 | 73 |
: (SWT.V_SCROLL | SWT.MULTI); |
74 |
text = formFactory.createText(getLayoutComposite(), "", SWT.BORDER |
|
75 |
| SWT.WRAP | scrollStyle); |
|
74 |
|
|
75 |
int combinedStyle = style | SWT.BORDER | scrollStyle; |
|
76 |
|
|
77 |
//SWT.PASSWORD does not work when SWT.WRAP is set. |
|
78 |
if(style != SWT.PASSWORD){ |
|
79 |
combinedStyle = combinedStyle | SWT.WRAP; |
|
80 |
} |
|
81 |
|
|
82 |
text = formFactory.createText(getLayoutComposite(), "", combinedStyle); |
|
76 | 83 |
|
77 | 84 |
addControl(text); |
78 | 85 |
|
Also available in: Unified diff
Merged with trunk