Community
Participate
Working Groups
Several places in PDE UI we are still using Display.getDefault(). We should avoid using it wherever possible.
Most of the usage has been around for some time. Marking as 3.8 for now. Dani, is this something you feel needs to be changed for 3.7?
> Dani, is this something you feel needs to be changed for 3.7? Nope.
Why would Display.getCurrent() be an ant-pattern ? I ask because I've been trying to standardize the e4 code by using this pattern...;-). Am I going the wrong way?
>Why would Display.getCurrent() be an ant-pattern ? This bug says Display.getDefault() is evil ;-) It always depends what you try to do. If you are on a multi-display environment and want the display for widget X, then Display.getCurrent() might not give you that.
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.