Issue #1287 Changes for non-blocking SiteActivationDlg.
Change-Id: Id059058fda486b57df5d461f3c9eb13981f7f744 Former-commit-id: ae1185cb5825915820314fdc48c897676ead8538
This commit is contained in:
parent
6c3b12a9d3
commit
8c5b00fa42
3 changed files with 16 additions and 8 deletions
|
@ -26,7 +26,7 @@ import com.raytheon.viz.gfe.dialogs.sbu.SiteActivationDlg;
|
|||
import com.raytheon.viz.ui.personalities.awips.AbstractCAVEComponent;
|
||||
|
||||
/**
|
||||
* TODO Add Description
|
||||
* Display Activate Site dialog standalone and blocked.
|
||||
*
|
||||
* <pre>
|
||||
*
|
||||
|
@ -35,6 +35,7 @@ import com.raytheon.viz.ui.personalities.awips.AbstractCAVEComponent;
|
|||
* Date Ticket# Engineer Description
|
||||
* ------------ ---------- ----------- --------------------------
|
||||
* Aug 15, 2011 bphillip Initial creation
|
||||
* Oct 26, 2012 1287 rferrel Force blocking of SiteActivationDlg.
|
||||
*
|
||||
* </pre>
|
||||
*
|
||||
|
@ -55,6 +56,7 @@ public class ActivateSiteComponent extends AbstractCAVEComponent {
|
|||
protected void startInternal(String componentName) throws Exception {
|
||||
SiteActivationDlg dlg = new SiteActivationDlg(new Shell(
|
||||
Display.getCurrent()));
|
||||
dlg.setBlockOnOpen(true);
|
||||
dlg.open();
|
||||
}
|
||||
|
||||
|
|
|
@ -37,6 +37,7 @@ import com.raytheon.viz.gfe.dialogs.sbu.SiteActivationDlg;
|
|||
* Date Ticket# Engineer Description
|
||||
* ------------ ---------- ----------- --------------------------
|
||||
* Aug 5, 2011 randerso Initial creation
|
||||
* Oct 26, 2012 1287 rferrel Changes for non-blocking SiteActivationDlg.
|
||||
*
|
||||
* </pre>
|
||||
*
|
||||
|
@ -45,6 +46,7 @@ import com.raytheon.viz.gfe.dialogs.sbu.SiteActivationDlg;
|
|||
*/
|
||||
|
||||
public class ShowSiteActivationDlg extends AbstractHandler {
|
||||
private SiteActivationDlg dialog;
|
||||
|
||||
/*
|
||||
* (non-Javadoc)
|
||||
|
@ -55,12 +57,16 @@ public class ShowSiteActivationDlg extends AbstractHandler {
|
|||
*/
|
||||
@Override
|
||||
public Object execute(ExecutionEvent event) throws ExecutionException {
|
||||
Shell shell = PlatformUI.getWorkbench().getActiveWorkbenchWindow()
|
||||
.getShell();
|
||||
if (dialog == null || dialog.getShell() == null || dialog.isDisposed()) {
|
||||
Shell shell = PlatformUI.getWorkbench().getActiveWorkbenchWindow()
|
||||
.getShell();
|
||||
|
||||
SiteActivationDlg dialog = new SiteActivationDlg(shell);
|
||||
dialog.setBlockOnOpen(true);
|
||||
dialog.open();
|
||||
dialog = new SiteActivationDlg(shell);
|
||||
dialog.setBlockOnOpen(false);
|
||||
dialog.open();
|
||||
} else {
|
||||
dialog.bringToTop();
|
||||
}
|
||||
|
||||
return null;
|
||||
}
|
||||
|
|
|
@ -56,7 +56,6 @@ import com.raytheon.uf.viz.core.notification.NotificationException;
|
|||
import com.raytheon.uf.viz.core.notification.NotificationMessage;
|
||||
import com.raytheon.uf.viz.core.notification.jobs.NotificationManagerJob;
|
||||
import com.raytheon.uf.viz.core.requests.ThriftClient;
|
||||
import com.raytheon.viz.gfe.core.internal.IFPClient;
|
||||
import com.raytheon.viz.ui.dialogs.CaveJFACEDialog;
|
||||
|
||||
/**
|
||||
|
@ -69,6 +68,7 @@ import com.raytheon.viz.ui.dialogs.CaveJFACEDialog;
|
|||
* Date Ticket# Engineer Description
|
||||
* ------------ ---------- ----------- --------------------------
|
||||
* Aug 5, 2011 randerso Initial creation
|
||||
* Oct 26, 2012 1287 rferrel Code clean up for non-blocking dialog.
|
||||
*
|
||||
* </pre>
|
||||
*
|
||||
|
@ -79,7 +79,7 @@ import com.raytheon.viz.ui.dialogs.CaveJFACEDialog;
|
|||
public class SiteActivationDlg extends CaveJFACEDialog implements
|
||||
INotificationObserver {
|
||||
private static final transient IUFStatusHandler statusHandler = UFStatus
|
||||
.getHandler(IFPClient.class);
|
||||
.getHandler(SiteActivationDlg.class);
|
||||
|
||||
private SimpleDateFormat dateFormat;
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue