1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-04-29 19:45:01 +02:00

Bugzilla 253087

This commit is contained in:
Randy Rohrbach 2008-11-02 02:27:20 +00:00
parent 27fd234e78
commit 4e2105bd6a

View file

@ -977,12 +977,27 @@ public class TraditionalRendering extends AbstractMemoryRendering implements IRe
newColumnCount = Integer.parseInt(inputDialog.getValue());
} catch (NumberFormatException x) { assert false; }
TraditionalRendering.this.fRendering.setColumnsSetting(newColumnCount);
this.setChecked(false);
displayColumnCountCustomValue.setChecked(true);
displayColumnCountCustomValue.setText(Integer.valueOf(
fRendering.getColumnsSetting()).toString());
boolean customIsOneOfStandardListChoices = false;
for(int i = 0, j = 1; i < MAX_MENU_COLUMN_COUNT; i++, j*=2) {
if ( newColumnCount == j ) {
customIsOneOfStandardListChoices = true;
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());
}
}
};