mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-07-03 07:05:24 +02:00
[179937] Fix problem with not being able to set other encoding in some cases.
This commit is contained in:
parent
44b28989a7
commit
11d0a26ff4
1 changed files with 11 additions and 3 deletions
|
@ -192,7 +192,7 @@ public class SystemFilePropertyPage extends SystemBasePropertyPage
|
|||
data.grabExcessVerticalSpace = false;
|
||||
encodingGroup.setLayoutData(data);
|
||||
|
||||
SelectionAdapter buttonSelectionListener = new SelectionAdapter() {
|
||||
SelectionAdapter defaultButtonSelectionListener = new SelectionAdapter() {
|
||||
public void widgetSelected(SelectionEvent e) {
|
||||
updateEncodingGroupState(defaultEncodingButton.getSelection());
|
||||
updateValidState();
|
||||
|
@ -212,7 +212,7 @@ public class SystemFilePropertyPage extends SystemBasePropertyPage
|
|||
data = new GridData();
|
||||
data.horizontalSpan = 2;
|
||||
defaultEncodingButton.setLayoutData(data);
|
||||
defaultEncodingButton.addSelectionListener(buttonSelectionListener);
|
||||
defaultEncodingButton.addSelectionListener(defaultButtonSelectionListener);
|
||||
|
||||
Composite otherComposite = new Composite(encodingGroup, SWT.NONE);
|
||||
GridLayout otherLayout = new GridLayout();
|
||||
|
@ -224,7 +224,15 @@ public class SystemFilePropertyPage extends SystemBasePropertyPage
|
|||
|
||||
// other encoding field
|
||||
otherEncodingButton = SystemWidgetHelpers.createRadioButton(otherComposite, null, SystemFileResources.RESID_PP_FILE_ENCODING_OTHER_LABEL, SystemFileResources.RESID_PP_FILE_ENCODING_OTHER_TOOLTIP);
|
||||
otherEncodingButton.addSelectionListener(buttonSelectionListener);
|
||||
|
||||
SelectionAdapter otherButtonSelectionListener = new SelectionAdapter() {
|
||||
public void widgetSelected(SelectionEvent e) {
|
||||
updateEncodingGroupState(!otherEncodingButton.getSelection());
|
||||
updateValidState();
|
||||
}
|
||||
};
|
||||
|
||||
otherEncodingButton.addSelectionListener(otherButtonSelectionListener);
|
||||
|
||||
// other encoding combo
|
||||
otherEncodingCombo = SystemWidgetHelpers.createCombo(otherComposite, null, SystemFileResources.RESID_PP_FILE_ENCODING_ENTER_TOOLTIP);
|
||||
|
|
Loading…
Add table
Reference in a new issue