public class ImportProjectFromGitGui extends AbstractRepositorySelectionGui implements ImportProjectFromVcsGui
Modifier and Type | Field and Description |
---|---|
static String |
LABEL_LOCAL |
cards, LABEL_HTTPS, LABEL_SSH, selected, vcsIntegration
Constructor and Description |
---|
ImportProjectFromGitGui(VcsIntegration vcsIntegration) |
Modifier and Type | Method and Description |
---|---|
VcsRepositoryInfo |
downloadProjectFiles(File emptyDirectory)
Download all files from the selected repository into the path provided
|
Component |
getComponent()
A gui component with all the fields needed to perform the
ImportProjectFromVcsGui.downloadProjectFiles(File) operation,
such as repository URL, username and password etc. |
protected List<RepositorySelection> |
getRepositorySelections() |
boolean |
isLocal() |
boolean |
isValidInput()
Validates all fields required to download the project files from the remote repository
|
protected void |
selectCard(String label) |
createGui, createRadioButton, getSelected, showCard
public static final String LABEL_LOCAL
public ImportProjectFromGitGui(VcsIntegration vcsIntegration)
public Component getComponent()
ImportProjectFromVcsGui
ImportProjectFromVcsGui.downloadProjectFiles(File)
operation,
such as repository URL, username and password etc.getComponent
in interface ImportProjectFromVcsGui
public VcsRepositoryInfo downloadProjectFiles(File emptyDirectory)
ImportProjectFromVcsGui
downloadProjectFiles
in interface ImportProjectFromVcsGui
emptyDirectory
- an empty directory to which to download filespublic boolean isValidInput()
ImportProjectFromVcsGui
isValidInput
in interface ImportProjectFromVcsGui
public boolean isLocal()
isLocal
in interface ImportProjectFromVcsGui
protected List<RepositorySelection> getRepositorySelections()
getRepositorySelections
in class AbstractRepositorySelectionGui
protected void selectCard(String label)
selectCard
in class AbstractRepositorySelectionGui
Copyright © 2019. All rights reserved.