Community
Participate
Working Groups
Build Identifier: 20100617-1415 After making a "Hello World ANSI C Project" the Inside the file Test Project > src > Test Project.c, the comment will say "File: Test.c" instead of "File: Test Project.c" Reproducible: Always Steps to Reproduce: 1. File > New > C Project. 2. Enter a project name with spaces (i.e. "Test Project"). 3. Select "Hello World ANSI C Project." 4. Click Finish.
Created attachment 187908 [details] fix The file name is set by ${projectName}, while the default comment's file name value is set by ${baseName}. The comment should use the same parameter as the actual file. The patch applies this change to the other HelloWorld projects, in addition to the one pointed by the bug.
I don't think we should replace ${baseName} with ${projectName} in this case. Rather, handling of ${baseName} should be fixed to return proper base name of file with spaces.
${baseName} is set from MBSWizardHandler.getBaseName(). It takes the project name and ignores everything after the last "." until the following " ". so projectName = "test.content" becomes baseName = "content" and projectName = "test content" becomes baseName = "test". If we change baseName to return the exact project name, then why not use projectName directly?