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,6 +977,20 @@ 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; }
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); TraditionalRendering.this.fRendering.setColumnsSetting(newColumnCount);
this.setChecked(false); this.setChecked(false);
@ -984,6 +998,7 @@ public class TraditionalRendering extends AbstractMemoryRendering implements IRe
displayColumnCountCustomValue.setText(Integer.valueOf( displayColumnCountCustomValue.setText(Integer.valueOf(
fRendering.getColumnsSetting()).toString()); fRendering.getColumnsSetting()).toString());
} }
}
}; };
getPopupMenuManager().addMenuListener(new IMenuListener() getPopupMenuManager().addMenuListener(new IMenuListener()