blob: 4201e814725171a7faaee168083a9d0ab24ee6f2 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
|
/*******************************************************************************
* Copyright (C) 2012, Markus Duft <markus.duft@salomon.at>
*
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
*******************************************************************************/
package org.eclipse.egit.ui.internal.clean;
import org.eclipse.jface.wizard.Wizard;
import org.eclipse.jgit.lib.Repository;
/**
* Represents the contents of the Clean Wizard
*/
public class CleanWizard extends Wizard {
private CleanRepositoryPage cleanPage;
/**
* Creates a new Wizard and adds all required pages.
* @param repository the repository to clean
*/
public CleanWizard(Repository repository) {
setNeedsProgressMonitor(true);
cleanPage = new CleanRepositoryPage(repository);
addPage(cleanPage);
}
@Override
public boolean performFinish() {
cleanPage.finish();
return true;
}
}
|