Omaha #4693 Bring alertview to top instead of activating it.
Former-commit-id: fc3bfc4997b276445471f0a6896e8cb3561a6010
This commit is contained in:
parent
7b0c814fd0
commit
121d858bdc
1 changed files with 5 additions and 2 deletions
|
@ -62,6 +62,7 @@ import com.raytheon.uf.viz.alertview.ui.prefs.OpenPreferencesAction;
|
||||||
* ------------- -------- --------- --------------------------
|
* ------------- -------- --------- --------------------------
|
||||||
* Jun 18, 2015 4474 bsteffen Initial creation
|
* Jun 18, 2015 4474 bsteffen Initial creation
|
||||||
* Jun 22, 2015 4474 njensen Fix bugs
|
* Jun 22, 2015 4474 njensen Fix bugs
|
||||||
|
* Aug 03, 2015 4693 bsteffen Bring view to top instead of activating.
|
||||||
*
|
*
|
||||||
* </pre>
|
* </pre>
|
||||||
*
|
*
|
||||||
|
@ -199,12 +200,14 @@ public class AlertView extends ViewPart implements AlertDestination,
|
||||||
IWorkbenchPage activePage = window.getActivePage();
|
IWorkbenchPage activePage = window.getActivePage();
|
||||||
|
|
||||||
try {
|
try {
|
||||||
AlertView view = (AlertView) activePage.showView(AlertView.class
|
AlertView view = (AlertView) activePage.showView(
|
||||||
.getName());
|
AlertView.class.getName(), null,
|
||||||
|
IWorkbenchPage.VIEW_VISIBLE);
|
||||||
if (alert != null) {
|
if (alert != null) {
|
||||||
view.handleAlert(alert);
|
view.handleAlert(alert);
|
||||||
view.alertTable.select(alert);
|
view.alertTable.select(alert);
|
||||||
view.sashForm.setMaximizedControl(null);
|
view.sashForm.setMaximizedControl(null);
|
||||||
|
activePage.bringToTop(view);
|
||||||
}
|
}
|
||||||
} catch (PartInitException e) {
|
} catch (PartInitException e) {
|
||||||
logger.error("Cannot open AlertView", e);
|
logger.error("Cannot open AlertView", e);
|
||||||
|
|
Loading…
Add table
Reference in a new issue