Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 352773 - [Restructuring] isInstance(EObject eObject, Facet facet) in an utility class
Summary: [Restructuring] isInstance(EObject eObject, Facet facet) in an utility class
Status: CLOSED WORKSFORME
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: EMF-Facet (show other bugs)
Version: unspecified   Edit
Hardware: All All
: P4 enhancement (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 352718
  Show dependency tree
 
Reported: 2011-07-21 10:55 EDT by Gregoire Dupe CLA
Modified: 2020-05-01 11:26 EDT (History)
0 users

See Also:
gdupe: juno+


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.