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.store/src/main/java/eu/etaxonomy/taxeditor/ui/section/AbstractEntityCollectionElement.java
18 18
import org.eclipse.swt.widgets.Display;
19 19
import org.eclipse.ui.forms.widgets.TableWrapLayout;
20 20

  
21
import eu.etaxonomy.cdm.api.conversation.ConversationHolder;
22
import eu.etaxonomy.cdm.api.conversation.IConversationEnabled;
23 21
import eu.etaxonomy.cdm.common.CdmUtils;
24 22
import eu.etaxonomy.cdm.model.common.CdmBase;
25
import eu.etaxonomy.cdm.persistence.hibernate.CdmDataChangeMap;
26 23
import eu.etaxonomy.taxeditor.model.ImageResources;
27 24
import eu.etaxonomy.taxeditor.store.CdmStore;
28 25
import eu.etaxonomy.taxeditor.ui.element.AbstractCdmFormElement;
......
46 43
 */
47 44
public abstract class AbstractEntityCollectionElement<ENTITY>
48 45
        extends AbstractCdmFormElement
49
        implements IEntityElement<ENTITY>, SelectionListener,
50
              IConversationEnabled, IEnableableFormElement {
46
        implements IEntityElement<ENTITY>, SelectionListener, IEnableableFormElement {
51 47

  
52 48
	protected ENTITY entity;
53 49

  
......
213 209
        return box;
214 210
    }
215 211

  
216
	@Override
217
    public ConversationHolder getConversationHolder() {
218
		if (getParentElement() instanceof IConversationEnabled) {
219
			return ((IConversationEnabled) getParentElement())
220
					.getConversationHolder();
221
		}
222
		throw new IllegalArgumentException(
223
				"Parent element should be IConversationEnabled");
224
	}
225

  
226
	@Override
227
    public void update(CdmDataChangeMap changeEvents) {
228
	}
229

  
230 212
    public void setWarnForReferencedObjects(LabelElement warnForReferencedObjects) {
231 213
        this.warnForReferencedObjects = warnForReferencedObjects;
232 214
    }

Also available in: Unified diff