Issue #3109 - removed code that sets the Cave cursor.

Change-Id: I1d6d640c5abafffdea29f1e2e835142fe6598470

Former-commit-id: b0a251f4e3 [formerly d875f73ff44986b2c7862f0dee06504d576fd96b]
Former-commit-id: a6c2260dd1
This commit is contained in:
Lee Venable 2014-05-05 16:12:24 -05:00
parent 2b6c30e67d
commit 550668cbf7

View file

@ -91,6 +91,8 @@ import com.raytheon.viz.ui.dialogs.ICloseCallback;
* Changes for non-blocking LoadSaveDeleteSelectDlg. * Changes for non-blocking LoadSaveDeleteSelectDlg.
* Mar 28, 2013 #1790 rferrel Bug fix for non-blocking dialogs. * Mar 28, 2013 #1790 rferrel Bug fix for non-blocking dialogs.
* Apr, 15, 2013 #1911 dhladky dialog wouldn't open every time to retrieve file. * Apr, 15, 2013 #1911 dhladky dialog wouldn't open every time to retrieve file.
* May 05, 2014 #3109 lvenable Removed code that sets the cursor on Cave because it doesn't need
* to be set.
* *
* </pre> * </pre>
* *
@ -310,8 +312,7 @@ public class FFFGDlg extends CaveSWTDialog implements ISourceCompAction,
public FFFGDlg(Shell parentShell) { public FFFGDlg(Shell parentShell) {
super(parentShell, SWT.DIALOG_TRIM, CAVE.INDEPENDENT_SHELL super(parentShell, SWT.DIALOG_TRIM, CAVE.INDEPENDENT_SHELL
| CAVE.DO_NOT_BLOCK); | CAVE.DO_NOT_BLOCK);
this.getParent().setCursor(
this.getParent().getDisplay().getSystemCursor(SWT.CURSOR_WAIT));
setText("Forced Flash Flood Guidance"); setText("Forced Flash Flood Guidance");
sourceCompArray = new ArrayList<SourceComp>(); sourceCompArray = new ArrayList<SourceComp>();
@ -808,15 +809,9 @@ public class FFFGDlg extends CaveSWTDialog implements ISourceCompAction,
applyBtn.addSelectionListener(new SelectionAdapter() { applyBtn.addSelectionListener(new SelectionAdapter() {
@Override @Override
public void widgetSelected(SelectionEvent e) { public void widgetSelected(SelectionEvent e) {
getParent().setCursor(
getParent().getDisplay().getSystemCursor(
SWT.CURSOR_WAIT));
shell.setCursor(getDisplay().getSystemCursor(SWT.CURSOR_WAIT)); shell.setCursor(getDisplay().getSystemCursor(SWT.CURSOR_WAIT));
applyDataAction(); applyDataAction();
updateFileStatusLabel(false); updateFileStatusLabel(false);
getParent().setCursor(
getParent().getDisplay().getSystemCursor(
SWT.CURSOR_ARROW));
shell.setCursor(getDisplay().getSystemCursor(SWT.CURSOR_ARROW)); shell.setCursor(getDisplay().getSystemCursor(SWT.CURSOR_ARROW));
saveFileAs(); saveFileAs();
@ -886,6 +881,7 @@ public class FFFGDlg extends CaveSWTDialog implements ISourceCompAction,
* -1 = error, 0 = information message * -1 = error, 0 = information message
* @param message * @param message
*/ */
@Override
public void setStatusMsg(int status, String message) { public void setStatusMsg(int status, String message) {
if (message == null) { if (message == null) {
statusLbl.setText(""); statusLbl.setText("");
@ -2223,10 +2219,6 @@ public class FFFGDlg extends CaveSWTDialog implements ISourceCompAction,
sc.populateSourceComp(); sc.populateSourceComp();
statusLbl.setText(""); statusLbl.setText("");
this.getParent()
.setCursor(
this.getParent().getDisplay()
.getSystemCursor(SWT.CURSOR_ARROW));
} }
/* /*