Refactor/rewrite CloneSourcePage to universal RepositorySelectionPage
[egit/zawir.git] / org.spearce.egit.ui / src / org / spearce / egit / ui / internal / components / RepositorySelectionListener.java
blob41ee7abd30ecacbfb1d0983dc1b6f3f39fd81910
1 /*******************************************************************************
2 * Copyright (C) 2008, Shawn O. Pearce <spearce@spearce.org>
3 * Copyright (C) 2008, Marek Zawirski <marek.zawirski@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 * See LICENSE for the full license text, also available.
8 *******************************************************************************/
9 package org.spearce.egit.ui.internal.components;
11 import org.spearce.jgit.transport.RemoteConfig;
12 import org.spearce.jgit.transport.URIish;
14 /**
15 * Interface for listeners of repository selection events from repository
16 * selection dialogs.
18 public interface RepositorySelectionListener {
19 /**
20 * Notify the receiver that the repository selection has changed. Each time
21 * at least one argument of this call is null, which indicates that it has
22 * illegal value or this form of repository selection is not selected.
24 * @param newURI
25 * the new specified URI. null if the new URI is invalid or user
26 * chosen to specify repository as remote config instead of URI.
27 * @param newConfig
28 * the new remote config. null if user chosen to specify
29 * repository as URI.
31 public void selectionChanged(URIish newURI, RemoteConfig newConfig);