Revision b81a9d65
Added by Lutz Suhrbier over 12 years ago
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/singlesource/ui/forms/TextWithLabelElementFacade.java | ||
---|---|---|
14 | 14 |
import org.eclipse.swt.graphics.Color; |
15 | 15 |
import org.eclipse.swt.widgets.Control; |
16 | 16 |
import org.eclipse.swt.widgets.Label; |
17 |
import org.eclipse.swt.widgets.Listener; |
|
18 | 17 |
import org.eclipse.swt.widgets.Text; |
19 | 18 |
import org.eclipse.ui.forms.widgets.TableWrapData; |
20 | 19 |
|
21 | 20 |
import eu.etaxonomy.cdm.common.CdmUtils; |
22 | 21 |
import eu.etaxonomy.taxeditor.preference.Resources; |
23 | 22 |
import eu.etaxonomy.taxeditor.singlesource.ImplementationLoader; |
24 |
import eu.etaxonomy.taxeditor.singlesource.io.wizard.ExportToFileDestinationWizardPageFacade; |
|
25 |
import eu.etaxonomy.taxeditor.singlesource.org.eclipse.ide.undo.IWorkspaceUndoUtilFacade; |
|
26 |
import eu.etaxonomy.taxeditor.singlesource.org.eclipse.ide.undo.WorkspaceUndoUtilFacade; |
|
27 | 23 |
import eu.etaxonomy.taxeditor.ui.forms.AbstractCdmFormElement; |
28 | 24 |
import eu.etaxonomy.taxeditor.ui.forms.CdmFormFactory; |
29 | 25 |
import eu.etaxonomy.taxeditor.ui.forms.CdmPropertyChangeEvent; |
... | ... | |
173 | 169 |
* a {@link java.lang.String} object. |
174 | 170 |
*/ |
175 | 171 |
public void setText(String string) { |
176 |
/** RAPSS:Modify Replace RWT Widget Listener Implementation changed to UntypedAdapterEvent |
|
177 |
Listener[] listeners = text.getListeners(SWT.Modify); |
|
178 |
|
|
179 |
for (Listener listener : listeners) { |
|
180 |
text.removeListener(SWT.Modify, listener); |
|
181 |
} |
|
182 |
*/ |
|
183 |
ModifyListener[] modifyListeners = (ModifyListener[])ModifyEvent.getListeners(text); |
|
184 |
for (ModifyListener modifyListener : modifyListeners) { |
|
185 |
ModifyEvent.removeListener(text, modifyListener); |
|
186 |
} |
|
187 |
|
|
188 |
text.setText(CdmUtils.Nz(string)); |
|
189 |
|
|
190 |
/** RAPSS:Modify Replace RWT Widget Listener Implementation changed to UntypedAdapterEvent |
|
191 |
for (Listener listener : listeners) { |
|
192 |
text.addListener(SWT.Modify, listener); |
|
193 |
} |
|
194 |
*/ |
|
195 |
for (ModifyListener modifyListener : modifyListeners) { |
|
196 |
ModifyEvent.addListener(text, modifyListener); |
|
197 |
} |
|
172 |
IMPL.setTextInternal(string); |
|
198 | 173 |
} |
199 | 174 |
|
175 |
public abstract void setTextInternal(String string); |
|
176 |
|
|
200 | 177 |
/* |
201 | 178 |
* (non-Javadoc) |
202 | 179 |
* |
Also available in: Unified diff
RAP-Version SingleSourced und scheint zu laufen