mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-08-10 17:55:39 +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:
parent
50c7c5c542
commit
196349f9fa
5 changed files with 34 additions and 1 deletions
|
@ -7,6 +7,7 @@
|
||||||
#
|
#
|
||||||
# Contributors:
|
# Contributors:
|
||||||
# Texas Instruments Inc. - initial API and implementation
|
# Texas Instruments Inc. - initial API and implementation
|
||||||
|
# IBM Corporation
|
||||||
###############################################################################
|
###############################################################################
|
||||||
|
|
||||||
# plugin names
|
# plugin names
|
||||||
|
@ -38,8 +39,10 @@ TargetName.linux.lib=Linux Static Library
|
||||||
TargetName.solaris=Solaris
|
TargetName.solaris=Solaris
|
||||||
|
|
||||||
# Default Configuration Names
|
# Default Configuration Names
|
||||||
|
# START NON-TRANSLATABLE
|
||||||
ConfigName.Rel=Release
|
ConfigName.Rel=Release
|
||||||
ConfigName.Dbg=Debug
|
ConfigName.Dbg=Debug
|
||||||
|
# END NON-TRANSLATABLE
|
||||||
|
|
||||||
# Generic tool-chain names
|
# Generic tool-chain names
|
||||||
ToolChainName.Rel=GCC Tool Chain
|
ToolChainName.Rel=GCC Tool Chain
|
||||||
|
|
|
@ -7,6 +7,7 @@
|
||||||
*
|
*
|
||||||
* Contributors:
|
* Contributors:
|
||||||
* Intel Corporation - Initial API and implementation
|
* Intel Corporation - Initial API and implementation
|
||||||
|
* IBM Corporation
|
||||||
*******************************************************************************/
|
*******************************************************************************/
|
||||||
package org.eclipse.cdt.managedbuilder.ui.properties;
|
package org.eclipse.cdt.managedbuilder.ui.properties;
|
||||||
|
|
||||||
|
@ -139,6 +140,15 @@ public class NewCfgDialog implements INewCfgDialog {
|
||||||
gd.horizontalSpan = 3;
|
gd.horizontalSpan = 3;
|
||||||
group1.setLayoutData(gd);
|
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
|
// Add a label and a text widget for Configuration's name
|
||||||
final Label nameLabel = new Label(group1, SWT.LEFT);
|
final Label nameLabel = new Label(group1, SWT.LEFT);
|
||||||
nameLabel.setFont(parent.getFont());
|
nameLabel.setFont(parent.getFont());
|
||||||
|
|
|
@ -139,7 +139,6 @@ public class NewConfigurationDialog extends Dialog implements INewCfgDialog {
|
||||||
}
|
}
|
||||||
|
|
||||||
protected Control createDialogArea(Composite parent) {
|
protected Control createDialogArea(Composite parent) {
|
||||||
|
|
||||||
Composite composite = new Composite(parent, SWT.NULL);
|
Composite composite = new Composite(parent, SWT.NULL);
|
||||||
composite.setFont(parent.getFont());
|
composite.setFont(parent.getFont());
|
||||||
composite.setLayout(new GridLayout(3, false));
|
composite.setLayout(new GridLayout(3, false));
|
||||||
|
@ -155,6 +154,15 @@ public class NewConfigurationDialog extends Dialog implements INewCfgDialog {
|
||||||
gd.horizontalSpan = 3;
|
gd.horizontalSpan = 3;
|
||||||
group1.setLayoutData(gd);
|
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
|
// Add a label and a text widget for Configuration's name
|
||||||
final Label nameLabel = new Label(group1, SWT.LEFT);
|
final Label nameLabel = new Label(group1, SWT.LEFT);
|
||||||
nameLabel.setFont(parent.getFont());
|
nameLabel.setFont(parent.getFont());
|
||||||
|
|
|
@ -246,6 +246,7 @@ NewConfiguration.label.group=Copy settings from
|
||||||
NewConfiguration.label.copy=Default configuration:
|
NewConfiguration.label.copy=Default configuration:
|
||||||
NewConfiguration.label.clone=Existing configuration:
|
NewConfiguration.label.clone=Existing configuration:
|
||||||
NewConfiguration.label.showall=Show unsupported configurations
|
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.duplicateName=A configuration named "{0}" already exists.
|
||||||
NewConfiguration.error.caseName=A configuration name that differs only in case to "{0}" exists.
|
NewConfiguration.error.caseName=A configuration name that differs only in case to "{0}" exists.
|
||||||
NewConfiguration.error.invalidName=The name "{0}" is invalid.
|
NewConfiguration.error.invalidName=The name "{0}" is invalid.
|
||||||
|
@ -253,6 +254,7 @@ NewConfiguration.error.invalidName=The name "{0}" is invalid.
|
||||||
# ----------- Rename Configuration -----------
|
# ----------- Rename Configuration -----------
|
||||||
RenameConfiguration.label.name=Name:
|
RenameConfiguration.label.name=Name:
|
||||||
RenameConfiguration.label.description=Description:
|
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.duplicateName=A configuration named "{0}" already exists.
|
||||||
RenameConfiguration.error.caseName=A configuration name that differs only in case to "{0}" exists.
|
RenameConfiguration.error.caseName=A configuration name that differs only in case to "{0}" exists.
|
||||||
RenameConfiguration.error.invalidName=The name "{0}" is invalid.
|
RenameConfiguration.error.invalidName=The name "{0}" is invalid.
|
||||||
|
|
|
@ -7,6 +7,7 @@
|
||||||
*
|
*
|
||||||
* Contributors:
|
* Contributors:
|
||||||
* Intel Corporation - Initial API and implementation
|
* Intel Corporation - Initial API and implementation
|
||||||
|
* IBM Corporation
|
||||||
*******************************************************************************/
|
*******************************************************************************/
|
||||||
package org.eclipse.cdt.ui.newui;
|
package org.eclipse.cdt.ui.newui;
|
||||||
|
|
||||||
|
@ -120,6 +121,15 @@ public class RenameConfigurationDialog extends Dialog {
|
||||||
gd.horizontalSpan = 3;
|
gd.horizontalSpan = 3;
|
||||||
group1.setLayoutData(gd);
|
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
|
// Add a label and a text widget for Configuration's name
|
||||||
final Label nameLabel = new Label(group1, SWT.LEFT);
|
final Label nameLabel = new Label(group1, SWT.LEFT);
|
||||||
nameLabel.setFont(parent.getFont());
|
nameLabel.setFont(parent.getFont());
|
||||||
|
|
Loading…
Add table
Reference in a new issue