import org.apache.log4j.Logger;
import org.eclipse.jface.text.source.Annotation;
+import eu.etaxonomy.cdm.api.service.config.DeleteConfiguratorBase;
+import eu.etaxonomy.cdm.api.service.config.NameDeletionConfigurator;
+
/**
* An <code>Annotation</code> which spans an entire line and holds an object associated
* with the line in an <code>IEntityContainer</code>.
private boolean markedAsMerged;
private boolean markedAsNew;
private T mergeTarget;
+ private DeleteConfiguratorBase configurator= null;
/**
lineDisplayStrategy.setStatusMessage(entity + " deleted.", entity);
}
}
-
+ public void markAsDeleted(DeleteConfiguratorBase config) {
+ super.markDeleted(true);
+ this.configurator = config;
+ if (!isMarkedAsMerged()) {
+ lineDisplayStrategy.setStatusMessage(entity + " deleted.", entity);
+ }
+ }
/* (non-Javadoc)
* @see eu.etaxonomy.taxeditor.bulkeditor.IEntityContainer#markAsMerged(eu.etaxonomy.cdm.model.common.CdmBase)
*/
public void setEntity(Object entity) {
this.entity = (T) entity;
}
+
+ public DeleteConfiguratorBase getDeleteConfigurator() {
+ return this.configurator;
+ }
+
+ public void setDeleteConfigurator(DeleteConfiguratorBase config) {
+ this.configurator = config;
+
+ }
}