Class TopObjectsGetter
- java.lang.Object
-
- com._1c.g5.v8.dt.compare.datasource.TopObjectsGetter
-
public final class TopObjectsGetter extends Object
A utility class providing methods for obtaining top objects fromIComparisonDataSource
.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description 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.static List<TopObjectInfo>
getTopObjectsInfo(IComparisonDataSource dataSource, org.eclipse.xtext.scoping.IScopeProvider scopeProvider, List<org.eclipse.emf.ecore.EClass> eClasses)
Gets a list ofTopObjectInfo
instances for top objects of the specifiedEClass
'es in the specified data source.
-
-
-
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 ofTopObjectInfo
instances for top objects of the specifiedEClass
'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 benull
scopeProvider
- the scope provider for symbolic links, cannot benull
eClasses
- the list ofEClass
'es of the top objects; ifnull
or empty, all top objects are returned, regardless of theirEClass
'es- Returns:
- the list of
TopObjectInfo
instances, nevernull
-
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 benull
scopeProvider
- the scope provider for symbolic links, cannot benull
eClasses
- the list ofEClass
'es of the top objects; ifnull
or empty, all top objects are returned, regardless of theirEClass
'es- Returns:
- all top level object symlinks, never
null
-
-