Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthias Sohn2015-02-23 00:15:14 +0000
committerMatthias Sohn2015-02-23 08:02:08 +0000
commitd492c255ecfc720a1896ff0bb5c1e8d10a2009cc (patch)
tree9b0ee6d9a186c0628d6b0583f5ae39ca8c855f29
parent93b5674cd4dc8006d6a13ce5c21c2a053d5f3f61 (diff)
downloadegit-d492c255ecfc720a1896ff0bb5c1e8d10a2009cc.tar.gz
egit-d492c255ecfc720a1896ff0bb5c1e8d10a2009cc.tar.xz
egit-d492c255ecfc720a1896ff0bb5c1e8d10a2009cc.zip
Declare CloneDestinationPage public
This allows alternative Git wizard implementations to use CloneDestinationPage. Requested in [1]. [1] https://dev.eclipse.org/mhonarc/lists/egit-dev/msg03787.html Change-Id: I3073cc700b33580379f175d26e9a0eb34254ba07 Signed-off-by: Matthias Sohn <matthias.sohn@sap.com>
-rw-r--r--org.eclipse.egit.ui/src/org/eclipse/egit/ui/internal/clone/CloneDestinationPage.java12
1 files changed, 11 insertions, 1 deletions
diff --git a/org.eclipse.egit.ui/src/org/eclipse/egit/ui/internal/clone/CloneDestinationPage.java b/org.eclipse.egit.ui/src/org/eclipse/egit/ui/internal/clone/CloneDestinationPage.java
index c6ac219a23..6b8e2e5b37 100644
--- a/org.eclipse.egit.ui/src/org/eclipse/egit/ui/internal/clone/CloneDestinationPage.java
+++ b/org.eclipse.egit.ui/src/org/eclipse/egit/ui/internal/clone/CloneDestinationPage.java
@@ -57,7 +57,7 @@ import org.eclipse.ui.dialogs.WorkingSetGroup;
* Wizard page that allows the user entering the location of a repository to be
* cloned.
*/
-class CloneDestinationPage extends WizardPage {
+public class CloneDestinationPage extends WizardPage {
private final List<Ref> availableRefs = new ArrayList<Ref>();
@@ -120,6 +120,16 @@ class CloneDestinationPage extends WizardPage {
directoryText.setFocus();
}
+ /**
+ * @param repositorySelection
+ * selection of remote repository made by user
+ * @param availableRefs
+ * all available refs
+ * @param branches
+ * branches selected to be cloned
+ * @param head
+ * HEAD in source repository
+ */
public void setSelection(RepositorySelection repositorySelection, List<Ref> availableRefs, List<Ref> branches, Ref head){
this.availableRefs.clear();
this.availableRefs.addAll(availableRefs);

Back to the top