Community
Participate
Working Groups
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.
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.