Revision b81a9d65
Added by Lutz Suhrbier over 12 years ago
eu.etaxonomy.taxeditor.editor.rcp/src/eu/etaxonomy/taxeditor/singlesource/editor/view/concept/ConceptViewPartImpl.java | ||
---|---|---|
17 | 17 |
import org.eclipse.ui.IEditorPart; |
18 | 18 |
import org.eclipse.ui.IWorkbenchPart; |
19 | 19 |
|
20 |
import eu.etaxonomy.taxeditor.bulkeditor.BulkEditor; |
|
20 | 21 |
import eu.etaxonomy.taxeditor.editor.EditorUtil; |
21 | 22 |
import eu.etaxonomy.taxeditor.editor.MultiPageTaxonEditor; |
22 | 23 |
import eu.etaxonomy.taxeditor.editor.key.AbstractGraphKeyEditor; |
eu.etaxonomy.taxeditor.editor.rcp/src/eu/etaxonomy/taxeditor/singlesource/editor/view/media/MediaViewPartImpl.java | ||
---|---|---|
18 | 18 |
import org.eclipse.ui.IEditorPart; |
19 | 19 |
import org.eclipse.ui.IWorkbenchPart; |
20 | 20 |
|
21 |
import eu.etaxonomy.taxeditor.bulkeditor.BulkEditor; |
|
21 | 22 |
import eu.etaxonomy.taxeditor.editor.EditorUtil; |
22 | 23 |
import eu.etaxonomy.taxeditor.editor.MultiPageTaxonEditor; |
23 | 24 |
|
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 !"); |
eu.etaxonomy.taxeditor.store.rap/src/eu/etaxonomy/taxeditor/singlesource/ui/forms/NumberWithLabelElementFacadeImpl.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.taxeditor.ui.forms.CdmFormFactory; |
16 | 20 |
import eu.etaxonomy.taxeditor.ui.forms.ICdmFormElement; |
17 | 21 |
|
... | ... | |
76 | 80 |
return null; |
77 | 81 |
} |
78 | 82 |
|
83 |
public void setTextInternal(String string) { |
|
84 |
ModifyListener[] modifyListeners = (ModifyListener[])ModifyEvent.getListeners(text); |
|
85 |
for (ModifyListener modifyListener : modifyListeners) { |
|
86 |
ModifyEvent.removeListener(text, modifyListener); |
|
87 |
} |
|
88 |
|
|
89 |
text.setText(CdmUtils.Nz(string)); |
|
90 |
|
|
91 |
for (ModifyListener modifyListener : modifyListeners) { |
|
92 |
ModifyEvent.addListener(text, modifyListener); |
|
93 |
} |
|
94 |
} |
|
95 |
|
|
79 | 96 |
public boolean traverseInternal(int traversal) throws OperationNotSupportedException |
80 | 97 |
{ |
81 | 98 |
throw new OperationNotSupportedException("Text.traverse(int) not supported !"); |
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 |
} |
eu.etaxonomy.taxeditor.store.rap/src/eu/etaxonomy/taxeditor/singlesource/ui/forms/UriWithLabelElementFacadeImpl.java | ||
---|---|---|
15 | 15 |
|
16 | 16 |
import javax.naming.OperationNotSupportedException; |
17 | 17 |
|
18 |
import org.eclipse.swt.events.ModifyEvent; |
|
19 |
import org.eclipse.swt.events.ModifyListener; |
|
20 |
|
|
21 |
import eu.etaxonomy.cdm.common.CdmUtils; |
|
18 | 22 |
import eu.etaxonomy.taxeditor.ui.forms.CdmFormFactory; |
19 | 23 |
import eu.etaxonomy.taxeditor.ui.forms.ICdmFormElement; |
20 | 24 |
|
... | ... | |
68 | 72 |
return null; |
69 | 73 |
} |
70 | 74 |
|
75 |
public void setTextInternal(String string) { |
|
76 |
ModifyListener[] modifyListeners = (ModifyListener[])ModifyEvent.getListeners(text); |
|
77 |
for (ModifyListener modifyListener : modifyListeners) { |
|
78 |
ModifyEvent.removeListener(text, modifyListener); |
|
79 |
} |
|
80 |
|
|
81 |
text.setText(CdmUtils.Nz(string)); |
|
82 |
|
|
83 |
for (ModifyListener modifyListener : modifyListeners) { |
|
84 |
ModifyEvent.addListener(text, modifyListener); |
|
85 |
} |
|
86 |
} |
|
87 |
|
|
71 | 88 |
public boolean traverseInternal(int traversal) throws OperationNotSupportedException |
72 | 89 |
{ |
73 | 90 |
throw new OperationNotSupportedException("Text.traverse(int) not supported !"); |
eu.etaxonomy.taxeditor.store.rcp/src/eu/etaxonomy/taxeditor/singlesource/ui/forms/LanguageStringWithLabelElementFacadeImpl.java | ||
---|---|---|
12 | 12 |
|
13 | 13 |
import javax.naming.OperationNotSupportedException; |
14 | 14 |
|
15 |
import org.eclipse.swt.SWT; |
|
16 |
import org.eclipse.swt.widgets.Listener; |
|
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; |
... | ... | |
78 | 82 |
{ |
79 | 83 |
return null; |
80 | 84 |
} |
85 |
|
|
86 |
public void setTextInternal(String string) { |
|
87 |
Listener[] listeners = text.getListeners(SWT.Modify); |
|
88 |
|
|
89 |
for (Listener listener : listeners) { |
|
90 |
text.removeListener(SWT.Modify, listener); |
|
91 |
} |
|
92 |
|
|
93 |
text.setText(CdmUtils.Nz(string)); |
|
94 |
|
|
95 |
for (Listener listener : listeners) { |
|
96 |
text.addListener(SWT.Modify, listener); |
|
97 |
} |
|
98 |
} |
|
99 |
|
|
81 | 100 |
|
82 | 101 |
public boolean traverseInternal(int traversal) throws OperationNotSupportedException |
83 | 102 |
{ |
eu.etaxonomy.taxeditor.store.rcp/src/eu/etaxonomy/taxeditor/singlesource/ui/forms/NumberWithLabelElementFacadeImpl.java | ||
---|---|---|
12 | 12 |
|
13 | 13 |
import javax.naming.OperationNotSupportedException; |
14 | 14 |
|
15 |
import org.eclipse.swt.SWT; |
|
16 |
import org.eclipse.swt.widgets.Listener; |
|
17 |
|
|
18 |
import eu.etaxonomy.cdm.common.CdmUtils; |
|
15 | 19 |
import eu.etaxonomy.taxeditor.ui.forms.CdmFormFactory; |
16 | 20 |
import eu.etaxonomy.taxeditor.ui.forms.ICdmFormElement; |
17 | 21 |
|
... | ... | |
76 | 80 |
return null; |
77 | 81 |
} |
78 | 82 |
|
83 |
public void setTextInternal(String string) { |
|
84 |
Listener[] listeners = text.getListeners(SWT.Modify); |
|
85 |
|
|
86 |
for (Listener listener : listeners) { |
|
87 |
text.removeListener(SWT.Modify, listener); |
|
88 |
} |
|
89 |
|
|
90 |
text.setText(CdmUtils.Nz(string)); |
|
91 |
|
|
92 |
for (Listener listener : listeners) { |
|
93 |
text.addListener(SWT.Modify, listener); |
|
94 |
} |
|
95 |
} |
|
96 |
|
|
79 | 97 |
public boolean traverseInternal(int traversal) throws OperationNotSupportedException |
80 | 98 |
{ |
81 | 99 |
return this.text.traverse(traversal); |
eu.etaxonomy.taxeditor.store.rcp/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.SWT; |
|
10 |
import org.eclipse.swt.widgets.Listener; |
|
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 |
|
... | ... | |
31 | 34 |
} |
32 | 35 |
|
33 | 36 |
protected Object getInstanceInternal (CdmFormFactory formFactory, |
34 |
ICdmFormElement parentElement, String labelString, |
|
35 |
String initialText, Integer textHeight, int style) { |
|
37 |
ICdmFormElement parentElement, String labelString, |
|
38 |
String initialText, Integer textHeight, int style) { |
|
39 |
|
|
40 |
return new TextWithLabelElementFacadeImpl( formFactory, parentElement, labelString, initialText, textHeight, style); |
|
41 |
} |
|
42 |
|
|
43 |
public void setTextInternal(String string) { |
|
44 |
Listener[] listeners = text.getListeners(SWT.Modify); |
|
45 |
|
|
46 |
for (Listener listener : listeners) { |
|
47 |
text.removeListener(SWT.Modify, listener); |
|
48 |
} |
|
36 | 49 |
|
37 |
return new TextWithLabelElementFacadeImpl( formFactory, parentElement, labelString, initialText, textHeight, style); |
|
50 |
text.setText(CdmUtils.Nz(string)); |
|
51 |
|
|
52 |
for (Listener listener : listeners) { |
|
53 |
text.addListener(SWT.Modify, listener); |
|
54 |
} |
|
38 | 55 |
} |
39 | 56 |
|
57 |
|
|
40 | 58 |
public boolean traverseInternal(int traversal) throws OperationNotSupportedException |
41 | 59 |
{ |
42 | 60 |
return this.text.traverse(traversal); |
eu.etaxonomy.taxeditor.store.rcp/src/eu/etaxonomy/taxeditor/singlesource/ui/forms/UriWithLabelElementFacadeImpl.java | ||
---|---|---|
15 | 15 |
|
16 | 16 |
import javax.naming.OperationNotSupportedException; |
17 | 17 |
|
18 |
import org.eclipse.swt.SWT; |
|
19 |
import org.eclipse.swt.widgets.Listener; |
|
20 |
|
|
21 |
import eu.etaxonomy.cdm.common.CdmUtils; |
|
18 | 22 |
import eu.etaxonomy.taxeditor.ui.forms.CdmFormFactory; |
19 | 23 |
import eu.etaxonomy.taxeditor.ui.forms.ICdmFormElement; |
20 | 24 |
|
... | ... | |
67 | 71 |
return null; |
68 | 72 |
} |
69 | 73 |
|
74 |
public void setTextInternal(String string) { |
|
75 |
Listener[] listeners = text.getListeners(SWT.Modify); |
|
76 |
|
|
77 |
for (Listener listener : listeners) { |
|
78 |
text.removeListener(SWT.Modify, listener); |
|
79 |
} |
|
80 |
|
|
81 |
text.setText(CdmUtils.Nz(string)); |
|
82 |
|
|
83 |
for (Listener listener : listeners) { |
|
84 |
text.addListener(SWT.Modify, listener); |
|
85 |
} |
|
86 |
} |
|
87 |
|
|
70 | 88 |
public boolean traverseInternal(int traversal) throws OperationNotSupportedException |
71 | 89 |
{ |
72 | 90 |
return this.text.traverse(traversal); |
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 |
* |
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/ui/forms/CdmFormFactory.java | ||
---|---|---|
1317 | 1317 |
/** RAPSS:Modify: Two parameter required in Helios |
1318 | 1318 |
FormFonts.getInstance().markFinished(boldFont); |
1319 | 1319 |
*/ |
1320 |
FormFonts.getInstance().markFinished(boldFont); |
|
1320 |
FormFonts.getInstance().markFinished(boldFont, |
|
1321 |
getColors().getDisplay()); |
|
1321 | 1322 |
boldFont = null; |
1322 | 1323 |
} |
1323 | 1324 |
} |
Also available in: Unified diff
RAP-Version SingleSourced und scheint zu laufen