Replies: 3 comments 10 replies
-
IMHO setData/getData is already suited for this. The issue I can think of is duplicated ids and if the implementation is on the widget level nothing will prevent having 100s of "button" ids. |
Beta Was this translation helpful? Give feedback.
-
Can you try getting swtbot, reddeer, css devs to jump in here so we can hear that such an approach would be beneficial to them and they would use it? |
Beta Was this translation helpful? Give feedback.
-
Is not Java Object identity an universal identifier? With |
Beta Was this translation helpful? Give feedback.
-
Today I wanted to identify a widget in a set of items and wondered how this is archived and noticed there are several frameworks using different data names, e.g E4-CSS, SWT-Bot, ...
What I'm wondering is, if we should not add a generic
getId
/setId
in the widget class so one can set an ID cross-framework (a framework can still first look for its specific id and then fallback to the generic one) to support such use-cases, the default value can simply benull
and might be stored in an own field or reusing thesetData/getData
facility.Beta Was this translation helpful? Give feedback.
All reactions