*fix
diff --git a/core/plugins/org.eclipse.dltk.ui/src/org/eclipse/dltk/ui/environment/EnvironmentPathBlock.java b/core/plugins/org.eclipse.dltk.ui/src/org/eclipse/dltk/ui/environment/EnvironmentPathBlock.java
index 0c7f1d1..c6cdbee 100644
--- a/core/plugins/org.eclipse.dltk.ui/src/org/eclipse/dltk/ui/environment/EnvironmentPathBlock.java
+++ b/core/plugins/org.eclipse.dltk.ui/src/org/eclipse/dltk/ui/environment/EnvironmentPathBlock.java
@@ -48,9 +48,15 @@
 	 */
 	private Map paths = new HashMap();
 
+	private boolean useFolders = false;
+
 	public EnvironmentPathBlock() {
 	}
 
+	public EnvironmentPathBlock(boolean useFolders) {
+		this.useFolders = useFolders;
+	}
+
 	private class PathLabelProvider extends LabelProvider implements
 			ITableLabelProvider {
 
@@ -223,8 +229,13 @@
 			IEnvironment environment = (IEnvironment) sel.getFirstElement();
 			IEnvironmentUI ui = (IEnvironmentUI) environment
 					.getAdapter(IEnvironmentUI.class);
-			String file = ui.selectFile(this.pathTable.getShell(),
-					IEnvironmentUI.DEFAULT);
+			String file = null;
+			if (!useFolders) {
+				file = ui.selectFile(this.pathTable.getShell(),
+						IEnvironmentUI.DEFAULT);
+			} else {
+				file = ui.selectFolder(this.pathTable.getShell());
+			}
 			if (file != null) {
 				this.paths.put(environment, file);
 				this.pathViewer.refresh();