public class AddMediaToImageGalleryOperation extends AbstractPostTaxonOperation
Media
and adds it to the currently selected DescriptionBase
.parentNodeUuid, taxonNode
element, postOperationEnabled
Modifier | Constructor and Description |
---|---|
protected |
AddMediaToImageGalleryOperation(eu.etaxonomy.cdm.model.media.Media media,
java.lang.String label,
org.eclipse.core.commands.operations.IUndoContext undoContext,
eu.etaxonomy.cdm.model.description.DescriptionBase<?> description,
IPostOperationEnabled postOperationEnabled) |
|
AddMediaToImageGalleryOperation(java.lang.String label,
org.eclipse.core.commands.operations.IUndoContext undoContext,
eu.etaxonomy.cdm.model.description.DescriptionBase<?> description,
IPostOperationEnabled postOperationEnabled)
Constructor for AddMediaToImageGalleryOperation.
|
Modifier and Type | Method and Description |
---|---|
org.eclipse.core.runtime.IStatus |
execute(org.eclipse.core.runtime.IProgressMonitor monitor,
org.eclipse.core.runtime.IAdaptable info) |
org.eclipse.core.runtime.IStatus |
redo(org.eclipse.core.runtime.IProgressMonitor monitor,
org.eclipse.core.runtime.IAdaptable info) |
org.eclipse.core.runtime.IStatus |
undo(org.eclipse.core.runtime.IProgressMonitor monitor,
org.eclipse.core.runtime.IAdaptable info) |
getSync, setSync
getCdmEntitySessionEnabled, getPostOperationEnabled, postExecute
public AddMediaToImageGalleryOperation(java.lang.String label, org.eclipse.core.commands.operations.IUndoContext undoContext, eu.etaxonomy.cdm.model.description.DescriptionBase<?> description, IPostOperationEnabled postOperationEnabled)
Constructor for AddMediaToImageGalleryOperation.
undoContext
- a IUndoContext
object.taxon
- a Taxon
object.postOperationEnabled
- a IPostOperationEnabled
object.label
- a String
object.description
- a DescriptionBase
object.protected AddMediaToImageGalleryOperation(eu.etaxonomy.cdm.model.media.Media media, java.lang.String label, org.eclipse.core.commands.operations.IUndoContext undoContext, eu.etaxonomy.cdm.model.description.DescriptionBase<?> description, IPostOperationEnabled postOperationEnabled)
public org.eclipse.core.runtime.IStatus execute(org.eclipse.core.runtime.IProgressMonitor monitor, org.eclipse.core.runtime.IAdaptable info) throws org.eclipse.core.commands.ExecutionException
execute
in interface org.eclipse.core.commands.operations.IUndoableOperation
execute
in class org.eclipse.core.commands.operations.AbstractOperation
org.eclipse.core.commands.ExecutionException
public org.eclipse.core.runtime.IStatus redo(org.eclipse.core.runtime.IProgressMonitor monitor, org.eclipse.core.runtime.IAdaptable info) throws org.eclipse.core.commands.ExecutionException
redo
in interface org.eclipse.core.commands.operations.IUndoableOperation
redo
in class org.eclipse.core.commands.operations.AbstractOperation
org.eclipse.core.commands.ExecutionException
public org.eclipse.core.runtime.IStatus undo(org.eclipse.core.runtime.IProgressMonitor monitor, org.eclipse.core.runtime.IAdaptable info) throws org.eclipse.core.commands.ExecutionException
undo
in interface org.eclipse.core.commands.operations.IUndoableOperation
undo
in class org.eclipse.core.commands.operations.AbstractOperation
org.eclipse.core.commands.ExecutionException
Copyright © 2007-2018. All Rights Reserved.