1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-07-25 09:55:29 +02:00

Patch for bug 187634 by Jason Montojo - "Debug" and "Release" shared in the menu and in the file system

This commit is contained in:
Vivian Kong 2007-05-29 19:25:28 +00:00
parent 50c7c5c542
commit 196349f9fa
5 changed files with 34 additions and 1 deletions

View file

@ -7,6 +7,7 @@
#
# Contributors:
# Texas Instruments Inc. - initial API and implementation
# IBM Corporation
###############################################################################
# plugin names
@ -38,8 +39,10 @@ TargetName.linux.lib=Linux Static Library
TargetName.solaris=Solaris
# Default Configuration Names
# START NON-TRANSLATABLE
ConfigName.Rel=Release
ConfigName.Dbg=Debug
# END NON-TRANSLATABLE
# Generic tool-chain names
ToolChainName.Rel=GCC Tool Chain

View file

@ -7,6 +7,7 @@
*
* Contributors:
* Intel Corporation - Initial API and implementation
* IBM Corporation
*******************************************************************************/
package org.eclipse.cdt.managedbuilder.ui.properties;
@ -138,6 +139,15 @@ public class NewCfgDialog implements INewCfgDialog {
GridData gd = new GridData(GridData.FILL_HORIZONTAL);
gd.horizontalSpan = 3;
group1.setLayoutData(gd);
// bug 187634: Add a label to warn user that configuration name will be used directly
// as a directory name in the filesystem.
Label warningLabel = new Label(group1, SWT.BEGINNING | SWT.WRAP);
warningLabel.setFont(parent.getFont());
warningLabel.setText(UIMessages.getString("NewConfiguration.label.warning")); //$NON-NLS-1$
gd = new GridData(SWT.FILL, SWT.BEGINNING, true, false, 3, 1);
gd.widthHint = 300;
warningLabel.setLayoutData(gd);
// Add a label and a text widget for Configuration's name
final Label nameLabel = new Label(group1, SWT.LEFT);

View file

@ -139,7 +139,6 @@ public class NewConfigurationDialog extends Dialog implements INewCfgDialog {
}
protected Control createDialogArea(Composite parent) {
Composite composite = new Composite(parent, SWT.NULL);
composite.setFont(parent.getFont());
composite.setLayout(new GridLayout(3, false));
@ -155,6 +154,15 @@ public class NewConfigurationDialog extends Dialog implements INewCfgDialog {
gd.horizontalSpan = 3;
group1.setLayoutData(gd);
// bug 187634: Add a label to warn user that configuration name will be used directly
// as a directory name in the filesystem.
Label warningLabel = new Label(group1, SWT.BEGINNING | SWT.WRAP);
warningLabel.setFont(parent.getFont());
warningLabel.setText(UIMessages.getString("NewConfiguration.label.warning")); //$NON-NLS-1$
gd = new GridData(SWT.FILL, SWT.BEGINNING, true, false, 3, 1);
gd.widthHint = 300;
warningLabel.setLayoutData(gd);
// Add a label and a text widget for Configuration's name
final Label nameLabel = new Label(group1, SWT.LEFT);
nameLabel.setFont(parent.getFont());

View file

@ -246,6 +246,7 @@ NewConfiguration.label.group=Copy settings from
NewConfiguration.label.copy=Default configuration:
NewConfiguration.label.clone=Existing configuration:
NewConfiguration.label.showall=Show unsupported configurations
NewConfiguration.label.warning=Note: The configuration name will be used as a directory name in the file system. Please ensure that it is valid for your platform.
NewConfiguration.error.duplicateName=A configuration named "{0}" already exists.
NewConfiguration.error.caseName=A configuration name that differs only in case to "{0}" exists.
NewConfiguration.error.invalidName=The name "{0}" is invalid.
@ -253,6 +254,7 @@ NewConfiguration.error.invalidName=The name "{0}" is invalid.
# ----------- Rename Configuration -----------
RenameConfiguration.label.name=Name:
RenameConfiguration.label.description=Description:
RenameConfiguration.label.warning=Note: The configuration name will be used as a directory name in the file system. Please ensure that it is valid for your platform.
RenameConfiguration.error.duplicateName=A configuration named "{0}" already exists.
RenameConfiguration.error.caseName=A configuration name that differs only in case to "{0}" exists.
RenameConfiguration.error.invalidName=The name "{0}" is invalid.

View file

@ -7,6 +7,7 @@
*
* Contributors:
* Intel Corporation - Initial API and implementation
* IBM Corporation
*******************************************************************************/
package org.eclipse.cdt.ui.newui;
@ -120,6 +121,15 @@ public class RenameConfigurationDialog extends Dialog {
gd.horizontalSpan = 3;
group1.setLayoutData(gd);
// bug 187634: Add a label to warn user that configuration name will be used directly
// as a directory name in the filesystem.
Label warningLabel = new Label(group1, SWT.BEGINNING | SWT.WRAP);
warningLabel.setFont(parent.getFont());
warningLabel.setText(UIMessages.getString("RenameConfiguration.label.warning")); //$NON-NLS-1$
gd = new GridData(SWT.FILL, SWT.BEGINNING, true, false, 3, 1);
gd.widthHint = 300;
warningLabel.setLayoutData(gd);
// Add a label and a text widget for Configuration's name
final Label nameLabel = new Label(group1, SWT.LEFT);
nameLabel.setFont(parent.getFont());