Revision 9933241f
Added by Patrick Plitzner about 5 years ago
eu.etaxonomy.taxeditor.bulkeditor/src/main/java/eu/etaxonomy/taxeditor/bulkeditor/e4/BulkEditorSearchE4.java | ||
---|---|---|
30 | 30 |
import eu.etaxonomy.cdm.common.CdmUtils; |
31 | 31 |
import eu.etaxonomy.taxeditor.bulkeditor.BulkEditorQuery; |
32 | 32 |
import eu.etaxonomy.taxeditor.bulkeditor.BulkEditorSortCombo; |
33 |
import eu.etaxonomy.taxeditor.bulkeditor.BulkEditorUtil; |
|
34 | 33 |
import eu.etaxonomy.taxeditor.l10n.Messages; |
34 |
import eu.etaxonomy.taxeditor.model.ColorResources; |
|
35 | 35 |
import eu.etaxonomy.taxeditor.preference.Resources; |
36 | 36 |
import eu.etaxonomy.taxeditor.store.SearchManager; |
37 | 37 |
|
... | ... | |
116 | 116 |
|
117 | 117 |
text = new Text(parent, style); |
118 | 118 |
text.setText(DEFAULT_TEXT); |
119 |
text.setForeground(BulkEditorUtil.getColor(Resources.SEARCH_VIEW_FOREGROUND));
|
|
119 |
text.setForeground(ColorResources.getColor(Resources.SEARCH_VIEW_FOREGROUND));
|
|
120 | 120 |
|
121 | 121 |
text.addFocusListener(new FocusListener() { |
122 | 122 |
|
123 | 123 |
@Override |
124 | 124 |
public void focusGained(FocusEvent e) { |
125 |
text.setForeground(BulkEditorUtil.getColor(Resources.SEARCH_VIEW_FOCUS));
|
|
125 |
text.setForeground(ColorResources.getColor(Resources.SEARCH_VIEW_FOCUS));
|
|
126 | 126 |
if (DEFAULT_TEXT.equals(text.getText())) { |
127 | 127 |
text.setText(""); //$NON-NLS-1$ |
128 | 128 |
} |
... | ... | |
130 | 130 |
|
131 | 131 |
@Override |
132 | 132 |
public void focusLost(FocusEvent e) { |
133 |
if (CdmUtils.isEmpty(text.getText())) {
|
|
134 |
text.setForeground(BulkEditorUtil.getColor(Resources.SEARCH_VIEW_FOREGROUND));
|
|
133 |
if (CdmUtils.isBlank(text.getText())) {
|
|
134 |
text.setForeground(ColorResources.getColor(Resources.SEARCH_VIEW_FOREGROUND));
|
|
135 | 135 |
text.setText(DEFAULT_TEXT); |
136 | 136 |
} |
137 | 137 |
} |
Also available in: Unified diff
Remove usage of deprecated methods