Project

General

Profile

« Previous | Next » 

Revision 0fca7e83

Added by Jürgen Koch almost 13 years ago

First adjustments for the web based taxeditor with the http invoker

View differences:

eu.etaxonomy.taxeditor.editor/src/main/java/eu/etaxonomy/taxeditor/editor/MultiPageTaxonEditor.java
25 25

  
26 26
import eu.etaxonomy.cdm.api.conversation.ConversationHolder;
27 27
import eu.etaxonomy.cdm.api.conversation.IConversationEnabled;
28
import eu.etaxonomy.cdm.api.service.ITaxonService;
28 29
import eu.etaxonomy.cdm.model.common.CdmBase;
29 30
import eu.etaxonomy.cdm.model.name.TaxonNameBase;
30 31
import eu.etaxonomy.cdm.model.taxon.Taxon;
......
37 38
import eu.etaxonomy.taxeditor.model.IDirtyMarkableSelectionProvider;
38 39
import eu.etaxonomy.taxeditor.model.IPartContentHasDetails;
39 40
import eu.etaxonomy.taxeditor.operation.IPostOperationEnabled;
41
import eu.etaxonomy.taxeditor.store.CdmStore;
40 42

  
41 43
/**
42 44
 *
......
126 128
				monitor.worked(1);
127 129
			}
128 130
			
131
			CdmStore.getService(ITaxonService.class).saveOrUpdate(getTaxon());
132
			
129 133
			// commit the conversation and start a new transaction immediately
130 134
			conversation.commit(true);
131 135
			monitor.worked(1);
......
232 236
    protected void setPartName() {
233 237
        
234 238
    	String partName = null; 
235
//    	TaxonNameBase<?, ?> name = getTaxon().getName();
236
//    	
237
//    	if (name != null) {
238
//    		partName = name.getTitleCache();
239
//    	}
239
    	TaxonNameBase<?, ?> name = getTaxon().getName();
240
    	
241
    	if (name != null) {
242
    		partName = name.getTitleCache();
243
    	}
240 244
    	
241 245
    	if (partName == null || partName.equals("")) {
242 246
    		partName = ("New taxon");

Also available in: Unified diff