public static IFileTransferProtocolToFactoryMapper getProtocolToFactoryMapper() {
return Activator.getDefault().getProtocolToFactoryMapper();
}
public static boolean removeRetrieveProvider() {
IFileTransferProtocolToFactoryMapper mapper = getProtocolToFactoryMapper();
String existingProviderId = mapper.getRetrieveFileTransferFactoryId("http");
if (existingProviderId == null) {
// Just warn
System.out.println("WARNING: No non-null retrieve provider found for protocol http...no remove will occur");
return true;
}
return mapper.removeRetrieveFileTransferFactory(existingProviderId);
}