Issue #1298 Changes for non-blocking GridInfoDialog.

Change-Id: Ib0167b1cd63ca568250a75efa5cd0ffc8dc0885a

Former-commit-id: 438731ca2e [formerly ea26ccdc4e0bccdeb1c61f8bd1566a83ed87d433]
Former-commit-id: 30ef939e3c
This commit is contained in:
Roger Ferrel 2012-11-12 12:00:03 -06:00
parent 894998b95f
commit 1f509c5a54
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();
}