use of org.talend.repository.items.importexport.ui.managers.ProviderManager in project tdi-studio-se by Talend.
the class RoutineImportHandler method afterImportingItems.
/*
* (non-Javadoc)
*
* @see org.talend.repository.items.importexport.handlers.imports.ImportRepTypeHandler#afterImportingItemRecords(org
* .eclipse.core.runtime.IProgressMonitor,
* org.talend.repository.items.importexport.ui.wizard.imports.managers.ResourcesManager,
* org.talend.repository.items.importexport.ui.wizard.imports.models.ItemRecord)
*/
@Override
public void afterImportingItems(IProgressMonitor monitor, ResourcesManager resManager, ImportItem selectedItemRecord) {
// deploy routines Jar
final Item item = selectedItemRecord.getItem();
if (validEClass(item) && item instanceof RoutineItem) {
RoutineItem rItem = (RoutineItem) item;
Set<String> extRoutines = new HashSet<String>();
for (IMPORTType type : (List<IMPORTType>) rItem.getImports()) {
extRoutines.add(type.getMODULE());
}
if (resManager instanceof ProviderManager || resManager instanceof ZipFileManager) {
deployJarToDestForArchive(resManager, extRoutines);
} else {
deployJarToDest(resManager, extRoutines);
}
}
super.afterImportingItems(monitor, resManager, selectedItemRecord);
}
Aggregations