Issue #2833 - fixed subset dialog from disappearing when the subscription button double clicked.
Former-commit-id: a075d26c10bf7459419180f416d3e9ccefb94075
This commit is contained in:
parent
3735cd3ffe
commit
94cede8153
1 changed files with 14 additions and 1 deletions
|
@ -143,6 +143,8 @@ import com.raytheon.viz.ui.presenter.IDisplay;
|
|||
* Jan 14, 2014 2459 mpduff Change Subscription status code
|
||||
* Jan 20, 2014 2538 mpduff Call doesNameExist method to check for dupes
|
||||
* Feb 11, 2014 2771 bgonzale Use Data Delivery ID instead of Site.
|
||||
* Feb 26, 2014 #2833 lvenable Added code to prevent the Subset (this) dialog from
|
||||
* disappearing when the Subscription button is double clicked.
|
||||
* </pre>
|
||||
*
|
||||
* @author mpduff
|
||||
|
@ -417,7 +419,7 @@ public abstract class SubsetManagerDlg extends CaveSWTDialog implements
|
|||
int buttonWidth = 87;
|
||||
GridData btnData = new GridData(buttonWidth, SWT.DEFAULT);
|
||||
|
||||
Button subscribeBtn = new Button(bottomComp, SWT.PUSH);
|
||||
final Button subscribeBtn = new Button(bottomComp, SWT.PUSH);
|
||||
if (!create) {
|
||||
subscribeBtn.setText("Continue...");
|
||||
subscribeBtn.setToolTipText("Click to continue editing");
|
||||
|
@ -430,6 +432,14 @@ public abstract class SubsetManagerDlg extends CaveSWTDialog implements
|
|||
subscribeBtn.addSelectionListener(new SelectionAdapter() {
|
||||
@Override
|
||||
public void widgetSelected(SelectionEvent event) {
|
||||
|
||||
/*
|
||||
* Need to disable the Subscription button as it takes time to
|
||||
* do all of the validation. Once the subscription dialog
|
||||
* returns the button will enable.
|
||||
*/
|
||||
subscribeBtn.setEnabled(false);
|
||||
|
||||
if (subscription == null) {
|
||||
launchCreateSubscriptionGui(createSubscription(
|
||||
new SiteSubscription(), Network.OPSNET));
|
||||
|
@ -438,6 +448,9 @@ public abstract class SubsetManagerDlg extends CaveSWTDialog implements
|
|||
subscription.getRoute());
|
||||
launchCreateSubscriptionGui(subscription);
|
||||
}
|
||||
|
||||
// Enable the button.
|
||||
subscribeBtn.setEnabled(true);
|
||||
}
|
||||
});
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue