mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-04-29 19:45:01 +02:00
Bug #199835: No prevention of creating a manged project with a '#' symbol
This commit is contained in:
parent
2e740cb814
commit
f2077c50f8
2 changed files with 7 additions and 0 deletions
|
@ -571,3 +571,4 @@ StringVariableSelectionDialog_columnDescription=&Variable Description:
|
|||
NewCfgDialog.0=
|
||||
NewCfgDialog.1=
|
||||
NewCfgDialog.2=Cannot create new configuration
|
||||
CDTMainWizardPage.0=Project name cannot contain '\#' symbol
|
||||
|
|
|
@ -337,6 +337,12 @@ import org.eclipse.cdt.internal.ui.CPluginImages;
|
|||
return false;
|
||||
}
|
||||
|
||||
if (projectFieldContents.indexOf('#') >= 0) {
|
||||
setErrorMessage(UIMessages.getString("CDTMainWizardPage.0")); //$NON-NLS-1$
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
boolean bad = true; // should we treat existing project as error
|
||||
|
||||
IProject handle = getProjectHandle();
|
||||
|
|
Loading…
Add table
Reference in a new issue