From 604bb67163a147f40ba511b12723c2cc03ebdf7b Mon Sep 17 00:00:00 2001 From: Hoda Amer Date: Tue, 6 Jul 2004 13:32:37 +0000 Subject: [PATCH] Patch for Chris W. --- core/org.eclipse.cdt.ui/ChangeLog | 5 +++++ .../src/org/eclipse/cdt/ui/wizards/NewClassWizardPage.java | 3 ++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/core/org.eclipse.cdt.ui/ChangeLog b/core/org.eclipse.cdt.ui/ChangeLog index 858bb60a75d..220b0cdb007 100644 --- a/core/org.eclipse.cdt.ui/ChangeLog +++ b/core/org.eclipse.cdt.ui/ChangeLog @@ -1,3 +1,8 @@ +2004-06-06 Chris Wiebe + This patch fixes a problem when using the class wizard, where the system + include separator '<' was used for project-relative include path instead + of '"'. + 2004-06-28 Alain Magloire Fix for PR 68820. diff --git a/core/org.eclipse.cdt.ui/src/org/eclipse/cdt/ui/wizards/NewClassWizardPage.java b/core/org.eclipse.cdt.ui/src/org/eclipse/cdt/ui/wizards/NewClassWizardPage.java index 21a82ab9591..22170855cd7 100644 --- a/core/org.eclipse.cdt.ui/src/org/eclipse/cdt/ui/wizards/NewClassWizardPage.java +++ b/core/org.eclipse.cdt.ui/src/org/eclipse/cdt/ui/wizards/NewClassWizardPage.java @@ -908,7 +908,8 @@ public class NewClassWizardPage extends WizardPage implements Listener { 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());