Revision b81a9d65
Added by Lutz Suhrbier over 12 years ago
eu.etaxonomy.taxeditor.store.rap/src/eu/etaxonomy/taxeditor/singlesource/ui/forms/TextWithLabelElementFacadeImpl.java | ||
---|---|---|
6 | 6 |
import javax.naming.OperationNotSupportedException; |
7 | 7 |
|
8 | 8 |
import org.apache.log4j.Logger; |
9 |
import org.eclipse.swt.events.ModifyEvent; |
|
10 |
import org.eclipse.swt.events.ModifyListener; |
|
9 | 11 |
|
12 |
import eu.etaxonomy.cdm.common.CdmUtils; |
|
10 | 13 |
import eu.etaxonomy.taxeditor.ui.forms.CdmFormFactory; |
11 | 14 |
import eu.etaxonomy.taxeditor.ui.forms.ICdmFormElement; |
12 | 15 |
|
... | ... | |
42 | 45 |
{ |
43 | 46 |
throw new OperationNotSupportedException("Text.traverse(int) not supported !"); |
44 | 47 |
} |
48 |
|
|
49 |
public void setTextInternal(String string) { |
|
50 |
ModifyListener[] modifyListeners = (ModifyListener[])ModifyEvent.getListeners(text); |
|
51 |
for (ModifyListener modifyListener : modifyListeners) { |
|
52 |
ModifyEvent.removeListener(text, modifyListener); |
|
53 |
} |
|
54 |
|
|
55 |
text.setText(CdmUtils.Nz(string)); |
|
56 |
|
|
57 |
for (ModifyListener modifyListener : modifyListeners) { |
|
58 |
ModifyEvent.addListener(text, modifyListener); |
|
59 |
} |
|
60 |
} |
|
61 |
|
|
45 | 62 |
} |
Also available in: Unified diff
RAP-Version SingleSourced und scheint zu laufen