ref #6925 Inject context into operations to allow sync/async execution
[taxeditor.git] / eu.etaxonomy.taxeditor.editor / src / main / java / eu / etaxonomy / taxeditor / editor / view / uses / operation / CreateUseRecordOperation.java
index 270eec97c747dd0110c6b5abca4d5dea3f3bdb7f..97056743b8c5d93d51f7ff226e20dfca73538cc7 100644 (file)
@@ -49,11 +49,12 @@ public class CreateUseRecordOperation extends AbstractPostOperation {
         * @param feature a {@link eu.etaxonomy.cdm.model.description.Feature} object.
         * @param postOperationEnabled a {@link eu.etaxonomy.taxeditor.operation.IPostOperationEnabled} object.
         */
-       public CreateUseRecordOperation(String label, IUndoContext undoContext, DescriptionBase<?> description, Feature feature, IPostOperationEnabled postOperationEnabled) {
-                       super(label, undoContext, (Taxon)null, postOperationEnabled);
+       public CreateUseRecordOperation(String label, IUndoContext undoContext, DescriptionBase<?> description,
+               Feature feature, IPostOperationEnabled postOperationEnabled) {
+           super(label, undoContext, null, postOperationEnabled);
 
-                       this.description = description;
-                       this.feature = feature;
+           this.description = description;
+           this.feature = feature;
        }