Revision 41e2f693
Added by Cherian Mathew over 9 years ago
eu.etaxonomy.taxeditor.navigation/src/main/java/eu/etaxonomy/taxeditor/navigation/search/SearchBar.java | ||
---|---|---|
35 | 35 |
import org.eclipse.ui.swt.IFocusService; |
36 | 36 |
|
37 | 37 |
import eu.etaxonomy.cdm.api.service.config.IFindTaxaAndNamesConfigurator; |
38 |
import eu.etaxonomy.taxeditor.model.MessagingUtils; |
|
38 | 39 |
import eu.etaxonomy.taxeditor.navigation.NavigationUtil; |
39 | 40 |
import eu.etaxonomy.taxeditor.navigation.internal.TaxeditorNavigationPlugin; |
40 | 41 |
import eu.etaxonomy.taxeditor.preference.IPreferenceKeys; |
... | ... | |
177 | 178 |
} |
178 | 179 |
|
179 | 180 |
if("*".equals(searchString.trim())){ |
180 |
NavigationUtil.warningDialog(Messages.SearchBar_2, this, Messages.SearchBar_3);
|
|
181 |
MessagingUtils.warningDialog(Messages.SearchBar_2, this, Messages.SearchBar_3);
|
|
181 | 182 |
return; |
182 | 183 |
} |
183 | 184 |
|
... | ... | |
214 | 215 |
IWorkbenchPage.VIEW_ACTIVATE); |
215 | 216 |
((SearchResultView) resultsView).performSearch(configurator); |
216 | 217 |
} catch (PartInitException e) { |
217 |
NavigationUtil.error(this.getClass(), Messages.SearchBar_4, e);
|
|
218 |
MessagingUtils.error(this.getClass(), Messages.SearchBar_4, e);
|
|
218 | 219 |
} |
219 | 220 |
} |
220 | 221 |
|
... | ... | |
275 | 276 |
*/ |
276 | 277 |
@Override |
277 | 278 |
public void widgetSelected(SelectionEvent e) { |
278 |
NavigationUtil.info(Messages.SearchBar_5);
|
|
279 |
MessagingUtils.info(Messages.SearchBar_5);
|
|
279 | 280 |
SearchOption option = (SearchOption) e.widget.getData(); |
280 | 281 |
|
281 | 282 |
switch (option){ |
Also available in: Unified diff
Moved all logging and dialog functionality to the new class MessagingUtils.
Refactoring code to adapt to above change.
Added new custom error dialog - CdmErrorDialog
Added runtime exception handling to the ApplicationWorkbenchAdvisor by adding a custom status handler