Package com._1c.g5.v8.dt.md.compare.ui
Class AbstractMdAwarePartialModelController
- java.lang.Object
-
- com._1c.g5.v8.dt.compare.ui.partialmodel.AbstractEmfBasedPartialModelController
-
- com._1c.g5.v8.dt.md.compare.ui.AbstractMdAwarePartialModelController
-
- All Implemented Interfaces:
IPartialModelControllerDelegate
- Direct Known Subclasses:
RightsPartialModelController
public abstract class AbstractMdAwarePartialModelController extends AbstractEmfBasedPartialModelController
-
-
Field Summary
-
Fields inherited from class com._1c.g5.v8.dt.compare.ui.partialmodel.AbstractEmfBasedPartialModelController
scopeProvider, symbolicLinkLocalizer
-
-
Constructor Summary
Constructors Constructor Description AbstractMdAwarePartialModelController(ISymbolicLinkLocalizer symbolicLinkLocalizer)
Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected org.eclipse.emf.ecore.EObject
forEObject(IPartialModelNode node, ComparisonContext comparisonContext)
Gets eObject for which given partial model node was created.protected String
getLocalizedStringMapRepresentation(org.eclipse.emf.ecore.EObject object, org.eclipse.emf.ecore.EStructuralFeature feature)
protected String
getSingleRepresentation(IComparisonDataSource dataSource, org.eclipse.emf.ecore.EObject context, Object value, org.eclipse.emf.ecore.EStructuralFeature feature)
protected String
getSingleValueRepresentation(Object value)
protected String
getTypeRepresentation(IComparisonDataSource dataSource, org.eclipse.emf.ecore.EObject object, org.eclipse.emf.ecore.EStructuralFeature feature)
protected String
getValueRepresentation(IComparisonDataSource dataSource, org.eclipse.emf.ecore.EObject object, Object value, org.eclipse.emf.ecore.EStructuralFeature feature)
protected String
localizeSymbolicLink(org.eclipse.emf.ecore.EObject context, org.eclipse.emf.ecore.EStructuralFeature feature, String symlink)
protected void
registerInnerElementSuppliers(Consumer<IInnerElementSupplier> collector)
Gets the collection of registered inner elements suppliers used to form the customized nodes of the partial model.-
Methods inherited from class com._1c.g5.v8.dt.compare.ui.partialmodel.AbstractEmfBasedPartialModelController
addFeatures, createEqualFeatureNode, createEqualNodesObjectsCollector, createFeatureNode, createInnerElements, createInnerElements, getBooleanRepresentation, getChildrenFeatureNodes, getChildrenListNodes, getImageProvider, getListElementImageProvider, getRepresentation, getSymlink, isExpandableEqualNodeRequired, isExpandableFeatureNodeRequired, isExpandableNodeRequired, isSupported, isTerminalNodeFeature
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com._1c.g5.v8.dt.compare.ui.partialmodel.IPartialModelControllerDelegate
compareUsingExternalTool, editMergeSettings, fillNodeProperties, getTopNodes, mergeUsingExternalTool, positionChildNode, refreshNode, setMergeRule, supportsComparisonUsingExternalTool, supportsMergingUsingExternalTool
-
-
-
-
Constructor Detail
-
AbstractMdAwarePartialModelController
public AbstractMdAwarePartialModelController(ISymbolicLinkLocalizer symbolicLinkLocalizer)
Constructor.- Parameters:
symbolicLinkLocalizer
- the symbolic link localizer, can not benull
-
-
Method Detail
-
getSingleRepresentation
protected String getSingleRepresentation(IComparisonDataSource dataSource, org.eclipse.emf.ecore.EObject context, Object value, org.eclipse.emf.ecore.EStructuralFeature feature)
- Overrides:
getSingleRepresentation
in classAbstractEmfBasedPartialModelController
-
getValueRepresentation
protected String getValueRepresentation(IComparisonDataSource dataSource, org.eclipse.emf.ecore.EObject object, Object value, org.eclipse.emf.ecore.EStructuralFeature feature)
- Specified by:
getValueRepresentation
in classAbstractEmfBasedPartialModelController
-
getSingleValueRepresentation
protected String getSingleValueRepresentation(Object value)
- Specified by:
getSingleValueRepresentation
in classAbstractEmfBasedPartialModelController
-
registerInnerElementSuppliers
protected void registerInnerElementSuppliers(Consumer<IInnerElementSupplier> collector)
Description copied from class:AbstractEmfBasedPartialModelController
Gets the collection of registered inner elements suppliers used to form the customized nodes of the partial model.- Overrides:
registerInnerElementSuppliers
in classAbstractEmfBasedPartialModelController
- Parameters:
collector
- Supplier collector.
-
localizeSymbolicLink
protected String localizeSymbolicLink(org.eclipse.emf.ecore.EObject context, org.eclipse.emf.ecore.EStructuralFeature feature, String symlink)
- Specified by:
localizeSymbolicLink
in classAbstractEmfBasedPartialModelController
-
getLocalizedStringMapRepresentation
protected String getLocalizedStringMapRepresentation(org.eclipse.emf.ecore.EObject object, org.eclipse.emf.ecore.EStructuralFeature feature)
-
getTypeRepresentation
protected String getTypeRepresentation(IComparisonDataSource dataSource, org.eclipse.emf.ecore.EObject object, org.eclipse.emf.ecore.EStructuralFeature feature)
-
forEObject
protected org.eclipse.emf.ecore.EObject forEObject(IPartialModelNode node, ComparisonContext comparisonContext)
Gets eObject for which given partial model node was created. Useful for type checking.- Parameters:
node
- the node, cannot benull
comparisonContext
- the context, cannot benull
- Returns:
- the eObject
-
-