use of com.intellij.openapi.vcs.CheckoutProvider in project intellij-community by JetBrains.
the class CheckoutActionGroup method computeChildren.
@NotNull
@Override
protected AnAction[] computeChildren(@NotNull ActionManager manager) {
CheckoutProvider[] providers = CheckoutProvider.EXTENSION_POINT_NAME.getExtensions();
if (providers.length == 0) {
return EMPTY_ARRAY;
}
Arrays.sort(providers, new CheckoutProvider.CheckoutProviderComparator());
AnAction[] children = new AnAction[providers.length];
for (int i = 0; i < providers.length; i++) {
CheckoutProvider provider = providers[i];
children[i] = createAction(provider);
}
return children;
}
use of com.intellij.openapi.vcs.CheckoutProvider in project intellij-community by JetBrains.
the class GetFromVcsAction method fillActions.
protected void fillActions(DefaultActionGroup group) {
final CheckoutProvider[] providers = Extensions.getExtensions(CheckoutProvider.EXTENSION_POINT_NAME);
Arrays.sort(providers, new CheckoutProvider.CheckoutProviderComparator());
for (CheckoutProvider provider : providers) {
group.add(new CheckoutAction(provider));
}
}
use of com.intellij.openapi.vcs.CheckoutProvider 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