Revision f7887244
Added by Katja Luther almost 7 years ago
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/ui/element/TextWithLabelElement.java | ||
---|---|---|
8 | 8 |
import org.eclipse.swt.events.KeyEvent; |
9 | 9 |
import org.eclipse.swt.events.ModifyEvent; |
10 | 10 |
import org.eclipse.swt.events.ModifyListener; |
11 |
import org.eclipse.swt.events.SelectionAdapter; |
|
12 |
import org.eclipse.swt.events.SelectionEvent; |
|
11 | 13 |
import org.eclipse.swt.graphics.Color; |
14 |
import org.eclipse.swt.graphics.Point; |
|
12 | 15 |
import org.eclipse.swt.layout.GridData; |
16 |
import org.eclipse.swt.widgets.Button; |
|
13 | 17 |
import org.eclipse.swt.widgets.Composite; |
14 | 18 |
import org.eclipse.swt.widgets.Control; |
15 | 19 |
import org.eclipse.swt.widgets.Label; |
... | ... | |
18 | 22 |
import org.eclipse.ui.forms.widgets.TableWrapData; |
19 | 23 |
|
20 | 24 |
import eu.etaxonomy.cdm.common.CdmUtils; |
25 |
import eu.etaxonomy.cdm.model.common.IntextReference; |
|
26 |
import eu.etaxonomy.cdm.model.common.IntextReferenceHelper; |
|
27 |
import eu.etaxonomy.cdm.model.reference.Reference; |
|
21 | 28 |
import eu.etaxonomy.taxeditor.preference.Resources; |
29 |
import eu.etaxonomy.taxeditor.ui.section.description.IntextReferenceDetailElement; |
|
30 |
import eu.etaxonomy.taxeditor.ui.section.description.IntextReferenceSection; |
|
31 |
import eu.etaxonomy.taxeditor.ui.selection.EntitySelectionElement; |
|
22 | 32 |
|
23 | 33 |
/** |
24 | 34 |
* @author n.hoffmann |
... | ... | |
29 | 39 |
|
30 | 40 |
protected Text text; |
31 | 41 |
private Label label; |
42 |
|
|
43 |
|
|
32 | 44 |
|
33 | 45 |
private final boolean isMultiLine; |
34 | 46 |
|
... | ... | |
118 | 130 |
text.addModifyListener(this); |
119 | 131 |
|
120 | 132 |
setText(initialText); |
133 |
|
|
134 |
|
|
135 |
|
|
121 | 136 |
} |
122 | 137 |
|
123 | 138 |
protected void initLabel(CdmFormFactory formFactory, String labelString, boolean isMultiLine, Composite layoutComposite) { |
... | ... | |
236 | 251 |
public void setTextLimit(int limit) { |
237 | 252 |
text.setTextLimit(limit); |
238 | 253 |
} |
254 |
|
|
255 |
public Point getSelection(){ |
|
256 |
return text.getSelection(); |
|
257 |
} |
|
239 | 258 |
|
240 | 259 |
} |
Also available in: Unified diff
first implementation of intextreferences in editor