mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-09-08 02:53:12 +02:00
[282320] new class wizard doesn't work with EFS
This commit is contained in:
parent
020347ad23
commit
37d3d2757e
1 changed files with 6 additions and 6 deletions
|
@ -509,8 +509,8 @@ public class NewClassCodeGenerator {
|
|||
|
||||
ICProject cProject = headerTU.getCProject();
|
||||
IProject project = cProject.getProject();
|
||||
IPath projectLocation = project.getLocation();
|
||||
IPath headerLocation = headerTU.getResource().getLocation();
|
||||
IPath projectLocation = new Path(project.getLocationURI().getPath());
|
||||
IPath headerLocation = new Path(headerTU.getResource().getLocationURI().getPath());
|
||||
|
||||
List<IPath> includePaths = getIncludePaths(headerTU);
|
||||
List<IPath> baseClassPaths = getBaseClassPaths(verifyBaseClasses());
|
||||
|
@ -617,7 +617,7 @@ public class NewClassCodeGenerator {
|
|||
ICProject includeProject = toCProject(PathUtil.getEnclosingProject(folderToAdd));
|
||||
if (includeProject != null) {
|
||||
// make sure that the include is made the same way that build properties for projects makes them, so .contains below is a valid check
|
||||
IIncludeEntry entry = CoreModel.newIncludeEntry(addToResourcePath, null, includeProject.getProject().getLocation(), true);
|
||||
IIncludeEntry entry = CoreModel.newIncludeEntry(addToResourcePath, null, new Path(includeProject.getProject().getLocationURI().getPath()), true);
|
||||
|
||||
if (!checkEntryList.contains(entry)) // if the path already exists in the #includes then don't add it
|
||||
pathEntryList.add(entry);
|
||||
|
@ -816,9 +816,9 @@ public class NewClassCodeGenerator {
|
|||
|
||||
private String getHeaderIncludeString(ITranslationUnit sourceTU, ITranslationUnit headerTU, StringBuffer text, IProgressMonitor monitor) {
|
||||
IProject project = headerTU.getCProject().getProject();
|
||||
IPath projectLocation = project.getLocation();
|
||||
IPath headerLocation = headerTU.getResource().getLocation();
|
||||
IPath sourceLocation = sourceTU.getResource().getLocation();
|
||||
IPath projectLocation = new Path(project.getLocationURI().getPath());
|
||||
IPath headerLocation = new Path(headerTU.getResource().getLocationURI().getPath());
|
||||
IPath sourceLocation = new Path(sourceTU.getResource().getLocationURI().getPath());
|
||||
|
||||
IPath includePath = PathUtil.makeRelativePathToProjectIncludes(headerLocation, project);
|
||||
boolean isSystemIncludePath = false;
|
||||
|
|
Loading…
Add table
Reference in a new issue