diff --git a/core/org.eclipse.cdt.ui/src/org/eclipse/cdt/ui/newui/CLocationTab.java b/core/org.eclipse.cdt.ui/src/org/eclipse/cdt/ui/newui/CLocationTab.java index 54324e6c3d6..dcbf0bb1ffe 100644 --- a/core/org.eclipse.cdt.ui/src/org/eclipse/cdt/ui/newui/CLocationTab.java +++ b/core/org.eclipse.cdt.ui/src/org/eclipse/cdt/ui/newui/CLocationTab.java @@ -168,15 +168,15 @@ public abstract class CLocationTab extends AbstractCPropertyTab { } public void buttonPressed(int x) { - String s; Shell shell = usercomp.getShell(); TreeItem[] sel = tree.getTree().getSelection(); switch (x) { // add case 0: - s = getProjectDialog(shell, EMPTY_STR); - if (s != null) { - src.add(new _Entry(newEntry(new Path(s), new IPath[0], true))); + String[] ss = getProjectDialog(shell, EMPTY_STR); + if (ss != null) { + for (int i=0; i