Search in sources :

Example 1 with ISynchronizationScopeManager

use of org.eclipse.team.core.mapping.ISynchronizationScopeManager in project egit by eclipse.

the class GitModelSynchronizeParticipant method createScopeManager.

@Override
protected ISynchronizationScopeManager createScopeManager(ResourceMapping[] mappings) {
    GitResourceVariantTreeSubscriber subscriber = new GitResourceVariantTreeSubscriber(gsds);
    subscriber.init(new NullProgressMonitor());
    GitSubscriberResourceMappingContext context = new GitSubscriberResourceMappingContext(subscriber, gsds);
    return new SynchronizationScopeManager(UIText.GitModelSynchronizeParticipant_initialScopeName, mappings, context, true);
}
Also used : NullProgressMonitor(org.eclipse.core.runtime.NullProgressMonitor) ISynchronizationScopeManager(org.eclipse.team.core.mapping.ISynchronizationScopeManager) SynchronizationScopeManager(org.eclipse.team.core.mapping.provider.SynchronizationScopeManager) GitSubscriberResourceMappingContext(org.eclipse.egit.core.synchronize.GitSubscriberResourceMappingContext) GitResourceVariantTreeSubscriber(org.eclipse.egit.core.synchronize.GitResourceVariantTreeSubscriber)

Aggregations

NullProgressMonitor (org.eclipse.core.runtime.NullProgressMonitor)1 GitResourceVariantTreeSubscriber (org.eclipse.egit.core.synchronize.GitResourceVariantTreeSubscriber)1 GitSubscriberResourceMappingContext (org.eclipse.egit.core.synchronize.GitSubscriberResourceMappingContext)1 ISynchronizationScopeManager (org.eclipse.team.core.mapping.ISynchronizationScopeManager)1 SynchronizationScopeManager (org.eclipse.team.core.mapping.provider.SynchronizationScopeManager)1