Project

General

Profile

« Previous | Next » 

Revision 49d3c2dd

Added by Katja Luther over 1 year ago

ref #10186: remove conversation holder

View differences:

eu.etaxonomy.taxeditor.navigation/src/main/java/eu/etaxonomy/taxeditor/navigation/navigator/Root.java
19 19
import org.eclipse.ui.IMemento;
20 20
import org.eclipse.ui.IPersistableElement;
21 21

  
22
import eu.etaxonomy.cdm.api.conversation.ConversationHolder;
23
import eu.etaxonomy.cdm.api.conversation.IConversationEnabled;
24 22
import eu.etaxonomy.cdm.api.service.IClassificationService;
25 23
import eu.etaxonomy.cdm.model.taxon.Classification;
26 24
import eu.etaxonomy.cdm.persistence.dto.TaxonNodeDto;
......
34 32
 * @created 02.06.2009
35 33
 * @version 1.0
36 34
 */
37
public class Root extends PlatformObject implements IAdaptable, IPersistableElement, IElementFactory, IConversationEnabled {
35
public class Root extends PlatformObject implements IAdaptable, IPersistableElement, IElementFactory {
38 36

  
39
	private final ConversationHolder conversation;
37
//	private final ConversationHolder conversation;
40 38
	private List<TaxonNodeDto> rootNodes = new ArrayList<>();
41 39

  
42 40
	/**
......
44 42
	 *
45 43
	 * @param conversation a {@link eu.etaxonomy.cdm.api.conversation.ConversationHolder} object.
46 44
	 */
47
	public Root (ConversationHolder conversation){
48
		this.conversation = conversation;
45
	public Root () {//ConversationHolder conversation){
46
//		this.conversation = conversation;
49 47
	}
50 48

  
51 49
	/**
......
108 106
		return null;
109 107
	}
110 108

  
111
	/* (non-Javadoc)
112
	 * @see eu.etaxonomy.cdm.persistence.hibernate.ICdmPostDataChangeObserver#update(eu.etaxonomy.cdm.persistence.hibernate.CdmDataChangeMap)
113
	 */
114
	@Override
115
	public void update(CdmDataChangeMap changeEvents) {}
116

  
117
	/* (non-Javadoc)
118
	 * @see eu.etaxonomy.cdm.api.conversation.IConversationEnabled#getConversationHolder()
119
	 */
120
	@Override
121
	public ConversationHolder getConversationHolder() {
122
		return conversation;
123
	}
124

  
109
		
125 110
	public void addRootNode(Classification newClassification){
126 111
	    newClassification = CdmStore.getService(IClassificationService.class).load(newClassification.getUuid());
127 112
	    boolean exist = false;

Also available in: Unified diff