mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-04-29 19:45:01 +02:00
Bug : 228958 : Usability: Project Properties->C/C++ Build->Any->Manage Configuration header
This commit is contained in:
parent
b916d9dd5d
commit
534aa38e6d
4 changed files with 16 additions and 6 deletions
|
@ -58,7 +58,7 @@ BuildMenu.label=Build
|
||||||
Build.System.Wizard=Build System Wizard
|
Build.System.Wizard=Build System Wizard
|
||||||
Make.Project.Wizard=Make Project Wizard
|
Make.Project.Wizard=Make Project Wizard
|
||||||
|
|
||||||
MBS.create.configuration=MBS: create configuration
|
MBS.create.configuration=Create New Configuration
|
||||||
|
|
||||||
WizardConvertMakeProject.name=Convert to a C/C++ Make Project
|
WizardConvertMakeProject.name=Convert to a C/C++ Make Project
|
||||||
WizardConvertMakeProject.name1=Convert to a C/C++ Make Project1
|
WizardConvertMakeProject.name1=Convert to a C/C++ Make Project1
|
||||||
|
|
|
@ -102,6 +102,12 @@ public class ManageConfigDialog extends Dialog {
|
||||||
table.setHeaderVisible(true);
|
table.setHeaderVisible(true);
|
||||||
table.setLinesVisible(true);
|
table.setLinesVisible(true);
|
||||||
|
|
||||||
|
table.addSelectionListener(new SelectionAdapter() {
|
||||||
|
@Override
|
||||||
|
public void widgetSelected(SelectionEvent e) {
|
||||||
|
updateButtons();
|
||||||
|
}});
|
||||||
|
|
||||||
TableColumn col = new TableColumn(table, SWT.NONE);
|
TableColumn col = new TableColumn(table, SWT.NONE);
|
||||||
col.setText(UIMessages.getString("ManageConfigDialog.1")); //$NON-NLS-1$
|
col.setText(UIMessages.getString("ManageConfigDialog.1")); //$NON-NLS-1$
|
||||||
col.setWidth(100);
|
col.setWidth(100);
|
||||||
|
@ -258,7 +264,11 @@ public class ManageConfigDialog extends Dialog {
|
||||||
int sel = table.getSelectionCount();
|
int sel = table.getSelectionCount();
|
||||||
delBtn.setEnabled(sel > 0 & sel < table.getItemCount());
|
delBtn.setEnabled(sel > 0 & sel < table.getItemCount());
|
||||||
renBtn.setEnabled(sel == 1);
|
renBtn.setEnabled(sel == 1);
|
||||||
actBtn.setEnabled(sel == 1);
|
if (sel == 1) {
|
||||||
|
ICConfigurationDescription c = (ICConfigurationDescription)table.getSelection()[0].getData();
|
||||||
|
actBtn.setEnabled(c != null && !c.isActive());
|
||||||
|
} else
|
||||||
|
actBtn.setEnabled(false);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -49,7 +49,7 @@ public class ManageConfigRunner implements IConfigManager {
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
ManageConfigDialog d = new ManageConfigDialog(CUIPlugin.getActiveWorkbenchShell(),
|
ManageConfigDialog d = new ManageConfigDialog(CUIPlugin.getActiveWorkbenchShell(),
|
||||||
obs[0].getName()+ " : " + MANAGE_TITLE, obs[0]); //$NON-NLS-1$
|
obs[0].getName()+ ": " + MANAGE_TITLE, obs[0]); //$NON-NLS-1$
|
||||||
boolean result = false;
|
boolean result = false;
|
||||||
if (d.open() == Window.OK) {
|
if (d.open() == Window.OK) {
|
||||||
if (doOk) {
|
if (doOk) {
|
||||||
|
|
|
@ -191,7 +191,7 @@ RenameConfiguration.error.caseName=A configuration name that differs only in cas
|
||||||
RenameConfiguration.error.invalidName=The name "{0}" is invalid.
|
RenameConfiguration.error.invalidName=The name "{0}" is invalid.
|
||||||
|
|
||||||
# ----------- Target/Config management dialog -----------------
|
# ----------- Target/Config management dialog -----------------
|
||||||
ManageConfig.label.configs=Manage configurations
|
ManageConfig.label.configs=Manage Configurations
|
||||||
ManageConfig.label.rename=Rename
|
ManageConfig.label.rename=Rename
|
||||||
ManageConfig.label.conversionTargetLabel=Tool chain conversion targets:
|
ManageConfig.label.conversionTargetLabel=Tool chain conversion targets:
|
||||||
ManageConfig.label.convertTarget=Convert
|
ManageConfig.label.convertTarget=Convert
|
||||||
|
@ -205,7 +205,7 @@ ManageConfigDialog.2=Description
|
||||||
ManageConfigDialog.3=Status
|
ManageConfigDialog.3=Status
|
||||||
ManageConfigDialog.4=Set Active
|
ManageConfigDialog.4=Set Active
|
||||||
ManageConfigDialog.5=Active
|
ManageConfigDialog.5=Active
|
||||||
ManageConfigDialog.0=Manage configurations...
|
ManageConfigDialog.0=Manage Configurations
|
||||||
ManageConfig.tip.conversionTarget=A list of conversion targets available for the selected configuration
|
ManageConfig.tip.conversionTarget=A list of conversion targets available for the selected configuration
|
||||||
|
|
||||||
# Toolchain Conversion Target confirmation Dialog
|
# Toolchain Conversion Target confirmation Dialog
|
||||||
|
@ -336,7 +336,7 @@ AbstractCPropertyTab.1=Variables...
|
||||||
AbstractCPropertyTab.2=This tab is not supported in multi-configuration mode
|
AbstractCPropertyTab.2=This tab is not supported in multi-configuration mode
|
||||||
AbstractPage.0=Unknown element selected
|
AbstractPage.0=Unknown element selected
|
||||||
AbstractPage.1=This file has no properties to display
|
AbstractPage.1=This file has no properties to display
|
||||||
AbstractPage.12=Manage configurations
|
AbstractPage.12=Manage Configurations...
|
||||||
AbstractPage.11=setProjectDescription:
|
AbstractPage.11=setProjectDescription:
|
||||||
AbstractPage.10=Cannot create resource configuration for
|
AbstractPage.10=Cannot create resource configuration for
|
||||||
AbstractPage.13=Cannot load
|
AbstractPage.13=Cannot load
|
||||||
|
|
Loading…
Add table
Reference in a new issue