Project

General

Profile

Revision 3fd7ed16

ID3fd7ed16f6bfdf6f0b3e9be912e5be1cc8a7a4c1
Parent b9742a2a
Child 78c4b063

Added by Patrick Plitzner almost 3 years ago

ref #6595 Fix initial selection for synonymy and accepted taxa

View differences:

eu.etaxonomy.taxeditor.editor/src/main/java/eu/etaxonomy/taxeditor/editor/e4/TaxonEditorInputE4.java
95 95
            MessagingUtils.warningDialog(Messages.TaxonEditorInput_NOT_IMPLEMENTED, TaxonEditorInputE4.class, Messages.TaxonEditorInput_NOT_IMPLEMENTED_MESSAGE);
96 96
        }
97 97
        init(taxonNode);
98
        setInitiallySelectedTaxonBase(getTaxon());
98 99

  
99 100
    }
100 101

  
eu.etaxonomy.taxeditor.editor/src/main/java/eu/etaxonomy/taxeditor/editor/name/e4/TaxonNameEditorE4.java
403 403
        setPartName();
404 404

  
405 405
        //set initial selection
406
        if(input.getInitiallySelectedTaxonBase()!=null){
407
            selService.setSelection(new StructuredSelection(input.getInitiallySelectedTaxonBase()));
408
        }
409
        else{
410
            selService.setSelection(new StructuredSelection(input.getTaxon()));
406
        TaxonBase initiallySelectedTaxonBase = input.getInitiallySelectedTaxonBase();
407
        if(initiallySelectedTaxonBase!=null){
408
            selService.setSelection(new StructuredSelection(initiallySelectedTaxonBase));
409
            getContainer(initiallySelectedTaxonBase).setSelected();
411 410
        }
412 411
	}
413 412

  

Also available in: Unified diff

Add picture from clipboard (Maximum size: 40 MB)