From efc9727aec13c9cb232d941f060104968a04f53c Mon Sep 17 00:00:00 2001 From: Patrick Plitzner Date: Tue, 13 Sep 2016 17:04:26 +0200 Subject: [PATCH] Trim code --- .../input/AbstractBulkEditorInput.java | 92 +------------------ 1 file changed, 1 insertion(+), 91 deletions(-) diff --git a/eu.etaxonomy.taxeditor.bulkeditor/src/main/java/eu/etaxonomy/taxeditor/bulkeditor/input/AbstractBulkEditorInput.java b/eu.etaxonomy.taxeditor.bulkeditor/src/main/java/eu/etaxonomy/taxeditor/bulkeditor/input/AbstractBulkEditorInput.java index ee8a765bb..d57ea6866 100644 --- a/eu.etaxonomy.taxeditor.bulkeditor/src/main/java/eu/etaxonomy/taxeditor/bulkeditor/input/AbstractBulkEditorInput.java +++ b/eu.etaxonomy.taxeditor.bulkeditor/src/main/java/eu/etaxonomy/taxeditor/bulkeditor/input/AbstractBulkEditorInput.java @@ -41,8 +41,6 @@ import eu.etaxonomy.taxeditor.model.MessagingUtils; import eu.etaxonomy.taxeditor.store.CdmStore; /** - *

Abstract AbstractBulkEditorInput class.

- * * @author p.ciardelli * @created 25.06.2009 * @version 1.0 @@ -63,26 +61,13 @@ public abstract class AbstractBulkEditorInput extends CdmEnt this.conversation = CdmStore.createConversation(); } - /** - *

NewInstance

- * - * @param inputType a {@link eu.etaxonomy.taxeditor.bulkeditor.input.BulkEditorInputTypeValues.BulkEditorInputType} object. - * @return a {@link eu.etaxonomy.taxeditor.bulkeditor.input.AbstractBulkEditorInput} object. - */ static public AbstractBulkEditorInput NewInstance(BulkEditorInputType inputType) { return BulkEditorInputType.getInput(inputType); } - /** - *

NewInstance

- * - * @param entity a {@link eu.etaxonomy.cdm.model.common.IdentifiableEntity} object. - * @return a {@link eu.etaxonomy.taxeditor.bulkeditor.input.AbstractBulkEditorInput} object. - */ public static AbstractBulkEditorInput NewInstance(IdentifiableEntity entity) { - BulkEditorInputType inputType = BulkEditorInputType.getByType(entity.getClass()); AbstractBulkEditorInput editorInput = NewInstance(inputType); @@ -92,12 +77,6 @@ public abstract class AbstractBulkEditorInput extends CdmEnt return editorInput; } - /** - *

listEntities

- * - * @param configurator a {@link eu.etaxonomy.cdm.api.service.config.IIdentifiableEntityServiceConfigurator} object. - * @return a {@link java.util.List} object. - */ protected abstract List listEntities(IIdentifiableEntityServiceConfigurator configurator); protected abstract T loadEntity(UUID entityUuid); @@ -106,60 +85,27 @@ public abstract class AbstractBulkEditorInput extends CdmEnt this.entityUuid = entityUuid; } - /** - *

Getter for the field entityUuid.

- * - * @return a {@link java.util.UUID} object. - */ public UUID getEntityUuid() { return entityUuid; } - - /* (non-Javadoc) - * @see org.eclipse.ui.IEditorInput#exists() - */ - /** - *

exists

- * - * @return a boolean. - */ @Override public boolean exists() { // TODO Auto-generated method stub return false; } - /* (non-Javadoc) - * @see org.eclipse.ui.IEditorInput#getImageDescriptor() - */ - /** - *

getImageDescriptor

- * - * @return a {@link org.eclipse.jface.resource.ImageDescriptor} object. - */ @Override public ImageDescriptor getImageDescriptor() { // TODO Auto-generated method stub return null; } - /* (non-Javadoc) - * @see org.eclipse.ui.IEditorInput#getPersistable() - */ - /** - *

getPersistable

- * - * @return a {@link org.eclipse.ui.IPersistableElement} object. - */ @Override public IPersistableElement getPersistable() { return null; } - /* (non-Javadoc) - * @see org.eclipse.core.runtime.IAdaptable#getAdapter(java.lang.Class) - */ /** {@inheritDoc} */ @Override @SuppressWarnings("unchecked") @@ -167,11 +113,6 @@ public abstract class AbstractBulkEditorInput extends CdmEnt return null; } - /** - *

Setter for the field query.

- * - * @param bulkEditorQuery a {@link eu.etaxonomy.taxeditor.bulkeditor.IBulkEditorQuery} object. - */ public void performSearch(final BulkEditorQuery bulkEditorQuery) { List entityList = new ArrayList(); @@ -197,29 +138,14 @@ public abstract class AbstractBulkEditorInput extends CdmEnt model = entityList; } - /** - *

isMergingEnabled

- * - * @return a boolean. - */ public boolean isMergingEnabled() { return false; } - /** - *

isMergingEnabled

- * - * @return a boolean. - */ public boolean isConvertingEnabled() { return false; } - /** - *

isMarkerTypeEditingEnabled

- * - * @param markerType a {@link eu.etaxonomy.cdm.model.common.MarkerType} object. - * @return a boolean. - */ + public boolean isMarkerTypeEditingEnabled(MarkerType markerType) { return false; } @@ -257,9 +183,6 @@ public abstract class AbstractBulkEditorInput extends CdmEnt return entityCreator; } - /** - * @return - */ protected abstract IEntityCreator createEntityCreator(); /** @@ -286,10 +209,6 @@ public abstract class AbstractBulkEditorInput extends CdmEnt return entity.getClass().getSimpleName(); } - /** - * @param entity - * @return - */ public String getText(T entity) { if(entity instanceof IdentifiableEntity){ IdentifiableEntity identifiableEntity = (IdentifiableEntity) HibernateProxyHelper.deproxy(entity); @@ -300,9 +219,6 @@ public abstract class AbstractBulkEditorInput extends CdmEnt return "No text. Implement in subclass"; } - /** - * @return - */ public List getModel() { return model; } @@ -317,18 +233,12 @@ public abstract class AbstractBulkEditorInput extends CdmEnt } } - /* (non-Javadoc) - * @see eu.etaxonomy.taxeditor.session.ICdmEntitySessionEnabled#getRootEntities() - */ @Override public List getRootEntities() { return getModel(); } - /* (non-Javadoc) - * @see eu.etaxonomy.taxeditor.session.ICdmEntitySessionEnabled#getPropertyPathsMap() - */ @Override public Map> getPropertyPathsMap() { // TODO Auto-generated method stub -- 2.34.1