Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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