Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAnsgar Radermacher2015-10-23 08:34:57 -0400
committerGerrit Code Review @ Eclipse.org2015-10-23 10:57:59 -0400
commitcecb06d5a0493740bac46db67f0334333a32e510 (patch)
tree7c3a1c78848c6f4d1b14a56d165aee8a0a0cd632 /plugins
parent40b9929b81f9439cc1a0c235d20ddbd5c4a4b9ed (diff)
downloadorg.eclipse.papyrus-cecb06d5a0493740bac46db67f0334333a32e510.tar.gz
org.eclipse.papyrus-cecb06d5a0493740bac46db67f0334333a32e510.tar.xz
org.eclipse.papyrus-cecb06d5a0493740bac46db67f0334333a32e510.zip
480497 - [Popup] Popup dialog creates a new empty window that does not go away
Diffstat (limited to 'plugins')
-rw-r--r--plugins/infra/widget/org.eclipse.papyrus.infra.widgets.toolbox/src/org/eclipse/papyrus/infra/widgets/toolbox/notification/builders/PopupBuilder.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/infra/widget/org.eclipse.papyrus.infra.widgets.toolbox/src/org/eclipse/papyrus/infra/widgets/toolbox/notification/builders/PopupBuilder.java b/plugins/infra/widget/org.eclipse.papyrus.infra.widgets.toolbox/src/org/eclipse/papyrus/infra/widgets/toolbox/notification/builders/PopupBuilder.java
index e2abced4591..75d8cff4852 100644
--- a/plugins/infra/widget/org.eclipse.papyrus.infra.widgets.toolbox/src/org/eclipse/papyrus/infra/widgets/toolbox/notification/builders/PopupBuilder.java
+++ b/plugins/infra/widget/org.eclipse.papyrus.infra.widgets.toolbox/src/org/eclipse/papyrus/infra/widgets/toolbox/notification/builders/PopupBuilder.java
@@ -37,7 +37,7 @@ public class PopupBuilder implements IBuilder {
*/
public INotification build(PropertyWrapper wrapper, FormToolkit toolkit) {
PapyrusPopup popup = null;
- String title = "Papyrus";
+ String title = "Papyrus"; //$NON-NLS-1$
if (wrapper.getTitle() != null) {
title = wrapper.getTitle();
}
@@ -45,7 +45,7 @@ public class PopupBuilder implements IBuilder {
if (wrapper.getMessage() != null) {
message = wrapper.getMessage();
}
- Shell activeShell = new Shell(Display.getDefault());
+ Shell activeShell = Display.getDefault().getActiveShell();
if (wrapper.getType() != null) {
popup = new IconAndMessagePapyrusPopup(activeShell, toolkit, message, wrapper.getType());
} else if (wrapper.getImage() != null) {

Back to the top