Issue #1287 Changes for non-blocking BreakLockDialog.
Change-Id: Ie2626e8960d69a200bc1b5c6ee28c6aa361f30ca Former-commit-id:90590f7ae2
[formerly9e2496dd0b
] [formerlya9dbaae595
] [formerlyd33179f009
[formerlya9dbaae595
[formerly 2dc320c31ceed44bba70d6738ce40d703858be68]]] Former-commit-id:d33179f009
Former-commit-id: 43001b8a191ed5fa33014d973b0b9693520ab7c9 [formerly9f0586231f
] Former-commit-id:3790b5d9c4
This commit is contained in:
parent
6149ad5a22
commit
e99ed8f507
1 changed files with 12 additions and 6 deletions
|
@ -29,13 +29,14 @@ import com.raytheon.viz.gfe.core.DataManager;
|
||||||
import com.raytheon.viz.gfe.dialogs.BreakLockDialog;
|
import com.raytheon.viz.gfe.dialogs.BreakLockDialog;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* TODO Add Description ShowBreakLock.java Jun 17, 2008
|
* Action class to bring up the break locck dialog.
|
||||||
*
|
*
|
||||||
* <pre>
|
* <pre>
|
||||||
* SOFTWARE HISTORY
|
* SOFTWARE HISTORY
|
||||||
* Date Ticket# Engineer Description
|
* Date Ticket# Engineer Description
|
||||||
* ------------ ---------- ----------- --------------------------
|
* ------------ ---------- ----------- --------------------------
|
||||||
* Jun 17, 2008 Eric Babin Initial Creation
|
* Jun 17, 2008 Eric Babin Initial Creation
|
||||||
|
* Oct 27, 2012 1287 rferrel Changes for non-blocking BreakLockDialog.
|
||||||
*
|
*
|
||||||
* </pre>
|
* </pre>
|
||||||
*
|
*
|
||||||
|
@ -44,6 +45,7 @@ import com.raytheon.viz.gfe.dialogs.BreakLockDialog;
|
||||||
*/
|
*/
|
||||||
|
|
||||||
public class ShowBreakLock extends AbstractHandler {
|
public class ShowBreakLock extends AbstractHandler {
|
||||||
|
private BreakLockDialog dialog;
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* (non-Javadoc)
|
* (non-Javadoc)
|
||||||
|
@ -59,12 +61,16 @@ public class ShowBreakLock extends AbstractHandler {
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
Shell shell = PlatformUI.getWorkbench().getActiveWorkbenchWindow()
|
if (dialog == null || dialog.getShell() == null || dialog.isDisposed()) {
|
||||||
.getShell();
|
Shell shell = PlatformUI.getWorkbench().getActiveWorkbenchWindow()
|
||||||
|
.getShell();
|
||||||
|
|
||||||
BreakLockDialog dialog = new BreakLockDialog(shell, dm);
|
dialog = new BreakLockDialog(shell, dm);
|
||||||
dialog.setBlockOnOpen(true);
|
dialog.setBlockOnOpen(false);
|
||||||
dialog.open();
|
dialog.open();
|
||||||
|
} else {
|
||||||
|
dialog.bringToTop();
|
||||||
|
}
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue