mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-07-03 15:15:25 +02:00
trivial - null pointer check for case where event handling happens before widgets created
This commit is contained in:
parent
c58c969211
commit
6a1b685f8a
1 changed files with 8 additions and 4 deletions
|
@ -1325,10 +1325,14 @@ class RemoteImportWizardPage1 extends WizardResourceImportPage implements Listen
|
|||
}
|
||||
|
||||
// if review is selected, the other options are grayed out without save settings
|
||||
boolean isReview = reviewSynchronizeCheckbox.getSelection();
|
||||
overwriteExistingResourcesCheckbox.setEnabled(!isReview);
|
||||
createContainerStructureButton.setEnabled(!isReview);
|
||||
createOnlySelectedButton.setEnabled(!isReview);
|
||||
if (reviewSynchronizeCheckbox != null){ // event handling could come before the widgets are created
|
||||
boolean isReview = reviewSynchronizeCheckbox.getSelection();
|
||||
overwriteExistingResourcesCheckbox.setEnabled(!isReview);
|
||||
createContainerStructureButton.setEnabled(!isReview);
|
||||
createOnlySelectedButton.setEnabled(!isReview);
|
||||
}
|
||||
|
||||
|
||||
// this calls to determine whether page can be completed
|
||||
super.updateWidgetEnablements();
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue