1 /*******************************************************************************
2 * Copyright (C) 2009, Robin Rosenberg <robin.rosenberg@dewire.com>
3 * Copyright (C) 2010, Ketan Padegaonkar <KetanPadegaonkar@gmail.com>
5 * All rights reserved. This program and the accompanying materials
6 * are made available under the terms of the Eclipse Public License v1.0
7 * which accompanies this distribution, and is available at
8 * http://www.eclipse.org/legal/epl-v10.html
9 *******************************************************************************/
10 package org
.eclipse
.egit
.ui
.wizards
.clone
;
12 import org
.eclipse
.swtbot
.eclipse
.finder
.SWTWorkbenchBot
;
14 public class GitImportRepoWizard
{
16 private static final SWTWorkbenchBot bot
= new SWTWorkbenchBot();
18 // TODO: speed it up by calling the wizard using direct eclipse API.
19 public RepoPropertiesPage
openWizard() {
20 bot
.menu("File").menu("Import...").click();
21 bot
.shell("Import").activate();
23 bot
.tree().expandNode("Git").select("Projects from Git");
25 bot
.button("Next >").click();
27 bot
.shell("Import Projects from Git").activate();
29 bot
.button("Clone...").click();
31 bot
.shell("Clone Git Repository").activate();
33 return new RepoPropertiesPage();