Revision 41e2f693
Added by Cherian Mathew over 9 years ago
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/ui/section/media/MediaRepresentationElement.java | ||
---|---|---|
21 | 21 |
import eu.etaxonomy.cdm.model.media.ImageFile; |
22 | 22 |
import eu.etaxonomy.cdm.model.media.MediaRepresentation; |
23 | 23 |
import eu.etaxonomy.cdm.model.media.MediaRepresentationPart; |
24 |
import eu.etaxonomy.taxeditor.store.StoreUtil;
|
|
24 |
import eu.etaxonomy.taxeditor.model.MessagingUtils;
|
|
25 | 25 |
import eu.etaxonomy.taxeditor.ui.element.AbstractFormSection; |
26 | 26 |
import eu.etaxonomy.taxeditor.ui.element.CdmFormFactory; |
27 | 27 |
import eu.etaxonomy.taxeditor.ui.element.ICdmFormElement; |
... | ... | |
120 | 120 |
text_suffix.setText(imageInfo.getSuffix()); |
121 | 121 |
getEntity().setSuffix(imageInfo.getSuffix()); |
122 | 122 |
} catch (IOException e) { |
123 |
StoreUtil.error(getClass(), e);
|
|
123 |
MessagingUtils.error(getClass(), e);
|
|
124 | 124 |
} catch (HttpException e) { |
125 |
StoreUtil.error(getClass(), e);
|
|
125 |
MessagingUtils.error(getClass(), e);
|
|
126 | 126 |
} |
127 | 127 |
} |
128 | 128 |
} |
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