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

Bug 346327

Summary: Provide API for getting and binding model element to widgets
Product: [Eclipse Project] e4 Reporter: Brian de Alwis <bsd>
Component: UIAssignee: Project Inbox <e4.ui-inbox>
Status: CLOSED WONTFIX QA Contact:
Severity: normal    
Priority: P3 CC: pwebster
Version: unspecified   
Target Milestone: ---   
Hardware: All   
OS: All   
Whiteboard: stalebug

Description Brian de Alwis CLA 2011-05-18 15:39:47 EDT
In doing some of the work for the CocoaUIHandler (binding Cocoa-specific functions), I sometimes needed to get the model element corresponding to a particular widget.  For example, when the "pill button" is click in the titlebar of a window in MacOS X, we send a "org.eclipse.ui.ToggleCoolbarAction" command/action.  We have to determine the model element corresponding to that pill button and pass it as part of the command context.

Although the SWT rendering framework places the model element through the SWT widget-data under the tag "modelElement" (AbstractPartRenderer.OWNING_ME), this feels like an internal implementation detail that shouldn't be relied upon by code.
Comment 1 Eclipse Genie CLA 2019-06-01 14:06:00 EDT
This bug hasn't had any activity in quite some time. Maybe the problem got resolved, was a duplicate of something else, or became less pressing for some reason - or maybe it's still relevant but just hasn't been looked at yet.

If you have further information on the current state of the bug, please add it. The information can be, for example, that the problem still occurs, that you still want the feature, that more information is needed, or that the bug is (for whatever reason) no longer relevant.

--
The automated Eclipse Genie.