Author: adietish
Date: 2011-10-12 18:11:45 -0400 (Wed, 12 Oct 2011)
New Revision: 35586
Modified:
trunk/as/plugins/org.jboss.tools.openshift.express.ui/src/org/jboss/tools/openshift/express/internal/ui/wizard/ImportProjectWizardModel.java
Log:
[JBIDE-9793] implementing user settable clone destination (folder) and branch to clone
Modified:
trunk/as/plugins/org.jboss.tools.openshift.express.ui/src/org/jboss/tools/openshift/express/internal/ui/wizard/ImportProjectWizardModel.java
===================================================================
---
trunk/as/plugins/org.jboss.tools.openshift.express.ui/src/org/jboss/tools/openshift/express/internal/ui/wizard/ImportProjectWizardModel.java 2011-10-12
22:11:13 UTC (rev 35585)
+++
trunk/as/plugins/org.jboss.tools.openshift.express.ui/src/org/jboss/tools/openshift/express/internal/ui/wizard/ImportProjectWizardModel.java 2011-10-12
22:11:45 UTC (rev 35586)
@@ -45,6 +45,8 @@
*/
public class ImportProjectWizardModel extends ObservableUIPojo {
+ private static final int CLONE_TIMEOUT = 10 * 1024;
+
private HashMap<String, Object> dataModel = new HashMap<String, Object>();
private static final String USER = "user";
@@ -155,8 +157,7 @@
RepositoryUtil repositoryUtil = Activator.getDefault().getRepositoryUtil();
CloneOperation cloneOperation =
-// new CloneOperation(gitUri, true, null, destination, Constants.HEAD,
"origin", 10 * 1024);
- new CloneOperation(gitUri, true, null, destination, Constants.HEAD,
"origin", 10 * 1024);
+ new CloneOperation(gitUri, true, null, destination, Constants.HEAD,
"origin", CLONE_TIMEOUT);
cloneOperation.run(monitor);
repositoryUtil.addConfiguredRepository(new File(destination, Constants.DOT_GIT));
}
Show replies by date