Issue #1298 Changes for non-blocking GridInfoDialog.

Change-Id: Ib0167b1cd63ca568250a75efa5cd0ffc8dc0885a

Former-commit-id: dde8ce56c0 [formerly 1f509c5a54] [formerly 30ef939e3c] [formerly dde8ce56c0 [formerly 1f509c5a54] [formerly 30ef939e3c] [formerly 438731ca2e [formerly 30ef939e3c [formerly ea26ccdc4e0bccdeb1c61f8bd1566a83ed87d433]]]]
Former-commit-id: 438731ca2e
Former-commit-id: 5e77bcf8bd [formerly 8490814573] [formerly 3a0ae83fcc9d5bbb65ad3b13ffe372cc97db6e13 [formerly 195d876753]]
Former-commit-id: 8bf88cd2569f48497094f5687e8b29ee0842b0f2 [formerly df5b8485c6]
Former-commit-id: f5343fae99
This commit is contained in:
Roger Ferrel 2012-11-12 12:00:03 -06:00
parent b94d28d028
commit 97ddd8da5b
2 changed files with 7 additions and 3 deletions

View file

@ -71,6 +71,7 @@ import com.vividsolutions.jts.geom.Coordinate;
* Mar 25, 2008 ebabin Initial creation
* Jun 20, 2008 #875 bphillip Implemented Dialog functionality
* Sep 20, 2012 #1190 dgilling Use new WsId.getHostName() method.
* Nov 12, 2012 #1298 rferrel Code cleanup for non-blocking dialog.
*
* </pre>
*
@ -92,7 +93,7 @@ public class GridInfoDialog extends CaveJFACEDialog implements
private Composite top;
private String[] gridInfoElements = { "Grid Info", "Grid History",
private final String[] gridInfoElements = { "Grid Info", "Grid History",
"ISC History", "Weather Element Info", "Weather Element State",
"Locks", "Data Distribution" };
@ -102,7 +103,7 @@ public class GridInfoDialog extends CaveJFACEDialog implements
public GridInfoDialog(Shell parent, Parm parm, Date clickTime) {
super(parent);
this.setShellStyle(SWT.TITLE | SWT.CLOSE);
this.setShellStyle(SWT.DIALOG_TRIM | SWT.MODELESS);
this.parm = parm;
gridData = parm.overlappingGrid(clickTime);

View file

@ -35,6 +35,7 @@ import com.raytheon.viz.gfe.dialogs.GridInfoDialog;
* Date Ticket# Engineer Description
* ------------ ---------- ----------- --------------------------
* 03/04/2008 dfitch Initial creation.
* 11/12/2012 1298 rferrel Changes for non-blocking GridInfoDialog.
*
*
* </pre>
@ -60,8 +61,10 @@ public class DisplayInfoAction extends AbstractGridManagerAction {
Shell shell = PlatformUI.getWorkbench().getActiveWorkbenchWindow()
.getShell();
// Allow multiple instance of this dialog.
// Mimics A1 and allows user to display information on multiple grids.
GridInfoDialog dialog = new GridInfoDialog(shell, parm, clickTime);
dialog.setBlockOnOpen(true);
dialog.setBlockOnOpen(false);
dialog.open();
}