mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-09-08 02:53:12 +02:00
Bug #180985: Property pages combo boxes are not read-only
This commit is contained in:
parent
8eefed45b3
commit
3dcc5c98d1
7 changed files with 9 additions and 9 deletions
|
@ -47,7 +47,7 @@ public class ArtifactTab extends AbstractCBuildPropertyTab {
|
||||||
Label l1 = new Label(usercomp, SWT.NONE);
|
Label l1 = new Label(usercomp, SWT.NONE);
|
||||||
l1.setLayoutData(new GridData(GridData.BEGINNING));
|
l1.setLayoutData(new GridData(GridData.BEGINNING));
|
||||||
l1.setText(Messages.getString("ArtifactTab.0")); //$NON-NLS-1$
|
l1.setText(Messages.getString("ArtifactTab.0")); //$NON-NLS-1$
|
||||||
c1 = new Combo(usercomp, SWT.DROP_DOWN);
|
c1 = new Combo(usercomp, SWT.READ_ONLY | SWT.DROP_DOWN | SWT.BORDER);
|
||||||
c1.setLayoutData(new GridData(GridData.FILL_HORIZONTAL));
|
c1.setLayoutData(new GridData(GridData.FILL_HORIZONTAL));
|
||||||
c1.addSelectionListener(new SelectionAdapter() {
|
c1.addSelectionListener(new SelectionAdapter() {
|
||||||
public void widgetSelected(SelectionEvent e) {
|
public void widgetSelected(SelectionEvent e) {
|
||||||
|
|
|
@ -126,7 +126,7 @@ public class BuildStepsTab extends AbstractCBuildPropertyTab {
|
||||||
Group g1 = setupGroup (usercomp, Messages.getString("BuildStepsTab.4"), 1, GridData.FILL_HORIZONTAL); //$NON-NLS-1$
|
Group g1 = setupGroup (usercomp, Messages.getString("BuildStepsTab.4"), 1, GridData.FILL_HORIZONTAL); //$NON-NLS-1$
|
||||||
setupLabel(g1, UIMessages.getString(RCBS_APPLICABILITY), 1, GridData.BEGINNING);
|
setupLabel(g1, UIMessages.getString(RCBS_APPLICABILITY), 1, GridData.BEGINNING);
|
||||||
|
|
||||||
combo = new Combo(g1, SWT.BORDER);
|
combo = new Combo(g1, SWT.READ_ONLY | SWT.DROP_DOWN | SWT.BORDER);
|
||||||
combo.setItems(rcbsApplicabilityRules);
|
combo.setItems(rcbsApplicabilityRules);
|
||||||
combo.addSelectionListener(new SelectionAdapter() {
|
combo.addSelectionListener(new SelectionAdapter() {
|
||||||
public void widgetSelected(SelectionEvent e) {
|
public void widgetSelected(SelectionEvent e) {
|
||||||
|
|
|
@ -81,7 +81,7 @@ public class BuilderSettingsTab extends AbstractCBuildPropertyTab {
|
||||||
// Builder group
|
// Builder group
|
||||||
Group g1 = setupGroup(usercomp, Messages.getString("BuilderSettingsTab.0"), 3, GridData.FILL_HORIZONTAL); //$NON-NLS-1$
|
Group g1 = setupGroup(usercomp, Messages.getString("BuilderSettingsTab.0"), 3, GridData.FILL_HORIZONTAL); //$NON-NLS-1$
|
||||||
setupLabel(g1, Messages.getString("BuilderSettingsTab.1"), 1, GridData.BEGINNING); //$NON-NLS-1$
|
setupLabel(g1, Messages.getString("BuilderSettingsTab.1"), 1, GridData.BEGINNING); //$NON-NLS-1$
|
||||||
c_builderType = new Combo(g1, SWT.DROP_DOWN | SWT.BORDER);
|
c_builderType = new Combo(g1, SWT.READ_ONLY | SWT.DROP_DOWN | SWT.BORDER);
|
||||||
setupControl(c_builderType, 2, GridData.FILL_HORIZONTAL);
|
setupControl(c_builderType, 2, GridData.FILL_HORIZONTAL);
|
||||||
c_builderType.add(Messages.getString("BuilderSettingsTab.2")); //$NON-NLS-1$
|
c_builderType.add(Messages.getString("BuilderSettingsTab.2")); //$NON-NLS-1$
|
||||||
c_builderType.add(Messages.getString("BuilderSettingsTab.3")); //$NON-NLS-1$
|
c_builderType.add(Messages.getString("BuilderSettingsTab.3")); //$NON-NLS-1$
|
||||||
|
|
|
@ -103,7 +103,7 @@ public class DiscoveryTab extends AbstractCBuildPropertyTab implements IBuildInf
|
||||||
if (page.isForProject() || page.isForPrefs()) {
|
if (page.isForProject() || page.isForPrefs()) {
|
||||||
Group scopeGroup = setupGroup(usercomp, Messages.getString("DiscoveryTab.0"), 1, GridData.FILL_HORIZONTAL); //$NON-NLS-1$
|
Group scopeGroup = setupGroup(usercomp, Messages.getString("DiscoveryTab.0"), 1, GridData.FILL_HORIZONTAL); //$NON-NLS-1$
|
||||||
scopeGroup.setLayoutData(new GridData(GridData.FILL_HORIZONTAL));
|
scopeGroup.setLayoutData(new GridData(GridData.FILL_HORIZONTAL));
|
||||||
scopeComboBox = new Combo(scopeGroup, SWT.DROP_DOWN | SWT.READ_ONLY);
|
scopeComboBox = new Combo(scopeGroup, SWT.DROP_DOWN | SWT.READ_ONLY | SWT.BORDER);
|
||||||
scopeComboBox.setLayoutData(new GridData(GridData.FILL_HORIZONTAL));
|
scopeComboBox.setLayoutData(new GridData(GridData.FILL_HORIZONTAL));
|
||||||
scopeComboBox.add(Messages.getString("DiscoveryTab.1")); //$NON-NLS-1$
|
scopeComboBox.add(Messages.getString("DiscoveryTab.1")); //$NON-NLS-1$
|
||||||
scopeComboBox.add(Messages.getString("DiscoveryTab.2")); //$NON-NLS-1$
|
scopeComboBox.add(Messages.getString("DiscoveryTab.2")); //$NON-NLS-1$
|
||||||
|
@ -167,7 +167,7 @@ public class DiscoveryTab extends AbstractCBuildPropertyTab implements IBuildInf
|
||||||
|
|
||||||
// Add profile combo box
|
// Add profile combo box
|
||||||
setupLabel(scGroup,UIMessages.getString(SC_SELECTED_PROFILE_COMBO), 1, GridData.BEGINNING);
|
setupLabel(scGroup,UIMessages.getString(SC_SELECTED_PROFILE_COMBO), 1, GridData.BEGINNING);
|
||||||
profileComboBox = new Combo(scGroup, SWT.DROP_DOWN | SWT.READ_ONLY);
|
profileComboBox = new Combo(scGroup, SWT.DROP_DOWN | SWT.READ_ONLY | SWT.BORDER);
|
||||||
profileComboBox.setLayoutData(new GridData(GridData.FILL_HORIZONTAL));
|
profileComboBox.setLayoutData(new GridData(GridData.FILL_HORIZONTAL));
|
||||||
profileComboBox.addSelectionListener(new SelectionAdapter() {
|
profileComboBox.addSelectionListener(new SelectionAdapter() {
|
||||||
public void widgetSelected(SelectionEvent e) {
|
public void widgetSelected(SelectionEvent e) {
|
||||||
|
|
|
@ -170,7 +170,7 @@ public class NewVarDialog extends Dialog {
|
||||||
gd = new GridData();
|
gd = new GridData();
|
||||||
typeLabel.setLayoutData(gd);
|
typeLabel.setLayoutData(gd);
|
||||||
|
|
||||||
fTypeSelector = new Combo(comp, SWT.READ_ONLY|SWT.DROP_DOWN);
|
fTypeSelector = new Combo(comp, SWT.READ_ONLY | SWT.DROP_DOWN | SWT.BORDER);
|
||||||
gd = new GridData(GridData.HORIZONTAL_ALIGN_BEGINNING);
|
gd = new GridData(GridData.HORIZONTAL_ALIGN_BEGINNING);
|
||||||
gd.horizontalSpan = 2;
|
gd.horizontalSpan = 2;
|
||||||
// gd.widthHint = 100;
|
// gd.widthHint = 100;
|
||||||
|
|
|
@ -57,7 +57,7 @@ public class ToolChainEditTab extends AbstractCBuildPropertyTab {
|
||||||
b_dispCompatible = setupCheck(usercomp, Messages.getString("ToolChainEditTab.0"), 2, GridData.BEGINNING); //$NON-NLS-1$
|
b_dispCompatible = setupCheck(usercomp, Messages.getString("ToolChainEditTab.0"), 2, GridData.BEGINNING); //$NON-NLS-1$
|
||||||
|
|
||||||
setupLabel(usercomp, Messages.getString("ToolChainEditTab.1"), 2, GridData.BEGINNING); //$NON-NLS-1$
|
setupLabel(usercomp, Messages.getString("ToolChainEditTab.1"), 2, GridData.BEGINNING); //$NON-NLS-1$
|
||||||
c_toolchain = new Combo(usercomp, SWT.BORDER);
|
c_toolchain = new Combo(usercomp, SWT.READ_ONLY | SWT.DROP_DOWN | SWT.BORDER);
|
||||||
GridData gd = new GridData(GridData.FILL_HORIZONTAL);
|
GridData gd = new GridData(GridData.FILL_HORIZONTAL);
|
||||||
gd.horizontalSpan = 2;
|
gd.horizontalSpan = 2;
|
||||||
c_toolchain.setLayoutData(gd);
|
c_toolchain.setLayoutData(gd);
|
||||||
|
@ -80,7 +80,7 @@ public class ToolChainEditTab extends AbstractCBuildPropertyTab {
|
||||||
c_toolchain.setEnabled(!page.isForFile());
|
c_toolchain.setEnabled(!page.isForFile());
|
||||||
|
|
||||||
setupLabel(usercomp, Messages.getString("ToolChainEditTab.2"), 2, GridData.BEGINNING); //$NON-NLS-1$
|
setupLabel(usercomp, Messages.getString("ToolChainEditTab.2"), 2, GridData.BEGINNING); //$NON-NLS-1$
|
||||||
c_builder = new Combo(usercomp, SWT.BORDER);
|
c_builder = new Combo(usercomp, SWT.READ_ONLY | SWT.DROP_DOWN | SWT.BORDER);
|
||||||
gd = new GridData(GridData.FILL_HORIZONTAL);
|
gd = new GridData(GridData.FILL_HORIZONTAL);
|
||||||
gd.horizontalSpan = 2;
|
gd.horizontalSpan = 2;
|
||||||
c_builder.setLayoutData(gd);
|
c_builder.setLayoutData(gd);
|
||||||
|
|
|
@ -168,7 +168,7 @@ public class StructureTreeTab extends AbstractCPropertyTab {
|
||||||
lb.setText(UIMessages.getString("StructureTreeTab.4")); //$NON-NLS-1$
|
lb.setText(UIMessages.getString("StructureTreeTab.4")); //$NON-NLS-1$
|
||||||
lb.setLayoutData(new GridData(GridData.BEGINNING));
|
lb.setLayoutData(new GridData(GridData.BEGINNING));
|
||||||
|
|
||||||
combo = new Combo(usercomp, SWT.BORDER);
|
combo = new Combo(usercomp, SWT.READ_ONLY | SWT.DROP_DOWN | SWT.BORDER);
|
||||||
combo.setLayoutData(new GridData(GridData.FILL_HORIZONTAL));
|
combo.setLayoutData(new GridData(GridData.FILL_HORIZONTAL));
|
||||||
combo.add(UIMessages.getString("ConfigDescriptionTab.0")); //$NON-NLS-1$
|
combo.add(UIMessages.getString("ConfigDescriptionTab.0")); //$NON-NLS-1$
|
||||||
combo.add(UIMessages.getString("ConfigDescriptionTab.1")); //$NON-NLS-1$
|
combo.add(UIMessages.getString("ConfigDescriptionTab.1")); //$NON-NLS-1$
|
||||||
|
|
Loading…
Add table
Reference in a new issue