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.EObjectforEObject(IPartialModelNode node, ComparisonContext comparisonContext)Gets eObject for which given partial model node was created.protected StringgetLocalizedStringMapRepresentation(org.eclipse.emf.ecore.EObject object, org.eclipse.emf.ecore.EStructuralFeature feature)protected StringgetSingleRepresentation(IComparisonDataSource dataSource, org.eclipse.emf.ecore.EObject context, Object value, org.eclipse.emf.ecore.EStructuralFeature feature)protected StringgetSingleValueRepresentation(Object value)protected StringgetTypeRepresentation(IComparisonDataSource dataSource, org.eclipse.emf.ecore.EObject object, org.eclipse.emf.ecore.EStructuralFeature feature)protected StringgetValueRepresentation(IComparisonDataSource dataSource, org.eclipse.emf.ecore.EObject object, Object value, org.eclipse.emf.ecore.EStructuralFeature feature)protected StringlocalizeSymbolicLink(org.eclipse.emf.ecore.EObject context, org.eclipse.emf.ecore.EStructuralFeature feature, String symlink)protected voidregisterInnerElementSuppliers(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:
getSingleRepresentationin classAbstractEmfBasedPartialModelController
-
getValueRepresentation
protected String getValueRepresentation(IComparisonDataSource dataSource, org.eclipse.emf.ecore.EObject object, Object value, org.eclipse.emf.ecore.EStructuralFeature feature)
- Specified by:
getValueRepresentationin classAbstractEmfBasedPartialModelController
-
getSingleValueRepresentation
protected String getSingleValueRepresentation(Object value)
- Specified by:
getSingleValueRepresentationin classAbstractEmfBasedPartialModelController
-
registerInnerElementSuppliers
protected void registerInnerElementSuppliers(Consumer<IInnerElementSupplier> collector)
Description copied from class:AbstractEmfBasedPartialModelControllerGets the collection of registered inner elements suppliers used to form the customized nodes of the partial model.- Overrides:
registerInnerElementSuppliersin 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:
localizeSymbolicLinkin 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 benullcomparisonContext- the context, cannot benull- Returns:
- the eObject
-
-