Class ChangeTypeDescriptionTask

  • All Implemented Interfaces:

    public class ChangeTypeDescriptionTask
    extends BmBasicTask2<org.eclipse.emf.ecore.EObject,​TypeDescription>
    An IBmTask implementation for changing type of an EObject.
    • Constructor Detail

      • ChangeTypeDescriptionTask

        public ChangeTypeDescriptionTask​(org.eclipse.emf.ecore.EObject object,
                                         TypeDescription type,
                                         org.eclipse.emf.ecore.EStructuralFeature featureToChange,
                                         IModelEditingSupport editingSupport)
        object - is the EObject to change, cannot be null
        type - is the new TypeDescription, cannot be null
        featureToChange - is the feature to change, cannot be null
        editingSupport - is the model editing support, cannot be null
    • Method Detail

      • execute

        public org.eclipse.core.runtime.IStatus execute​(org.eclipse.emf.ecore.EObject object,
                                                        TypeDescription type,
                                                        org.eclipse.core.runtime.IProgressMonitor monitor)
        Specified by:
        execute in class BmBasicTask2<org.eclipse.emf.ecore.EObject,​TypeDescription>