Revision b81a9d65
Added by Lutz Suhrbier over 12 years ago
eu.etaxonomy.taxeditor.store.rap/src/eu/etaxonomy/taxeditor/singlesource/ui/forms/LanguageStringWithLabelElementFacadeImpl.java | ||
---|---|---|
12 | 12 |
|
13 | 13 |
import javax.naming.OperationNotSupportedException; |
14 | 14 |
|
15 |
import org.eclipse.swt.events.ModifyEvent; |
|
16 |
import org.eclipse.swt.events.ModifyListener; |
|
17 |
|
|
18 |
import eu.etaxonomy.cdm.common.CdmUtils; |
|
15 | 19 |
import eu.etaxonomy.cdm.model.common.LanguageString; |
16 | 20 |
import eu.etaxonomy.taxeditor.ui.forms.CdmFormFactory; |
17 | 21 |
import eu.etaxonomy.taxeditor.ui.forms.ICdmFormElement; |
... | ... | |
79 | 83 |
return null; |
80 | 84 |
} |
81 | 85 |
|
86 |
public void setTextInternal(String string) { |
|
87 |
ModifyListener[] modifyListeners = (ModifyListener[])ModifyEvent.getListeners(text); |
|
88 |
for (ModifyListener modifyListener : modifyListeners) { |
|
89 |
ModifyEvent.removeListener(text, modifyListener); |
|
90 |
} |
|
91 |
|
|
92 |
text.setText(CdmUtils.Nz(string)); |
|
93 |
|
|
94 |
for (ModifyListener modifyListener : modifyListeners) { |
|
95 |
ModifyEvent.addListener(text, modifyListener); |
|
96 |
} |
|
97 |
} |
|
98 |
|
|
82 | 99 |
public boolean traverseInternal(int traversal) throws OperationNotSupportedException |
83 | 100 |
{ |
84 | 101 |
throw new OperationNotSupportedException("Text.traverse(int) not supported !"); |
Also available in: Unified diff
RAP-Version SingleSourced und scheint zu laufen