From 1d7a1efcd32bd61d55c08386b433707af239282c Mon Sep 17 00:00:00 2001 From: Hoda Amer Date: Fri, 25 Jun 2004 19:12:12 +0000 Subject: [PATCH] Patch for Chris W. --- core/org.eclipse.cdt.ui/ChangeLog | 3 +++ .../src/org/eclipse/cdt/ui/wizards/NewClassWizardPage.java | 5 +---- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/core/org.eclipse.cdt.ui/ChangeLog b/core/org.eclipse.cdt.ui/ChangeLog index ad7ea84280e..72f053898b2 100644 --- a/core/org.eclipse.cdt.ui/ChangeLog +++ b/core/org.eclipse.cdt.ui/ChangeLog @@ -1,3 +1,6 @@ +2004-06-25 Chris Wiebe + Fix for PR# 49849: [New Class Wizard] Able to add a new C++ Class with the same name (at same location) from New C++ Class Wizard + 2004-06-24 Bogdan Gheorghe Fix for 66695: [Indexer] Manually add an include path to a file/folder is ignored Changed CompletionEngine getScannerInfo to get the info from a resource instead of 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 33a2d2de9ad..21a82ab9591 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 @@ -1099,11 +1099,8 @@ public class NewClassWizardPage extends WizardPage implements Listener { ITypeInfo[] elementsFound = findClassElementsInProject(); QualifiedTypeName typeName = new QualifiedTypeName(getNewClassName()); if (foundInList(elementsFound, typeName)) { - status.setWarning(NewWizardMessages.getString("NewClassWizardPage.error.ClassNameExists")); //$NON-NLS-1$ + status.setError(NewWizardMessages.getString("NewClassWizardPage.error.ClassNameExists")); //$NON-NLS-1$ } -// if(foundInList(getNewClassName(), getContainerPath(linkedResourceGroupForHeader), elementsFound)){ -// status.setWarning(NewWizardMessages.getString("NewClassWizardPage.error.ClassNameExists")); //$NON-NLS-1$ -// } return status; } /**