use of com.intellij.openapi.vcs.CheckoutProviderEx in project intellij-community by JetBrains.
the class JBProtocolCheckoutCommand method perform.
@Override
public void perform(String vcsId, Map<String, String> parameters) {
String repository = parameters.get(REPOSITORY_NAME_KEY);
if (StringUtil.isEmpty(repository)) {
return;
}
for (CheckoutProvider provider : CheckoutProvider.EXTENSION_POINT_NAME.getExtensions()) {
if (provider instanceof CheckoutProviderEx) {
CheckoutProviderEx providerEx = (CheckoutProviderEx) provider;
if (providerEx.getVcsId().equals(vcsId)) {
Project project = ProjectManager.getInstance().getDefaultProject();
CheckoutProvider.Listener listener = ProjectLevelVcsManager.getInstance(project).getCompositeCheckoutListener();
AppIcon.getInstance().requestAttention(null, true);
providerEx.doCheckout(project, listener, repository);
break;
}
}
}
}
Aggregations