Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 352773

Summary: [Restructuring] isInstance(EObject eObject, Facet facet) in an utility class
Product: z_Archived Reporter: Gregoire Dupe <gdupe>
Component: EMF-FacetAssignee: Project Inbox <emft.facet-inbox>
Status: CLOSED WORKSFORME QA Contact:
Severity: enhancement    
Priority: P4 Flags: gdupe: juno+
Version: unspecified   
Target Milestone: ---   
Hardware: All   
OS: All   
Whiteboard:
Bug Depends on:    
Bug Blocks: 352718    

Description Gregoire Dupe CLA 2011-07-21 10:55:16 EDT
We have to provide an implementation of the method isInstance(EObject eObject, Facet facet) in a utility class.

cf. org.eclipse.emf.facet.widgets.nattable.internal.TableInstanceCommandFactory.isInstance(EObject, Facet)
Comment 1 Gregoire Dupe CLA 2012-05-30 13:22:46 EDT
The job is done by org.eclipse.emf.facet.efacet.core.IFacetManager.isConforming(EObject, Facet).

An utility/static class cannot be used because the result returned by this method depends of the facet loaded in the facet manger.