Search in sources :

Example 1 with ImportDetails

use of com.intellij.cvsSupport2.cvsoperations.cvsImport.ImportDetails in project intellij-community by JetBrains.

the class ImportWizard method createImportDetails.

@Nullable
public ImportDetails createImportDetails() {
    final CvsElement module = mySelectCvsElementStep.getSelectedCvsElement();
    final String moduleName = mySettingsStep.getModuleName();
    final String importModuleName = module.getElementPath().equals(".") ? moduleName : module.getElementPath() + "/" + moduleName;
    final File selectedFile = mySelectImportLocationStep.getSelectedFile();
    if (selectedFile == null) {
        return null;
    }
    return new ImportDetails(selectedFile, mySettingsStep.getVendor(), mySettingsStep.getReleaseTag(), mySettingsStep.getLogMessage(), importModuleName, mySelectCVSConfigurationStep.getSelectedConfiguration(), mySettingsStep.getFileExtensions(), mySelectImportLocationStep.getIgnoreFileFilter());
}
Also used : ImportDetails(com.intellij.cvsSupport2.cvsoperations.cvsImport.ImportDetails) CvsElement(com.intellij.cvsSupport2.cvsBrowser.CvsElement) VirtualFile(com.intellij.openapi.vfs.VirtualFile) File(java.io.File) Nullable(org.jetbrains.annotations.Nullable)

Aggregations

CvsElement (com.intellij.cvsSupport2.cvsBrowser.CvsElement)1 ImportDetails (com.intellij.cvsSupport2.cvsoperations.cvsImport.ImportDetails)1 VirtualFile (com.intellij.openapi.vfs.VirtualFile)1 File (java.io.File)1 Nullable (org.jetbrains.annotations.Nullable)1