Interface IModelEditingSupport


  • public interface IModelEditingSupport
    This service allows clients to check EObject for deleting and editing operation. It aggregates information from all registered IModelEditingSupportProvider.
    Editing operation - change inner object property, such as "name", "comment" and so on. But clients shouldn't change UUID for MdObject.
    The final result of possibility editing and deleting operation for model object is conjunction of results from aggregated IModelEditingSupportProvider.
    Restriction:
    This interface is not intended to be extended by clients.
    Restriction:
    This interface is not intended to be implemented by clients.
    • Method Detail

      • canEdit

        boolean canEdit​(org.eclipse.emf.ecore.EObject eObject,
                        EditingMode mode)
        Checks that eObject is editable
        Parameters:
        eObject - checking EObject, can't be null
        mode - the editing mode, can't be null
        Returns:
        true if checking object can be editted, false otherwise
      • canDelete

        boolean canDelete​(org.eclipse.emf.ecore.EObject eObject,
                          EditingMode mode)
        Checks that eObject is deletable
        Parameters:
        eObject - checking EObject, can't be null
        mode - the editing mode, can't be null
        Returns:
        true if checking object can be deleted, false otherwise