mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-04-29 19:45:01 +02:00
Bugzilla 253087
This commit is contained in:
parent
27fd234e78
commit
4e2105bd6a
1 changed files with 21 additions and 6 deletions
|
@ -977,12 +977,27 @@ public class TraditionalRendering extends AbstractMemoryRendering implements IRe
|
||||||
newColumnCount = Integer.parseInt(inputDialog.getValue());
|
newColumnCount = Integer.parseInt(inputDialog.getValue());
|
||||||
} catch (NumberFormatException x) { assert false; }
|
} catch (NumberFormatException x) { assert false; }
|
||||||
|
|
||||||
TraditionalRendering.this.fRendering.setColumnsSetting(newColumnCount);
|
boolean customIsOneOfStandardListChoices = false;
|
||||||
this.setChecked(false);
|
|
||||||
|
for(int i = 0, j = 1; i < MAX_MENU_COLUMN_COUNT; i++, j*=2) {
|
||||||
displayColumnCountCustomValue.setChecked(true);
|
if ( newColumnCount == j ) {
|
||||||
displayColumnCountCustomValue.setText(Integer.valueOf(
|
customIsOneOfStandardListChoices = true;
|
||||||
fRendering.getColumnsSetting()).toString());
|
TraditionalRendering.this.fRendering.setColumnsSetting(newColumnCount);
|
||||||
|
this.setChecked(false);
|
||||||
|
displayColumnCountCustomValue.setChecked(false);
|
||||||
|
displayColumnCounts[i].setChecked(true);
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
if ( ! customIsOneOfStandardListChoices ) {
|
||||||
|
TraditionalRendering.this.fRendering.setColumnsSetting(newColumnCount);
|
||||||
|
this.setChecked(false);
|
||||||
|
|
||||||
|
displayColumnCountCustomValue.setChecked(true);
|
||||||
|
displayColumnCountCustomValue.setText(Integer.valueOf(
|
||||||
|
fRendering.getColumnsSetting()).toString());
|
||||||
|
}
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue