Re-load sequence to avoid session conflicts.
authorPatric Plitzner <p.plitzner@bgbm.org>
Tue, 7 Jul 2015 11:53:57 +0000 (11:53 +0000)
committerPatric Plitzner <p.plitzner@bgbm.org>
Tue, 7 Jul 2015 11:53:57 +0000 (11:53 +0000)
eu.etaxonomy.taxeditor.editor/src/main/java/eu/etaxonomy/taxeditor/editor/molecular/AlignmentEditor.java

index 3c1327bb5da8c35f1b4b9057c4fee6bc5c666691..905ad361bf56cd07684a5b7aa008acebb4e9f202 100644 (file)
@@ -366,7 +366,8 @@ public class AlignmentEditor extends EditorPart {
                String taskName = "Saving alignment";
             monitor.beginTask(taskName, 3);
 
                String taskName = "Saving alignment";
             monitor.beginTask(taskName, 3);
 
-               Sequence sequenceNode = ((AlignmentEditorInput)getEditorInput()).getSequenceNode();
+            //re-loading sequence to avoid session conflicts
+               Sequence sequenceNode = CdmStore.getService(ISequenceService.class).load(((AlignmentEditorInput)getEditorInput()).getSequenceNode().getUuid());
                StringAdapter stringProvider = new StringAdapter(getEditableConsensusArea().getAlignmentModel(), false);  // Throws an exception if a token has more than one character.
 
                // Write consensus sequence:
                StringAdapter stringProvider = new StringAdapter(getEditableConsensusArea().getAlignmentModel(), false);  // Throws an exception if a token has more than one character.
 
                // Write consensus sequence: