Class AbstractDtModelEditingSupportAwareAction

    • Constructor Detail

      • AbstractDtModelEditingSupportAwareAction

        public AbstractDtModelEditingSupportAwareAction​(IModelEditingSupport modelEditingSupport)
        Initializes the instance with the given arguments.
        modelEditingSupport - the IModelEditingSupport instance, cannot be null.
    • Method Detail

      • isEnabledFor

        public boolean isEnabledFor​(org.eclipse.emf.ecore.EObject model,
                                    org.eclipse.emf.ecore.EStructuralFeature feature,
                                    ISelection selection)
        Checks whether the action is enabled for a given model, model feature and selection..
        Returns true if the specified selection incapsulates the EObject instance that can be edited.
        model - model to check.
        feature - feature to check.
        selection - selection to check.
        true if action is enabled, false otherwise.