@@ -0,0 +1,694 @@
+package edu.teco.dnd.eclipse;%0A%0Aimport org.eclipse.swt.widgets.Display;%0A%0A/**%0A * Provides a utility method that can be used to retrieve the %7B@link Display%7D to use.%0A * %0A * @author Philipp Adolf%0A */%0Apublic final class DisplayUtil %7B%0A%09private DisplayUtil() %7B%0A%09%7D%0A%0A%09/**%0A%09 * Returns the display to use. This is either the active Display, or if that is null, the default Display.%0A%09 * %0A%09 * @return the display to use. May be null (iff %7B@link Display#getCurrent()%7D and %7B@link Display#getDefault()%7D both%0A%09 *         return null.%0A%09 */%0A%09public static final Display getDisplay() %7B%0A%09%09Display display = Display.getCurrent();%0A%09%09if (display == null) %7B%0A%09%09%09display = Display.getDefault();%0A%09%09%7D%0A%09%09return display;%0A%09%7D%0A%7D%0A

Add DisplayUtil