Class AbstractFeatureElementSupplier
java.lang.Object
com._1c.g5.v8.dt.compare.ui.partialmodel.AbstractElementSupplier
com._1c.g5.v8.dt.compare.ui.partialmodel.AbstractFeatureElementSupplier
- All Implemented Interfaces:
- IInnerElementSupplier
- Direct Known Subclasses:
- AbstractCmiCommandsSupplier,- AbstractCmiSupplier,- AdditionalIndexFeatureElementSupplier,- AdditionalIndexFieldsFeatureElementSupplier,- AdjustableBooleanForInnerElementSupplier,- EventHandlerSupplier,- ExcludedCommandsSupplier,- HtmlDocumentPageSupplier,- MultiReferenceGenericSupplier,- RoleRightsSupplier,- RoleTemplateVisibilitySupplier
Abstract supplier of inner elements for some feature.
- 
Field SummaryFieldsModifier and TypeFieldDescriptionprotected final ISymbolicLinkLocalizerthe symbolic link localizer
- 
Constructor SummaryConstructorsModifierConstructorDescriptionprotectedAbstractFeatureElementSupplier(ISymbolicLinkLocalizer symbolicLinkLocalizer) Constructor.
- 
Method SummaryModifier and TypeMethodDescriptionprotected final IPartialEqualNodecreateChildEqualNode(IPartialModelNode parent, AbstractComparedEmfObjects<?> parents, AbstractComparedEmfObjects<?> eObjects, ComparisonContext comparisonContext, org.eclipse.xtext.scoping.IScopeProvider scopeProvider) Creates a partial model node for the specified eObjects assumed to be equal for MAIN and OTHER sides.protected final IPartialModelNodecreateChildNode(IPartialModelNode parent, ComparisonNode comparisonNode, ComparisonContext comparisonContext, org.eclipse.xtext.scoping.IScopeProvider scopeProvider) Creates a partial model node for the specified comparison node.protected abstract IPartialEqualNodecreateEqualNode(IPartialFeatureNode parent, AbstractComparedEmfObjects<?> parents, AbstractComparedEmfObjects<?> eObjects, ComparisonContext comparisonContext, org.eclipse.xtext.scoping.IScopeProvider scopeProvider) Creates a partial model node for the specified eObjects assumed to be equal for MAIN and OTHER sides.protected abstract IPartialModelNodecreateNode(IPartialFeatureNode parent, ComparisonNode comparisonNode, ComparisonContext comparisonContext, org.eclipse.xtext.scoping.IScopeProvider scopeProvider) Creates a partial model node for the specified comparison node.getInnerElements(IPartialModelNode node, ComparisonContext comparisonContext, org.eclipse.xtext.scoping.IScopeProvider scopeProvider) Returns a list of inner elements for the specified partial model node.getSingleReferenceRepresentation(org.eclipse.emf.ecore.EObject object, org.eclipse.emf.ecore.EReference reference, IComparisonDataSource dataSource, org.eclipse.xtext.scoping.IScopeProvider scopeProvider) A utility method for obtaining a representation of a single reference of the specified EObject.protected StringlocalizeSymlink(String symlink, org.eclipse.emf.ecore.EObject contextObject, org.eclipse.emf.ecore.EStructuralFeature feature, Locale locale) Localizes given symbolic link.booleansupports(IPartialModelNode node) Checks if this provider supports the specified MD object property partial model node.Methods inherited from class com._1c.g5.v8.dt.compare.ui.partialmodel.AbstractElementSuppliercreateChildEqualNodes, createChildNodes, createEqualNodesObjectsCollector
- 
Field Details- 
symbolicLinkLocalizerthe symbolic link localizer
 
- 
- 
Constructor Details- 
AbstractFeatureElementSupplierConstructor.- Parameters:
- symbolicLinkLocalizer- the symbolic link localizer, cannot be- null
 
 
- 
- 
Method Details- 
getInnerElementspublic List<IPartialModelNode> getInnerElements(IPartialModelNode node, ComparisonContext comparisonContext, org.eclipse.xtext.scoping.IScopeProvider scopeProvider) Description copied from interface:IInnerElementSupplierReturns a list of inner elements for the specified partial model node.- Parameters:
- node- the partial model node, cannot be- null
- comparisonContext- the comparison context, cannot- null
- scopeProvider- the scope provider, cannot be- null
- Returns:
- a collection of inner elements, never null
 
