Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAnsgar Radermacher2015-06-04 07:58:42 +0000
committerAnsgar Radermacher2015-06-04 08:43:40 +0000
commit21fa36e42f0c6096a7304ad752ad6f3ed39466ff (patch)
tree9a673e093a7e8892724b336d071469b27ba9e94a /extraplugins/qompass-designer/org.eclipse.papyrus.qompass.designer.ui/src/org/eclipse/papyrus/qompass/designer/ui/dialogs/AllocationDialog.java
parentdf36bae950a71d3c844ee182e96459facc3e7363 (diff)
downloadorg.eclipse.papyrus-21fa36e42f0c6096a7304ad752ad6f3ed39466ff.tar.gz
org.eclipse.papyrus-21fa36e42f0c6096a7304ad752ad6f3ed39466ff.tar.xz
org.eclipse.papyrus-21fa36e42f0c6096a7304ad752ad6f3ed39466ff.zip
469354 - [QDesigner] Large empty windows appear in several situations that are never closed.
Change-Id: I49a6ffe3b2710e45a310e9ec46d9785cea3424a4 Reviewed-on: https://git.eclipse.org/r/49422 Tested-by: Hudson CI Reviewed-by: Ansgar Radermacher <ansgar.radermacher@cea.fr>
Diffstat (limited to 'extraplugins/qompass-designer/org.eclipse.papyrus.qompass.designer.ui/src/org/eclipse/papyrus/qompass/designer/ui/dialogs/AllocationDialog.java')
-rw-r--r--extraplugins/qompass-designer/org.eclipse.papyrus.qompass.designer.ui/src/org/eclipse/papyrus/qompass/designer/ui/dialogs/AllocationDialog.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/extraplugins/qompass-designer/org.eclipse.papyrus.qompass.designer.ui/src/org/eclipse/papyrus/qompass/designer/ui/dialogs/AllocationDialog.java b/extraplugins/qompass-designer/org.eclipse.papyrus.qompass.designer.ui/src/org/eclipse/papyrus/qompass/designer/ui/dialogs/AllocationDialog.java
index 50c598fc46c..14a3e457d49 100644
--- a/extraplugins/qompass-designer/org.eclipse.papyrus.qompass.designer.ui/src/org/eclipse/papyrus/qompass/designer/ui/dialogs/AllocationDialog.java
+++ b/extraplugins/qompass-designer/org.eclipse.papyrus.qompass.designer.ui/src/org/eclipse/papyrus/qompass/designer/ui/dialogs/AllocationDialog.java
@@ -38,6 +38,7 @@ import org.eclipse.swt.layout.GridData;
import org.eclipse.swt.widgets.Combo;
import org.eclipse.swt.widgets.Composite;
import org.eclipse.swt.widgets.Control;
+import org.eclipse.swt.widgets.Display;
import org.eclipse.swt.widgets.Shell;
import org.eclipse.swt.widgets.Tree;
import org.eclipse.swt.widgets.TreeColumn;
@@ -296,8 +297,7 @@ public class AllocationDialog extends SelectionStatusDialog {
// add or update
if (oldNode == null) {
if (!AllocUtils.allocate(is, newNode)) {
- Shell shell = new Shell();
- if (MessageDialog.openQuestion(shell, "Error",
+ if (MessageDialog.openQuestion(Display.getDefault().getActiveShell(), "Error",
"Stereotype application failed. The profile MARTE::Allocation is probably not applied. Try to apply it?")) {
AbstractEMFOperation applyProfile = new AddMarteAndFcmProfile(PackageUtil.getRootPackage(is), AddMarteAndFcmProfile.APPLY_ALLOC, TransactionUtil.getEditingDomain(is));
CommandSupport.exec(applyProfile);

Back to the top