Class TopObjectsGetter


  • public final class TopObjectsGetter
    extends Object
    A utility class providing methods for obtaining top objects from IComparisonDataSource.
    • Method Detail

      • getTopObjectsInfo

        public static List<TopObjectInfo> getTopObjectsInfo​(IComparisonDataSource dataSource,
                                                            org.eclipse.xtext.scoping.IScopeProvider scopeProvider,
                                                            List<org.eclipse.emf.ecore.EClass> eClasses)
        Gets a list of TopObjectInfo instances for top objects of the specified EClass'es in the specified data source. If the data source is associated with Configuration-aware project, the order of the returned instances is the same as in the corresponding collection of the Configuration.
        Parameters:
        dataSource - the data source to get top object information for, cannot be null
        scopeProvider - the scope provider for symbolic links, cannot be null
        eClasses - the list of EClass'es of the top objects; if null or empty, all top objects are returned, regardless of their EClass'es
        Returns:
        the list of TopObjectInfo instances, never null
      • getSymlinksOfTopObjectsForConfigurationProject

        public static Map<org.eclipse.emf.ecore.EClass,​List<String>> getSymlinksOfTopObjectsForConfigurationProject​(IComparisonDataSource dataSource,
                                                                                                                          org.eclipse.xtext.scoping.IScopeProvider scopeProvider,
                                                                                                                          List<org.eclipse.emf.ecore.EClass> eClasses)
        Gets all top level object symlinks of the specified data source for a configuration project. The order of the returned symlinks is the same as in the corresponding collection of the Configuration object.
        Parameters:
        dataSource - the data source to get top object symlinks for, cannot be null
        scopeProvider - the scope provider for symbolic links, cannot be null
        eClasses - the list of EClass'es of the top objects; if null or empty, all top objects are returned, regardless of their EClass'es
        Returns:
        all top level object symlinks, never null