Issue #1287 Changes for non-blocking DefineRefSetDialog.

Change-Id: I0aa3ec5b80140ae79fffd3edd230b1d8e8f68e43

Former-commit-id: f7d694f7a1 [formerly 80c0d6b69e] [formerly eb5aa48960] [formerly c627c6af24 [formerly eb5aa48960 [formerly 3fd7556be39d7381c3cdc92a3b72a6ff10c2ebed]]]
Former-commit-id: c627c6af24
Former-commit-id: af280dc7e2baaad3051f813fa9d67e6ab51f5ab2 [formerly be40b56d18]
Former-commit-id: 5ad7545d15
This commit is contained in:
Roger Ferrel 2012-10-24 10:42:33 -05:00
parent 00a41b0184
commit 53e447934b
2 changed files with 13 additions and 13 deletions

View file

@ -36,6 +36,7 @@ import com.raytheon.viz.gfe.dialogs.DefineRefSetDialog;
* Date Ticket# Engineer Description
* ------------ ---------- ----------- --------------------------
* Mar 11, 2008 Eric Babin Initial Creation
* Oct 24, 2012 1287 rferrel Changes for non-blocking DefineRefSetDialog.
*
* </pre>
*
@ -63,11 +64,13 @@ public class ShowDefineRefSetDialog extends AbstractHandler {
return null;
}
if (dialog == null || dialog.getShell() == null) {
if (dialog == null || dialog.getShell() == null || dialog.isDisposed()) {
dialog = new DefineRefSetDialog(shell, dm);
dialog.setBlockOnOpen(false);
dialog.open();
} else {
dialog.bringToTop();
}
dialog.open();
return null;
}

View file

@ -90,6 +90,7 @@ import com.vividsolutions.jts.geom.MultiPolygon;
* ------------ ---------- ----------- --------------------------
* Mar 11, 2008 Eric Babin Initial Creation
* Jul 15, 2008 njensen Hooked into backend/fixes
* Oct 24, 2012 1287 rferrel Code clean up for non-blocking dialog.
*
* </pre>
*
@ -101,18 +102,18 @@ public class DefineRefSetDialog extends CaveJFACEDialog implements
IReferenceSetChangedListener, IReferenceSetIDChangedListener,
IReferenceSetInvChangedListener, IDisplayedParmListChangedListener,
IEditAreaGroupInvChangedListener {
private static final transient IUFStatusHandler statusHandler = UFStatus
private final transient IUFStatusHandler statusHandler = UFStatus
.getHandler(DefineRefSetDialog.class);
private static final int NUM_ITEMS = 13;
private final int NUM_ITEMS = 13;
private static final int CLEAR_QUERY_ID = IDialogConstants.CLIENT_ID + 1;
private final int CLEAR_QUERY_ID = IDialogConstants.CLIENT_ID + 1;
private static final int RECALL_QUERY_ID = IDialogConstants.CLIENT_ID + 2;
private final int RECALL_QUERY_ID = IDialogConstants.CLIENT_ID + 2;
private static final int UNDO_EDIT_AREA_ID = IDialogConstants.CLIENT_ID + 3;
private final int UNDO_EDIT_AREA_ID = IDialogConstants.CLIENT_ID + 3;
private static final int CONVERT_TO_LOCATION_ID = IDialogConstants.CLIENT_ID + 4;
private final int CONVERT_TO_LOCATION_ID = IDialogConstants.CLIENT_ID + 4;
private Composite top;
@ -154,10 +155,6 @@ public class DefineRefSetDialog extends CaveJFACEDialog implements
{ "3", "" }, { "-", "" }, { "0", "" }, { ".", "" },
{ "BS", "BackSpace" }, { "", "" }, { "SP", "Space" }, };
// private java.util.List<String> gList;
// private HashMap<String, java.util.List<String>> editAreaMap;
private IReferenceSetManager refSetMgr;
private IParmManager parmManager;
@ -168,7 +165,7 @@ public class DefineRefSetDialog extends CaveJFACEDialog implements
public DefineRefSetDialog(Shell parent, DataManager dataManager) {
super(parent);
this.setShellStyle(SWT.TITLE | SWT.MODELESS | SWT.CLOSE);
this.setShellStyle(SWT.DIALOG_TRIM | SWT.MODELESS);
this.dataManager = dataManager;
this.refSetMgr = this.dataManager.getRefManager();
this.parmManager = this.dataManager.getParmManager();