Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1077)

Unified Diff: editor/tools/plugins/com.google.dart.tools.ui/src/com/google/dart/tools/ui/actions/OpenExternalFolderDialogAction.java

Issue 9608015: Fix for a URI issue when opening existing folders. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: editor/tools/plugins/com.google.dart.tools.ui/src/com/google/dart/tools/ui/actions/OpenExternalFolderDialogAction.java
===================================================================
--- editor/tools/plugins/com.google.dart.tools.ui/src/com/google/dart/tools/ui/actions/OpenExternalFolderDialogAction.java (revision 5115)
+++ editor/tools/plugins/com.google.dart.tools.ui/src/com/google/dart/tools/ui/actions/OpenExternalFolderDialogAction.java (working copy)
@@ -30,6 +30,7 @@
import org.eclipse.ui.IWorkbenchWindow;
import org.eclipse.ui.actions.ActionFactory.IWorkbenchAction;
+import java.io.File;
import java.net.URI;
/**
@@ -67,9 +68,12 @@
if (projectHandle.exists()) {
ProjectUtils.selectAndReveal(projectHandle);
} else if (!isNestedByAnExistingProject(path) && !nestsAnExistingProject(path)) {
- URI location = URI.create(directory);
- ProjectUtils.createNewProject(name, projectHandle, ProjectType.NONE, location, window,
- getShell());
+ URI location = new File(directory).toURI();
pquitslund 2012/03/07 21:15:24 Agh. That pesky URI.create(..). Probably my bad.
+
+ IProject project = ProjectUtils.createNewProject(name, projectHandle, ProjectType.NONE,
+ location, window, getShell());
+
+ ProjectUtils.selectAndReveal(project);
}
}
@@ -104,4 +108,5 @@
}
return false;
}
+
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698