Search in sources :

Example 1 with CvsModule

use of com.intellij.openapi.cvsIntegration.CvsModule in project intellij-community by JetBrains.

the class ModuleChooser method getSelectedModules.

public CvsModule[] getSelectedModules() {
    CvsRepository repository = getSelectedRepository();
    CvsElement[] selectedCvsElement = mySelectCvsElementStep.getSelectedCvsElements();
    ArrayList<CvsModule> result = new ArrayList<>();
    for (CvsElement cvsElement : selectedCvsElement) {
        result.add(new CvsModule(repository, cvsElement.getElementPath(), cvsElement instanceof CvsFile));
    }
    return result.toArray(new CvsModule[result.size()]);
}
Also used : ArrayList(java.util.ArrayList) CvsElement(com.intellij.cvsSupport2.cvsBrowser.CvsElement) CvsRepository(com.intellij.openapi.cvsIntegration.CvsRepository) CvsModule(com.intellij.openapi.cvsIntegration.CvsModule) CvsFile(com.intellij.cvsSupport2.cvsBrowser.CvsFile)

Aggregations

CvsElement (com.intellij.cvsSupport2.cvsBrowser.CvsElement)1 CvsFile (com.intellij.cvsSupport2.cvsBrowser.CvsFile)1 CvsModule (com.intellij.openapi.cvsIntegration.CvsModule)1 CvsRepository (com.intellij.openapi.cvsIntegration.CvsRepository)1 ArrayList (java.util.ArrayList)1