Project

General

Profile

Revision e34c0af1

IDe34c0af1644b57056e119b22a6e6d498521340c8
Parent 3141e5ac
Child 48af2464

Added by Patrick Plitzner almost 3 years ago

ref #6595 Set correct focus when opening a taxon/synonym

View differences:

eu.etaxonomy.taxeditor.editor/src/main/java/eu/etaxonomy/taxeditor/editor/e4/TaxonEditorInputE4.java
109 109
        if (taxonBase != null){
110 110
            if(taxonBase.isInstanceOf(Taxon.class)){
111 111
                Taxon taxon = CdmBase.deproxy(taxonBase, Taxon.class);
112
                setInitiallySelectedTaxonBase(taxon);
112 113

  
113 114
                if (taxon.getTaxonNodes().size() == 0 && taxon.isMisapplication()){
114 115
                    // TODO get accepted taxon
......
135 136
                	taxa.add(taxon);
136 137
                }
137 138
                setInputForMultipleTaxa(conversation, taxa);
139
                setInitiallySelectedTaxonBase(synonym);
138 140
            }
139 141
        }
140 142
    }
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
        selService.setSelection(new StructuredSelection(input.getTaxon()));
406
        if(input.getInitiallySelectedTaxonBase()!=null){
407
            selService.setSelection(new StructuredSelection(input.getInitiallySelectedTaxonBase()));
408
        }
409
        else{
410
            selService.setSelection(new StructuredSelection(input.getTaxon()));
411
        }
407 412
	}
408 413

  
409 414
   private void createDragSupport() {

Also available in: Unified diff

Add picture from clipboard (Maximum size: 40 MB)