Project

General

Profile

« Previous | Next » 

Revision a1a8b581

Added by Cherian Mathew over 8 years ago

#5300 Implement remoting in Alignment Editor

View differences:

eu.etaxonomy.taxeditor.molecular/src/main/java/eu/etaxonomy/taxeditor/molecular/editor/AlignmentEditor.java
371 371

  
372 372
            //re-loading sequence to avoid session conflicts
373 373
    		Sequence sequenceNode = CdmStore.getService(ISequenceService.class).load(((AlignmentEditorInput)getEditorInput()).getSequenceNodeUuid());
374
    		((AlignmentEditorInput)getEditorInput()).setSequenceNode(sequenceNode);
374 375
    		StringAdapter stringProvider = new StringAdapter(getEditableConsensusArea().getAlignmentModel(), false);  // Throws an exception if a token has more than one character.
375 376

  
376 377
    		// Write consensus sequence:
......
415 416
            }
416 417
            monitor.worked(1);
417 418

  
419
            ((AlignmentEditorInput)getEditorInput()).merge();
418 420
            // Commit the conversation and start a new transaction immediately:
419 421
            conversationHolder.commit(true);
420 422
            monitor.worked(1);
......
490 492
        if(conversationHolder!=null){
491 493
            conversationHolder.bind();
492 494
        }
495
        ((AlignmentEditorInput)getEditorInput()).bind();
493 496
    }
494 497

  
498
    @Override
499
    public void dispose() {
500
        ((AlignmentEditorInput)getEditorInput()).dispose();
501
    }
495 502

  
496 503
    public boolean isInsertMode() {
497 504
        return getAlignmentsContainer().getEditSettings().isInsert();

Also available in: Unified diff