Skip to main content

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


Patch applied to HEAD.
Chris, Do you want patch applied to branch as well ? If yes, please let me know.
Thanks you.

Hoda Amer
Staff Software Engineer
Rational Software - IBM Software Group



Chris Wiebe <cwiebe@xxxxxxx>
Sent by: cdt-patch-admin@xxxxxxxxxxx

07/05/2004 05:38 PM

Please respond to
cdt-patch

To
cdt-patch@xxxxxxxxxxx
cc
Subject
[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