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 collection of infos of the top objects of the specified data source.
        Parameters:
        dataSource - the data source to get top object information for, can not be null
        scopeProvider - the scope provider for symbolic links, can not be null
        eClasses - a list of EClass'es of the top objects. If null or empty, all top objects are returned, regardless of their EClass'es
        Returns:
        the collection of top object infos, never null
      • getSymlinksOfTopObjectsForConfigurationProject

        public static Map<org.eclipse.emf.ecore.EClass,​Collection<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.
        Parameters:
        dataSource - the data source to get top object symlinks for, can not be null
        scopeProvider - the scope provider for symbolic links, can not be null
        eClasses - a 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