cdt/cdt_5_0_x/org.eclipse.cdt.core/model/org/eclipse/cdt/internal/core/model/PathEntryUtil.java
--- a/cdt/cdt_5_0_x/org.eclipse.cdt.core/model/org/eclipse/cdt/internal/core/model/PathEntryUtil.java Tue Jun 09 15:42:55 2009 -0500
+++ b/cdt/cdt_5_0_x/org.eclipse.cdt.core/model/org/eclipse/cdt/internal/core/model/PathEntryUtil.java Thu Jun 11 10:40:41 2009 -0500
@@ -12,6 +12,7 @@
package org.eclipse.cdt.internal.core.model;
import java.io.File;
+import java.text.MessageFormat;
import java.util.*;
import org.eclipse.cdt.core.CCorePlugin;
@@ -336,8 +337,10 @@
for (IPathEntry entry : entries) {
if (entry != null) {
if (entrySet.contains(entry)) {
- StringBuffer errMesg = new StringBuffer(CCorePlugin.getResourceString("CoreModel.PathEntry.DuplicateEntry")); //$NON-NLS-1$
- return new CModelStatus(ICModelStatusConstants.INVALID_PATHENTRY, errMesg.toString());
+ return new CModelStatus(ICModelStatusConstants.INVALID_PATHENTRY,
+ MessageFormat.format("{0}{1}", //$NON-NLS-1$
+ CCorePlugin.getResourceString("CoreModel.PathEntry.DuplicateEntry"), //$NON-NLS-1$
+ entry.getPath().toString()));
}
else {
entrySet.add(entry);