Issue #1287 Changes for non-blocking DefineRefSetDialog.
Change-Id: I0aa3ec5b80140ae79fffd3edd230b1d8e8f68e43 Former-commit-id:f7d694f7a1
[formerly80c0d6b69e
] [formerlyeb5aa48960
] [formerlyf7d694f7a1
[formerly80c0d6b69e
] [formerlyeb5aa48960
] [formerlyc627c6af24
[formerlyeb5aa48960
[formerly 3fd7556be39d7381c3cdc92a3b72a6ff10c2ebed]]]] Former-commit-id:c627c6af24
Former-commit-id:53e447934b
[formerly5ad7545d15
] [formerly af280dc7e2baaad3051f813fa9d67e6ab51f5ab2 [formerlybe40b56d18
]] Former-commit-id: 5e8603474943af911b9e0dddb9b5b09308665404 [formerly0a60b2f0ba
] Former-commit-id:47023b93aa
This commit is contained in:
parent
7cd5967bd1
commit
28adc6b2f0
2 changed files with 13 additions and 13 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
@ -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();
|
||||
|
|
Loading…
Add table
Reference in a new issue