Project

General

Profile

« Previous | Next » 

Revision 41e2f693

Added by Cherian Mathew over 9 years ago

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

View differences:

eu.etaxonomy.taxeditor.bulkeditor/src/main/java/eu/etaxonomy/taxeditor/annotatedlineeditor/AnnotatedLineDocumentProvider.java
26 26
import org.eclipse.ui.texteditor.AbstractDocumentProvider;
27 27

  
28 28
import eu.etaxonomy.taxeditor.bulkeditor.input.AbstractBulkEditorInput;
29
import eu.etaxonomy.taxeditor.model.AbstractUtility;
29
import eu.etaxonomy.taxeditor.model.MessagingUtils;
30 30

  
31 31

  
32 32

  
......
113 113
					try {
114 114
						createAnnotatedLine(input, entity);
115 115
					} catch (BadLocationException e) {
116
						AbstractUtility.error(getClass(), "Problems creating annotated line: ", e);
116
						MessagingUtils.error(getClass(), "Problems creating annotated line: ", e);
117 117
					}
118 118
				}
119 119
			}
......
206 206
			}
207 207
			document.replace(offset, lineLength, text);
208 208
		} catch (BadLocationException e) {
209
			AbstractUtility.error(getClass(), "Problem updating annotated line: " ,e);
209
			MessagingUtils.error(getClass(), "Problem updating annotated line: " ,e);
210 210
		}
211 211
	}
212 212

  
......
363 363
					length += 2;
364 364
				}
365 365
			} catch (BadLocationException e1) {
366
				AbstractUtility.error(getClass(), "Problems removing annotated line", e1);
366
				MessagingUtils.error(getClass(), "Problems removing annotated line", e1);
367 367
			}
368 368

  
369 369
			try {
370 370
				document.replace(offset, length, "");
371 371
			} catch (BadLocationException e) {
372
				AbstractUtility.error(getClass(), "Problems removing annotated line", e);
372
				MessagingUtils.error(getClass(), "Problems removing annotated line", e);
373 373
			}
374 374
		}
375 375
	}

Also available in: Unified diff