X-Git-Url: http://git.argeo.org/?a=blobdiff_plain;f=org.argeo.cms.ui%2Fsrc%2Forg%2Fargeo%2Fcms%2Fui%2Fdialogs%2FCmsFeedback.java;h=a4f3362da1d39364e7d5fa3f7593ac69744f1104;hb=c79f5f2275dbbeb7407befc0188344ac16a87a80;hp=61cce4ed3349f693fefd7715c7346d53ec49ba88;hpb=7fa402d36e0e194424589f4d7efeae5610d2c6eb;p=lgpl%2Fargeo-commons.git diff --git a/org.argeo.cms.ui/src/org/argeo/cms/ui/dialogs/CmsFeedback.java b/org.argeo.cms.ui/src/org/argeo/cms/ui/dialogs/CmsFeedback.java index 61cce4ed3..a4f3362da 100644 --- a/org.argeo.cms.ui/src/org/argeo/cms/ui/dialogs/CmsFeedback.java +++ b/org.argeo.cms.ui/src/org/argeo/cms/ui/dialogs/CmsFeedback.java @@ -13,7 +13,6 @@ import org.eclipse.swt.layout.GridLayout; import org.eclipse.swt.widgets.Button; import org.eclipse.swt.widgets.Composite; import org.eclipse.swt.widgets.Control; -import org.eclipse.swt.widgets.Display; import org.eclipse.swt.widgets.Label; import org.eclipse.swt.widgets.Shell; import org.eclipse.swt.widgets.Text; @@ -37,25 +36,25 @@ public class CmsFeedback extends LightweightDialog { if (e instanceof ThreadDeath) throw (ThreadDeath) e; - new CmsFeedback(getDisplay().getActiveShell(), message, e).open(); + new CmsFeedback(null, message, e).open(); } public static void show(String message) { - new CmsFeedback(getDisplay().getActiveShell(), message, null).open(); + new CmsFeedback(null, message, null).open(); } /** Tries to find a display */ - private static Display getDisplay() { - try { - Display display = Display.getCurrent(); - if (display != null) - return display; - else - return Display.getDefault(); - } catch (Exception e) { - return Display.getCurrent(); - } - } +// private static Display getDisplay() { +// try { +// Display display = Display.getCurrent(); +// if (display != null) +// return display; +// else +// return Display.getDefault(); +// } catch (Exception e) { +// return Display.getCurrent(); +// } +// } protected Control createDialogArea(Composite parent) { parent.setLayout(new GridLayout(2, false));