Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 346327 - Provide API for getting and binding model element to widgets
Summary: Provide API for getting and binding model element to widgets
Status: CLOSED WONTFIX
Alias: None
Product: e4
Classification: Eclipse Project
Component: UI (show other bugs)
Version: unspecified   Edit
Hardware: All All
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard: stalebug
Keywords:
Depends on:
Blocks:
 
Reported: 2011-05-18 15:39 EDT by Brian de Alwis CLA
Modified: 2019-06-01 14:06 EDT (History)
1 user (show)

See Also:


Attachments

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