1
0
Fork 0
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:
Oleg Krasilnikov 2007-08-14 10:23:55 +00:00
parent 2e740cb814
commit f2077c50f8
2 changed files with 7 additions and 0 deletions

View file

@ -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

View file

@ -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();