Project

General

Profile

« Previous | Next » 

Revision deffae8c

Added by Patrick Plitzner over 6 years ago

ref #6925 Fix part initialisation for open handlers

View differences:

eu.etaxonomy.taxeditor.editor/src/main/java/eu/etaxonomy/taxeditor/editor/view/checklist/ChecklistEditorInput.java
27 27
import eu.etaxonomy.cdm.model.taxon.Taxon;
28 28
import eu.etaxonomy.cdm.model.taxon.TaxonBase;
29 29
import eu.etaxonomy.cdm.model.taxon.TaxonNode;
30
import eu.etaxonomy.cdm.persistence.dto.MergeResult;
31 30
import eu.etaxonomy.taxeditor.editor.CdmEntitySessionInput;
32 31
import eu.etaxonomy.taxeditor.store.CdmStore;
33 32

  
......
63 62
        this.taxonNode =CdmStore.getService(ITaxonNodeService.class).load(taxonNode.getUuid(), getTaxonNodePropertyPaths());
64 63
        getChildTaxa(taxonNode);
65 64
        classification = taxonNode.getClassification();
66
        
65

  
67 66
    }
68
    
67

  
69 68

  
70 69
    /**
71 70
     * @param taxonNode2
......
93 92
        initSession();
94 93
        this.classification = CdmStore.getCurrentApplicationConfiguration().getClassificationService().load(classification.getUuid());
95 94
        getChildTaxa(classification.getRootNode());
96
       
95

  
97 96
    }
98 97

  
99 98

  
......
127 126
    public List<Taxon> getTaxa() {
128 127
		return taxa;
129 128
	}
130
    
129

  
131 130
    /* (non-Javadoc)
132 131
     * @see org.eclipse.ui.IEditorInput#getName()
133 132
     */
134 133
    @Override
135 134
    public String getName() {
136
        if(taxonNode != null && taxonNode.getTaxon() !=null){
135
        if(taxonNode != null && taxonNode.getTaxon()!=null){
137 136
            return taxonNode.getTaxon().getName().getTitleCache();
138 137
        }else{
139 138
            return classification.getTitleCache();
......
237 236
            CdmStore.getService(ITaxonService.class).merge(taxon, true);
238 237
        }
239 238

  
240
    
239

  
241 240
    }
242 241

  
243 242
    /* (non-Javadoc)
......
254 253
    public ConversationHolder getConversation() {
255 254
        return conversation;
256 255
    }
257
    
256

  
258 257
    private List<String> getTaxonNodePropertyPaths() {
259 258
        List<String> taxonNodePropertyPaths = new ArrayList<String>();
260 259
        for(String propertyPath : getTaxonBasePropertyPaths()) {
......
304 303

  
305 304
	public void setTaxa(List<Taxon> taxonList) {
306 305
		this.taxa = taxonList;
307
		
306

  
308 307
	}
309
    
308

  
310 309
//    @Override
311 310
//    public void dispose(){
312 311
//    	conversation.unbind();

Also available in: Unified diff