1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-06-08 18:26:01 +02:00

Bug #191346: Property page saving changed

This commit is contained in:
Oleg Krasilnikov 2007-06-07 13:15:05 +00:00
parent bdc308c231
commit 398742f0b8
2 changed files with 9 additions and 9 deletions

View file

@ -76,9 +76,9 @@ public class PropertyPageDefsTab extends AbstractCPropertyTab {
saveGrp.setLayout(fl);
s_0 = new Button(saveGrp, SWT.RADIO);
s_0.setText(UIMessages.getString("PropertyPageDefsTab.12")); //$NON-NLS-1$
s_0.setText(UIMessages.getString("PropertyPageDefsTab.13")); //$NON-NLS-1$
s_1 = new Button(saveGrp, SWT.RADIO);
s_1.setText(UIMessages.getString("PropertyPageDefsTab.13")); //$NON-NLS-1$
s_1.setText(UIMessages.getString("PropertyPageDefsTab.12")); //$NON-NLS-1$
s_2 = new Button(saveGrp, SWT.RADIO);
s_2.setText(UIMessages.getString("PropertyPageDefsTab.14")); //$NON-NLS-1$
@ -114,9 +114,9 @@ public class PropertyPageDefsTab extends AbstractCPropertyTab {
}
switch (CDTPrefUtil.getInt(CDTPrefUtil.KEY_POSSAVE)) {
case CDTPrefUtil.POSITION_SAVE_BOTH: s_0.setSelection(true); break;
case CDTPrefUtil.POSITION_SAVE_SIZE: s_1.setSelection(true); break;
case CDTPrefUtil.POSITION_SAVE_BOTH: s_1.setSelection(true); break;
case CDTPrefUtil.POSITION_SAVE_NONE: s_2.setSelection(true); break;
default: s_0.setSelection(true); break;
}
}
@ -132,9 +132,9 @@ public class PropertyPageDefsTab extends AbstractCPropertyTab {
else if (b_3.getSelection()) x = 3;
CDTPrefUtil.setInt(CDTPrefUtil.KEY_DISC_NAMES, x);
if (s_0.getSelection()) x = 0;
else if (s_1.getSelection()) x = 1;
else if (s_2.getSelection()) x = 2;
if (s_0.getSelection()) x = CDTPrefUtil.POSITION_SAVE_SIZE;
else if (s_1.getSelection()) x = CDTPrefUtil.POSITION_SAVE_BOTH;
else if (s_2.getSelection()) x = CDTPrefUtil.POSITION_SAVE_NONE;
CDTPrefUtil.setInt(CDTPrefUtil.KEY_POSSAVE, x);
}

View file

@ -31,9 +31,9 @@ public class CDTPrefUtil {
public static final String KEY_PREFTC = "wizard.preferred.toolchains"; //$NON-NLS-1$
// integer keys
public static final String KEY_POSSAVE = "properties.save.position"; //$NON-NLS-1$
public static final int POSITION_SAVE_BOTH = 0;
public static final int POSITION_SAVE_SIZE = 1;
public static final int POSITION_SAVE_SIZE = 0;
public static final int POSITION_SAVE_NONE = 2;
public static final int POSITION_SAVE_BOTH = 3;
public static final String KEY_DISC_NAMES = "properties.discovery.naming"; //$NON-NLS-1$
public static final int DISC_NAMING_UNIQUE_OR_BOTH = 0;