public abstract class AbstractDescriptionPostOperation<T extends eu.etaxonomy.cdm.model.description.IDescribable,D extends eu.etaxonomy.cdm.model.description.DescriptionBase> extends AbstractPostOperation<T>
Modifier and Type | Field and Description |
---|---|
protected D |
description |
element, postOperationEnabled
Constructor and Description |
---|
AbstractDescriptionPostOperation(java.lang.String label,
org.eclipse.core.commands.operations.IUndoContext undoContext,
T describable,
IPostOperationEnabled postOperationEnabled) |
AbstractDescriptionPostOperation(java.lang.String label,
org.eclipse.core.commands.operations.IUndoContext undoContext,
T describable,
IPostOperationEnabled postOperationEnabled,
boolean isImageGallery) |
Modifier and Type | Method and Description |
---|---|
org.eclipse.core.runtime.IStatus |
execute(org.eclipse.core.runtime.IProgressMonitor monitor,
org.eclipse.core.runtime.IAdaptable info) |
protected abstract void |
initDescription()
Creates the description and attaches it to the operated element.
|
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) |
getCdmEntitySessionEnabled, getPostOperationEnabled, postExecute
protected D extends eu.etaxonomy.cdm.model.description.DescriptionBase description
public AbstractDescriptionPostOperation(java.lang.String label, org.eclipse.core.commands.operations.IUndoContext undoContext, T describable, IPostOperationEnabled postOperationEnabled)
public AbstractDescriptionPostOperation(java.lang.String label, org.eclipse.core.commands.operations.IUndoContext undoContext, T describable, IPostOperationEnabled postOperationEnabled, boolean isImageGallery)
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
protected abstract void initDescription()
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.