From 121d858bdc70daa351a01d7633109c3c987ec181 Mon Sep 17 00:00:00 2001 From: Ben Steffensmeier Date: Mon, 3 Aug 2015 18:38:54 -0500 Subject: [PATCH] Omaha #4693 Bring alertview to top instead of activating it. Former-commit-id: fc3bfc4997b276445471f0a6896e8cb3561a6010 --- .../com/raytheon/uf/viz/alertview/ui/view/AlertView.java | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/cave/com.raytheon.uf.viz.alertview/src/com/raytheon/uf/viz/alertview/ui/view/AlertView.java b/cave/com.raytheon.uf.viz.alertview/src/com/raytheon/uf/viz/alertview/ui/view/AlertView.java index c9df26e73b..5b6ac4e714 100644 --- a/cave/com.raytheon.uf.viz.alertview/src/com/raytheon/uf/viz/alertview/ui/view/AlertView.java +++ b/cave/com.raytheon.uf.viz.alertview/src/com/raytheon/uf/viz/alertview/ui/view/AlertView.java @@ -62,6 +62,7 @@ import com.raytheon.uf.viz.alertview.ui.prefs.OpenPreferencesAction; * ------------- -------- --------- -------------------------- * Jun 18, 2015 4474 bsteffen Initial creation * Jun 22, 2015 4474 njensen Fix bugs + * Aug 03, 2015 4693 bsteffen Bring view to top instead of activating. * * * @@ -199,12 +200,14 @@ public class AlertView extends ViewPart implements AlertDestination, IWorkbenchPage activePage = window.getActivePage(); try { - AlertView view = (AlertView) activePage.showView(AlertView.class - .getName()); + AlertView view = (AlertView) activePage.showView( + AlertView.class.getName(), null, + IWorkbenchPage.VIEW_VISIBLE); if (alert != null) { view.handleAlert(alert); view.alertTable.select(alert); view.sashForm.setMaximizedControl(null); + activePage.bringToTop(view); } } catch (PartInitException e) { logger.error("Cannot open AlertView", e);