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

Bug 349797

Summary: [Table] NatTableWidget.usesTmpResource() has to be added to the API.
Product: z_Archived Reporter: Gregoire Dupe <gdupe>
Component: EMF-FacetAssignee: Project Inbox <emft.facet-inbox>
Status: NEW --- QA Contact:
Severity: trivial    
Priority: P5 Flags: gdupe: juno+
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard:

Description Gregoire Dupe CLA 2011-06-20 06:02:36 EDT
The method org.eclipse.emf.facet.widgets.nattable.internal.NatTableWidget.usesTmpResource() has to be added to the API in the version 0.2.0.
Comment 1 Gregoire Dupe CLA 2011-06-20 08:34:48 EDT
To be able to deal with events, the class NatTableWidget needs a TableInstance contained in a resource. I’m not so sure that the class NatTableWidget has to instantiate a temporary resource. The NatTableWidget may have to require a TableInstance contained in a resource.

Rather than to provide the method usesTmpResource, we may have to add a constraint on the parameter tableInstanceParam of org.eclipse.emf.facet.widgets.nattable.internal.NatTableWidget.NatTableWidget(Composite, IEditingDomainProvider, TableInstance, MenuManager).

This would imply that the temporary resource will be created and managed by the Widget user (NatTableEditor for instance)