Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[cdt-patch] class wizard fix

This patch fixes a problem when using the class wizard, where the system include separator '<' was used for project-relative include path instead of '"'.

-Chris

Index: src/org/eclipse/cdt/ui/wizards/NewClassWizardPage.java
===================================================================
RCS file: /home/tools/org.eclipse.cdt.ui/src/org/eclipse/cdt/ui/wizards/NewClassWizardPage.java,v
retrieving revision 1.25
diff -u -r1.25 NewClassWizardPage.java
--- src/org/eclipse/cdt/ui/wizards/NewClassWizardPage.java	25 Jun 2004 19:12:11 -0000	1.25
+++ src/org/eclipse/cdt/ui/wizards/NewClassWizardPage.java	5 Jul 2004 21:30:03 -0000
@@ -908,7 +908,8 @@
 				IPath projectPath = fSelectedProject.getFullPath();
 				IPath relativePath = location.getRelativeIncludePath(fSelectedProject);
 				if (!relativePath.equals(location.getLocation())) {
-					systemIncludePath = true;
+				    if (!projectPath.isPrefixOf(location.getPath()))
+			            systemIncludePath = true;
 				} else {
 					if (projectPath.isPrefixOf(location.getPath()) && projectPath.isPrefixOf(header.getPath()))
 						relativePath = location.getRelativePath(header.getPath());

Back to the top