Class StructuralChangeTesterIndex
- java.lang.Object
-
- org.eclipse.emfforms.internal.core.services.structuralchange.index.StructuralChangeTesterIndex
-
- All Implemented Interfaces:
StructuralChangeTesterInternal
public class StructuralChangeTesterIndex extends java.lang.Object implements StructuralChangeTesterInternal
Structural change tester for VIndexDomainModelReferences.- Author:
- Eugen Neufeld
-
-
Field Summary
-
Fields inherited from interface org.eclipse.emfforms.spi.core.services.structuralchange.StructuralChangeTesterInternal
NOT_APPLICABLE
-
-
Constructor Summary
Constructors Constructor Description StructuralChangeTesterIndex()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
activate(org.osgi.framework.BundleContext bundleContext)
Called by the framework when the component gets activated.protected void
deactivate(org.osgi.framework.BundleContext bundleContext)
Called by the framework when the component gets deactivated.double
isApplicable(VDomainModelReference reference)
Returns a double that expresses if and how suitable this tester is for the givenVDomainModelReference
.boolean
isStructureChanged(VDomainModelReference reference, org.eclipse.emf.ecore.EObject domainRootObject, ModelChangeNotification notification)
Checks whether the domain structure of the givenVDomainModelReference
has changed for the changes indicated by the givenModelChangeNotification
.protected void
setEMFFormsDatabindingEMF(EMFFormsDatabindingEMF emfFormsDatabinding)
Sets theEMFFormsDatabindingEMF
service.
-
-
-
Method Detail
-
activate
protected void activate(org.osgi.framework.BundleContext bundleContext)
Called by the framework when the component gets activated.- Parameters:
bundleContext
- TheBundleContext
-
deactivate
protected void deactivate(org.osgi.framework.BundleContext bundleContext)
Called by the framework when the component gets deactivated.- Parameters:
bundleContext
- TheBundleContext
-
setEMFFormsDatabindingEMF
protected void setEMFFormsDatabindingEMF(EMFFormsDatabindingEMF emfFormsDatabinding)
Sets theEMFFormsDatabindingEMF
service.- Parameters:
emfFormsDatabinding
- The emf databinding service
-
isApplicable
public double isApplicable(VDomainModelReference reference)
Returns a double that expresses if and how suitable this tester is for the givenVDomainModelReference
.- Specified by:
isApplicable
in interfaceStructuralChangeTesterInternal
- Parameters:
reference
- TheVDomainModelReference
- Returns:
- The value indicating how suitable this tester is, negative infinity if it can't work with the given
VDomainModelReference
. - See Also:
StructuralChangeTesterInternal.isApplicable(VDomainModelReference)
-
isStructureChanged
public boolean isStructureChanged(VDomainModelReference reference, org.eclipse.emf.ecore.EObject domainRootObject, ModelChangeNotification notification)
Checks whether the domain structure of the givenVDomainModelReference
has changed for the changes indicated by the givenModelChangeNotification
.- Specified by:
isStructureChanged
in interfaceStructuralChangeTesterInternal
- Parameters:
reference
- TheVDomainModelReference
domainRootObject
- The root object of theVDomainModelReference
.notification
- TheModelChangeNotification
- Returns:
- true if the domain structure has changed, false otherwise
- See Also:
StructuralChangeTesterInternal.isStructureChanged(VDomainModelReference, EObject, ModelChangeNotification)
-
-