Interface IMdObjectByTypeProvider


  • public interface IMdObjectByTypeProvider
    Provider that allow client to get effective (i.e. project relation aware) collections of object of specified type. Clients can get top objects from this provider as they can get it from configuration object, but provider can give collection of effective value, for example: get all common pictures/commands/common attributes from configuration of base project if client specify extension project. No inheritance support, so you can't specify base type to get all objects. Internal EDT usage only.
    Restriction:
    This interface is not intended to be extended by clients.
    Restriction:
    This interface is not intended to be implemented by clients.
    • Method Detail

      • getEffectiveObjects

        <T extends MdObjectCollection<T> getEffectiveObjects​(Class<T> type,
                                                               IDtProject project)
        Get effective (project relation aware) collection of top object by specified type and project
        Parameters:
        type - the required object type, not null
        project - the current project, not null
        Returns:
        coolection of objects from specified project or from it's base project, not null
      • getEffectiveObjects

        <T extends MdObjectCollection<T> getEffectiveObjects​(Class<T> type,
                                                               org.eclipse.emf.ecore.EObject object)
        Get effective (project relation aware) collection of top object by specified type and EObject
        Parameters:
        type - the required object type, not null
        object - the EObject, not null
        Returns:
        coolection of objects from specified object project or from it's base project, not null