Omaha #4693 Bring alertview to top instead of activating it.

Former-commit-id: fc3bfc4997b276445471f0a6896e8cb3561a6010
This commit is contained in:
Ben Steffensmeier 2015-08-03 18:38:54 -05:00 committed by Gerrit Code Review
parent 7b0c814fd0
commit 121d858bdc

View file

@ -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.
*
* </pre>
*
@ -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);