Issue #1229 - Change to use non-blocking
Change-Id: I98d8549345ea4450342c17f23649cd14c29f666d Former-commit-id:f6018e03d1
[formerlyf4a7a5c2d5
] [formerlyf6018e03d1
[formerlyf4a7a5c2d5
] [formerly2fefd0c8a2
[formerly 982bf7b1bd34b93c227b722deb41f516d8b51e82]]] Former-commit-id:2fefd0c8a2
Former-commit-id:bd0d2ce10d
[formerly3641b1fe46
] Former-commit-id:33bc60e74f
This commit is contained in:
parent
ba5e9366b6
commit
ecfb8e5074
2 changed files with 27 additions and 5 deletions
|
@ -162,13 +162,11 @@ public class ResourceEditorDlg extends CaveSWTDialog implements IResize {
|
||||||
helpBtn.addSelectionListener(new SelectionAdapter() {
|
helpBtn.addSelectionListener(new SelectionAdapter() {
|
||||||
@Override
|
@Override
|
||||||
public void widgetSelected(SelectionEvent e) {
|
public void widgetSelected(SelectionEvent e) {
|
||||||
if (helpDlg == null) {
|
if (mustCreate(helpDlg)) {
|
||||||
helpDlg = new ResourceEditorHelpDlg(shell);
|
helpDlg = new ResourceEditorHelpDlg(shell);
|
||||||
helpDlg.open();
|
helpDlg.open();
|
||||||
|
|
||||||
helpDlg = null;
|
|
||||||
} else {
|
} else {
|
||||||
helpDlg.showDialog();
|
helpDlg.bringToTop();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
|
@ -35,6 +35,25 @@ import org.eclipse.swt.widgets.Shell;
|
||||||
import com.raytheon.viz.aviation.resource.ResourceConfigMgr.ResourceTag;
|
import com.raytheon.viz.aviation.resource.ResourceConfigMgr.ResourceTag;
|
||||||
import com.raytheon.viz.ui.dialogs.CaveSWTDialog;
|
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 {
|
public class ResourceEditorHelpDlg extends CaveSWTDialog {
|
||||||
/**
|
/**
|
||||||
* Main composite for the controls.
|
* Main composite for the controls.
|
||||||
|
@ -48,9 +67,14 @@ public class ResourceEditorHelpDlg extends CaveSWTDialog {
|
||||||
|
|
||||||
private Cursor textCursor;
|
private Cursor textCursor;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Construct the ResourceEditor help dialog.
|
||||||
|
* @param parentShell The shell containing this dialog.
|
||||||
|
*/
|
||||||
public ResourceEditorHelpDlg(Shell parentShell) {
|
public ResourceEditorHelpDlg(Shell parentShell) {
|
||||||
super(parentShell, SWT.SHELL_TRIM | SWT.RESIZE,
|
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");
|
setText("AvnFPS Help");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue