Issue #1229 - Change to use non-blocking

Change-Id: I98d8549345ea4450342c17f23649cd14c29f666d

Former-commit-id: f6018e03d1 [formerly f4a7a5c2d5] [formerly f6018e03d1 [formerly f4a7a5c2d5] [formerly 2fefd0c8a2 [formerly 982bf7b1bd34b93c227b722deb41f516d8b51e82]]]
Former-commit-id: 2fefd0c8a2
Former-commit-id: bd0d2ce10d [formerly 3641b1fe46]
Former-commit-id: 33bc60e74f
This commit is contained in:
James Korman 2012-10-11 14:01:50 -05:00 committed by Steve Harris
parent ba5e9366b6
commit ecfb8e5074
2 changed files with 27 additions and 5 deletions

View file

@ -162,13 +162,11 @@ public class ResourceEditorDlg extends CaveSWTDialog implements IResize {
helpBtn.addSelectionListener(new SelectionAdapter() {
@Override
public void widgetSelected(SelectionEvent e) {
if (helpDlg == null) {
if (mustCreate(helpDlg)) {
helpDlg = new ResourceEditorHelpDlg(shell);
helpDlg.open();
helpDlg = null;
} else {
helpDlg.showDialog();
helpDlg.bringToTop();
}
}
});

View file

@ -35,6 +35,25 @@ import org.eclipse.swt.widgets.Shell;
import com.raytheon.viz.aviation.resource.ResourceConfigMgr.ResourceTag;
import com.raytheon.viz.ui.dialogs.CaveSWTDialog;
/**
* Display help text for the ResourceEditor dialog within the AvnFPS
* TAFMonitor dialog.
*
* <pre>
*
* SOFTWARE HISTORY
*
* Date Ticket# Engineer Description
* ------------ ---------- ----------- --------------------------
* ************ ********** *********** No previous software history.
* Oct 11, 2012 1229 jkorman Make dialog non-blocking.
*
* </pre>
*
* @author
* @version 1.0
*/
public class ResourceEditorHelpDlg extends CaveSWTDialog {
/**
* Main composite for the controls.
@ -48,9 +67,14 @@ public class ResourceEditorHelpDlg extends CaveSWTDialog {
private Cursor textCursor;
/**
* Construct the ResourceEditor help dialog.
* @param parentShell The shell containing this dialog.
*/
public ResourceEditorHelpDlg(Shell parentShell) {
super(parentShell, SWT.SHELL_TRIM | SWT.RESIZE,
CAVE.PERSPECTIVE_INDEPENDENT | CAVE.MODE_INDEPENDENT);
CAVE.PERSPECTIVE_INDEPENDENT | CAVE.MODE_INDEPENDENT
| CAVE.DO_NOT_BLOCK);
setText("AvnFPS Help");
}