- 
supportsDescription copied from interface:IInnerElementSupplierChecks if this provider supports the specified MD object property partial model node.- Parameters:
- node- the partial model node
- Returns:
- trueif the supplier supports the specified node, and- falseotherwise
 
- 
createChildEqualNodeprotected final IPartialEqualNode createChildEqualNode(IPartialModelNode parent, AbstractComparedEmfObjects<?> parents, AbstractComparedEmfObjects<?> eObjects, ComparisonContext comparisonContext, org.eclipse.xtext.scoping.IScopeProvider scopeProvider) Description copied from class:AbstractElementSupplierCreates a partial model node for the specified eObjects assumed to be equal for MAIN and OTHER sides.- Specified by:
- createChildEqualNodein class- AbstractElementSupplier
- Parameters:
- parent- the parent partial model node, not- null
- parents- the parent eObjects, not- null
- eObjects- the objects to create the partial node for, not- null
- comparisonContext- the comparison context, not- null
- scopeProvider- the scope provider, not- null
- Returns:
- a new partial model node, never null
 
- 
createChildNodeprotected final IPartialModelNode createChildNode(IPartialModelNode parent, ComparisonNode comparisonNode, ComparisonContext comparisonContext, org.eclipse.xtext.scoping.IScopeProvider scopeProvider) Description copied from class:AbstractElementSupplierCreates a partial model node for the specified comparison node.- Specified by:
- createChildNodein class- AbstractElementSupplier
- Parameters:
- parent- the parent partial model node, not- null
- comparisonNode- the comparison node for which to create the partial one, not- null
- comparisonContext- the comparison context, not- null
- scopeProvider- the scope provider, not- null
- Returns:
- a new partial model node, never null
 
- 
createEqualNodeprotected abstract IPartialEqualNode createEqualNode(IPartialFeatureNode parent, AbstractComparedEmfObjects<?> parents, AbstractComparedEmfObjects<?> eObjects, ComparisonContext comparisonContext, org.eclipse.xtext.scoping.IScopeProvider scopeProvider) Creates a partial model node for the specified eObjects assumed to be equal for MAIN and OTHER sides.- Parameters:
- parent- the parent partial model node, not- null
- parents- the parent eObjects, not- null
- eObjects- the objects to create the partial node for, not- null
- comparisonContext- the comparison context, not- null
- scopeProvider- the scope provider, not- null
- Returns:
- a new partial model node, never null
 
- 
createNodeprotected abstract IPartialModelNode createNode(IPartialFeatureNode parent, ComparisonNode comparisonNode, ComparisonContext comparisonContext, org.eclipse.xtext.scoping.IScopeProvider scopeProvider) Creates a partial model node for the specified comparison node.- Parameters:
- parent- the parent partial model node, not- null
- comparisonNode- the comparison node for which to create the partial one, not- null
- comparisonContext- the comparison context, not- null
- scopeProvider- the scope provider, not- null
- Returns:
- a new partial model node, never null
 
- 
getSingleReferenceRepresentationprotected Pair<String,String> getSingleReferenceRepresentation(org.eclipse.emf.ecore.EObject object, org.eclipse.emf.ecore.EReference reference, IComparisonDataSource dataSource, org.eclipse.xtext.scoping.IScopeProvider scopeProvider) A utility method for obtaining a representation of a single reference of the specified EObject.- Parameters:
- object- the object hosting the reference
- reference- the reference
- dataSource- the data source for obtaining the underlying symbolic link
- Returns:
- a pair of a raw symbolic link and its representation
 
- 
localizeSymlinkprotected String localizeSymlink(String symlink, org.eclipse.emf.ecore.EObject contextObject, org.eclipse.emf.ecore.EStructuralFeature feature, Locale locale) Localizes given symbolic link.- Returns:
- the localized symbolic link, never null
 
 
-