Search in sources :

Example 1 with BaseCheckinHandlerFactory

use of com.intellij.openapi.vcs.checkin.BaseCheckinHandlerFactory in project intellij-community by JetBrains.

the class CheckinHandlersManagerImpl method getRegisteredCheckinHandlerFactories.

@Override
public List<BaseCheckinHandlerFactory> getRegisteredCheckinHandlerFactories(AbstractVcs<?>[] allActiveVcss) {
    final List<BaseCheckinHandlerFactory> list = new ArrayList<>(myRegisteredBeforeCheckinHandlers.size() + allActiveVcss.length);
    for (AbstractVcs vcs : allActiveVcss) {
        final Collection<VcsCheckinHandlerFactory> factories = myVcsMap.get(vcs.getKeyInstanceMethod());
        if (!factories.isEmpty()) {
            list.addAll(factories);
        }
    }
    list.addAll(myRegisteredBeforeCheckinHandlers);
    return list;
}
Also used : VcsCheckinHandlerFactory(com.intellij.openapi.vcs.checkin.VcsCheckinHandlerFactory) ArrayList(java.util.ArrayList) BaseCheckinHandlerFactory(com.intellij.openapi.vcs.checkin.BaseCheckinHandlerFactory) AbstractVcs(com.intellij.openapi.vcs.AbstractVcs)

Aggregations

AbstractVcs (com.intellij.openapi.vcs.AbstractVcs)1 BaseCheckinHandlerFactory (com.intellij.openapi.vcs.checkin.BaseCheckinHandlerFactory)1 VcsCheckinHandlerFactory (com.intellij.openapi.vcs.checkin.VcsCheckinHandlerFactory)1 ArrayList (java.util.ArrayList)1