Class SetSetRightsForNewObjectsTask

  • All Implemented Interfaces:
    IBmTask<org.eclipse.core.runtime.IStatus>

    public class SetSetRightsForNewObjectsTask
    extends BmBasicTask1<Role>
    Sets 'setForNewObjects' flag value.
    • Constructor Detail

      • SetSetRightsForNewObjectsTask

        public SetSetRightsForNewObjectsTask​(Role role,
                                             boolean setForNewObjects,
                                             Function<org.eclipse.emf.ecore.EClass,​Collection<Right>> availableRightsGetter,
                                             org.eclipse.core.resources.IProject project,
                                             IBmEmfIndexManager bmEmfIndexManager,
                                             org.eclipse.xtext.naming.IQualifiedNameProvider qualifiedNameProvider)
        Creates a new instance.
        Parameters:
        role - the role to set right for, cannot be null
        setForNewObjects - a new 'setForNewObjects' flag value
        availableRightsGetter - the getter to get available rights for EClass, cannot be null
        project - the associated project, cannot be null
        bmEmfIndexManager - the BM Emf index manager, cannot be null
        qualifiedNameProvider - the qualified name provider, cannot be null
    • Method Detail

      • execute

        public org.eclipse.core.runtime.IStatus execute​(Role role,
                                                        org.eclipse.core.runtime.IProgressMonitor monitor)
        Specified by:
        execute in class BmBasicTask1<Role>