November 18, 2008
I learned recently the clean way to replace all my Display.getDefault() method calls:
PlatformUI.getWorkbench().getDisplay();
Here is the Javadoc for this method :
Code should always ask the workbench for the display rather than rely on Display.getDefault()
Am I the last not aware about this method ?? If no, this post may be can help someone else for example spending time to know why there is no active WorkbenchWindow associated to the default Display
…
Thanks to Xavier for pointing me to this cleaner method.
6 Comments |
Eclipse Technical Tips |
Permalink
Posted by Manuel
November 13, 2008
Hi there,
Since Eclipse Ganymede realease (3.4) the PDE Add Dependency Plugin Feature behavior changed a little.
As you can see on the following screenshot taken just after the addition of a dependency on Draw2D plugin , the PDE now automatically fills the Minimum version attribute with the current version of the plugin we depend on.

This is a good thing to enforce developers to explicitly add the required version of plugins that we depend on. Nethertheless it can be sometimes anoying.
One of my plugin needs to still works on Eclipse 3.3. To ensure this compatibility I have to manualy remove the minimum version because my clients Eclipse installation certainly get Draw2d 3.3 and not 3.4.
Just take care of that and enjoy PDE ;o)
2 Comments |
Eclipse Technical Tips |
Permalink
Posted by Manuel