import eu.etaxonomy.cdm.model.molecular.SingleReadAlignment;
import eu.etaxonomy.taxeditor.editor.handler.alignmenteditor.ToggleInsertOverwriteHandler;
import eu.etaxonomy.taxeditor.editor.handler.alignmenteditor.ToggleLeftRightInsertionHandler;
+import eu.etaxonomy.taxeditor.model.MessagingUtils;
import eu.etaxonomy.taxeditor.store.CdmStore;
import eu.etaxonomy.taxeditor.view.derivateSearch.DerivateLabelProvider;
singleReadAlignment.getShifts());
cdmMap.put(id, singleReadAlignment);
}
- catch (IOException e) {
- e.printStackTrace(); //TODO Output to user (Possibly collect for all pherograms and display in the end.)
- }
- catch (UnsupportedChromatogramFormatException e) {
- e.printStackTrace(); //TODO Output to user (Possibly collect for all pherograms and display in the end.)
+ catch (Exception e) { // Usually due to an error while trying to read the pherogram (e.g. due to an unsupported format or an invalid URI).
+ MessagingUtils.errorDialog("Error", null, "A single read was skipped because of the following error:\n\n" +
+ e.getLocalizedMessage(), "eu.etaxonomy.taxeditor.editor", e, false);
}
}
AlignmentModel provider = getReadsArea().getAlignmentModel();
PherogramProvider pherogramProvider = null;
if (pherogramURI != null) {
- pherogramProvider = readPherogram(pherogramURI); // Must happen before a sequence is added, because it might throw an exception.
- if (reverseComplemented) {
- pherogramProvider = new ReverseComplementPherogramProvider(pherogramProvider);
- }
+ pherogramProvider = readPherogram(pherogramURI); // Must happen before a sequence is added, because it might throw an exception.
+ if (reverseComplemented) {
+ pherogramProvider = new ReverseComplementPherogramProvider(pherogramProvider);
+ }
}
// Create sequence: