package devopsdistilled.operp.client.abstracts;

import devopsdistilled.operp.server.data.entity.Entiti;

public abstract class AbstractEntityPaneModel<E extends Entiti<?>, O extends EntityPaneModelObserver<E>>
		extends AbstractPaneModel<O> implements EntityPaneModel<E, O> {

	protected E entity;

	protected EntityOperation entityOperation;

	@Override
	public E getEntity() {
		return entity;
	}

	public void setEntity(E entity) {
	}

	@Override
	public EntityOperation getEntityOperation() {
		return entityOperation;
	}

	public void setEntityOperation(EntityOperation entityOperation) {
		this.entityOperation = entityOperation;
	}

	@Override
	public void setEntityAndEntityOperation(E entity,
			EntityOperation entityOperation) {
		this.entity = entity;
		this.entityOperation = entityOperation;

		for (O observer : observers) {
			observer.updateEntity(getEntity(), getEntityOperation());
		}

	}

}

@@ -398,47 +398,8 @@
 %09%7D%0A%0A
-%09public void setEntity(E entity) %7B%0A%09%7D%0A%0A
 %09@Ov
@@ -486,121 +486,8 @@
 %09%7D%0A%0A
-%09public void setEntityOperation(EntityOperation entityOperation) %7B%0A%09%09this.entityOperation = entityOperation;%0A%09%7D%0A%0A
 %09@Ov

Remove obsolete code