use of org.eclipse.team.core.subscribers.SubscriberScopeManager in project egit by eclipse.
the class GitScopeUtil method createScopeManager.
/**
* Creates a new {@link SubscriberScopeManager} for the given set of
* {@link IResource}s
*
* @param resources
* @param monitor
* @return {@link SubscriberScopeManager}
*/
private static SubscriberScopeManager createScopeManager(final IResource[] resources, IProgressMonitor monitor) {
ResourceMapping[] mappings = GitScopeUtil.getResourceMappings(resources);
GitSynchronizeDataSet set = new GitSynchronizeDataSet();
final GitResourceVariantTreeSubscriber subscriber = new GitResourceVariantTreeSubscriber(set);
monitor.setTaskName(UIText.GitModelSynchronize_fetchGitDataJobName);
subscriber.init(monitor);
SubscriberScopeManager manager = new SubscriberScopeManager(UIText.GitScopeOperation_GitScopeManager, mappings, subscriber, true);
return manager;
}
Aggregations