From dd6ebbcaf5d8e2ee1dce0865a0540298b59055ea Mon Sep 17 00:00:00 2001 From: Oleg Krasilnikov Date: Tue, 17 Jul 2007 13:51:28 +0000 Subject: [PATCH] Bug #196805 : Can't add multiple source folders simultaneously --- .../eclipse/cdt/ui/newui/CLocationTab.java | 19 +++++++++++-------- 1 file changed, 11 insertions(+), 8 deletions(-) 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