Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAnsgar Radermacher2015-05-27 14:04:41 +0000
committerCamille Letavernier2015-05-27 14:21:41 +0000
commit66dcd266c448093675a65fecb14f772a3c35cfa4 (patch)
tree204023839bda96e0f7e25e840cfa75da20594e39
parent28411ebb55837fe90e4c0c2906a733c1a79c650f (diff)
downloadorg.eclipse.papyrus-66dcd266c448093675a65fecb14f772a3c35cfa4.tar.gz
org.eclipse.papyrus-66dcd266c448093675a65fecb14f772a3c35cfa4.tar.xz
org.eclipse.papyrus-66dcd266c448093675a65fecb14f772a3c35cfa4.zip
467599 - Big window open behind the profile selection dialog when applying profile
Change-Id: I90013abec2599a879744891ba7ef4431bb79cd5e Reviewed-on: https://git.eclipse.org/r/48773 Reviewed-by: Camille Letavernier <camille.letavernier@cea.fr> Tested-by: Camille Letavernier <camille.letavernier@cea.fr>
-rw-r--r--plugins/uml/properties/org.eclipse.papyrus.uml.properties/src/org/eclipse/papyrus/uml/properties/profile/ui/dialogs/Message.java4
1 files changed, 3 insertions, 1 deletions
diff --git a/plugins/uml/properties/org.eclipse.papyrus.uml.properties/src/org/eclipse/papyrus/uml/properties/profile/ui/dialogs/Message.java b/plugins/uml/properties/org.eclipse.papyrus.uml.properties/src/org/eclipse/papyrus/uml/properties/profile/ui/dialogs/Message.java
index 6a71e0272d3..96262f63899 100644
--- a/plugins/uml/properties/org.eclipse.papyrus.uml.properties/src/org/eclipse/papyrus/uml/properties/profile/ui/dialogs/Message.java
+++ b/plugins/uml/properties/org.eclipse.papyrus.uml.properties/src/org/eclipse/papyrus/uml/properties/profile/ui/dialogs/Message.java
@@ -15,6 +15,7 @@
package org.eclipse.papyrus.uml.properties.profile.ui.dialogs;
import org.eclipse.swt.SWT;
+import org.eclipse.swt.widgets.Display;
import org.eclipse.swt.widgets.Label;
import org.eclipse.swt.widgets.Shell;
@@ -23,7 +24,7 @@ public class Message {
final Shell _message;
public Message(String title, String text) {
- _message = new Shell(new Shell(), SWT.APPLICATION_MODAL | SWT.SHELL_TRIM);
+ _message = new Shell(Display.getDefault(), SWT.APPLICATION_MODAL | SWT.SHELL_TRIM);
_message.setText(title);
_message.setSize(250, 100);
@@ -38,5 +39,6 @@ public class Message {
public void close() {
_message.close();
+ _message.dispose();
}
}

Back to the top