Issue #1298 Change CaveJFACEDialog's open method to work similar to CaveSWTDialog's open.
Change-Id: I5e4cf98b98df3571a94407f2d677766b209d4081 Former-commit-id: 4da71d30d62eeeee3546c3019850e77cab757c78
This commit is contained in:
parent
795dfdc9dd
commit
4c3af2a258
1 changed files with 17 additions and 0 deletions
|
@ -53,6 +53,8 @@ import com.raytheon.viz.ui.perspectives.VizPerspectiveListener;
|
|||
* of removing the dialog blocking capability.
|
||||
* 09/20/12 1196 rferrel Changes to setBlockOnOpen.
|
||||
* 09/27/12 1196 rferrel Added bringToTop
|
||||
* 11/13/12 1298 rferrel Override open to work in a similar manner
|
||||
* to CaveSWTDialogBase's open.
|
||||
*
|
||||
* </pre>
|
||||
*
|
||||
|
@ -279,4 +281,19 @@ public class CaveJFACEDialog extends Dialog implements
|
|||
super.setBlockOnOpen(blockOnOpen);
|
||||
// blockedOnOpen = blockOnOpen;
|
||||
}
|
||||
|
||||
/*
|
||||
* (non-Javadoc)
|
||||
*
|
||||
* @see org.eclipse.jface.window.Window#open()
|
||||
*/
|
||||
@Override
|
||||
public int open() {
|
||||
if (isOpen()) {
|
||||
bringToTop();
|
||||
return getReturnCode();
|
||||
}
|
||||
|
||||
return super.open();
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue