Skip to main content
aboutsummaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
authorMike Kucera2009-07-07 21:17:06 +0000
committerMike Kucera2009-07-07 21:17:06 +0000
commit37d3d2757e99c274599349b5767590ea1a863f13 (patch)
treedf59f130b5bdb8d7b2dad621c5e9e25938af7c92 /core
parent020347ad23d2246d8363f2c3425e82b1e34beb2a (diff)
downloadorg.eclipse.cdt-37d3d2757e99c274599349b5767590ea1a863f13.tar.gz
org.eclipse.cdt-37d3d2757e99c274599349b5767590ea1a863f13.tar.xz
org.eclipse.cdt-37d3d2757e99c274599349b5767590ea1a863f13.zip
[282320] new class wizard doesn't work with EFS
Diffstat (limited to 'core')
-rw-r--r--core/org.eclipse.cdt.ui/src/org/eclipse/cdt/internal/ui/wizards/classwizard/NewClassCodeGenerator.java12
1 files changed, 6 insertions, 6 deletions
diff --git a/core/org.eclipse.cdt.ui/src/org/eclipse/cdt/internal/ui/wizards/classwizard/NewClassCodeGenerator.java b/core/org.eclipse.cdt.ui/src/org/eclipse/cdt/internal/ui/wizards/classwizard/NewClassCodeGenerator.java
index 3a1304489f0..f64de1012c7 100644
--- a/core/org.eclipse.cdt.ui/src/org/eclipse/cdt/internal/ui/wizards/classwizard/NewClassCodeGenerator.java
+++ b/core/org.eclipse.cdt.ui/src/org/eclipse/cdt/internal/ui/wizards/classwizard/NewClassCodeGenerator.java
@@ -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;

Back to the top