Class StructuralChangeTesterTable
- java.lang.Object
-
- org.eclipse.emfforms.internal.core.services.structuralchange.table.StructuralChangeTesterTable
-
- All Implemented Interfaces:
StructuralChangeTesterInternal
public class StructuralChangeTesterTable extends java.lang.Object implements StructuralChangeTesterInternal
Implementation ofStructuralChangeTesterInternal
forVTableDomainModelReferences
.- Author:
- Lucas Koehler
-
-
Field Summary
-
Fields inherited from interface org.eclipse.emfforms.spi.core.services.structuralchange.StructuralChangeTesterInternal
NOT_APPLICABLE
-
-
Constructor Summary
Constructors Constructor Description StructuralChangeTesterTable()
-
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
.
-
-
-
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
-
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(org.eclipse.emf.ecp.view.spi.model.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(org.eclipse.emf.ecp.view.spi.model.VDomainModelReference, org.eclipse.emf.ecore.EObject, org.eclipse.emf.ecp.view.spi.model.ModelChangeNotification)
-
-