Package org.eclipse.egit.core.synchronize

Examples of org.eclipse.egit.core.synchronize.GitSubscriberResourceMappingContext


  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);
  }
View Full Code Here


    };

    syncJob.addJobChangeListener(new JobChangeAdapter() {
      @Override
      public void done(IJobChangeEvent event) {
        RemoteResourceMappingContext remoteContext = new GitSubscriberResourceMappingContext(subscriber,
            gsdSet);
        SubscriberScopeManager manager = new SubscriberScopeManager(
            subscriber.getName(), mappings, subscriber,
            remoteContext, true);
        GitSubscriberMergeContext context = new GitSubscriberMergeContext(
View Full Code Here

  @Override
  public ResourceMapping[] getMappings(IResource resource,
      ResourceMappingContext context, IProgressMonitor monitor)
      throws CoreException {
    if (context instanceof GitSubscriberResourceMappingContext) {
      GitSubscriberResourceMappingContext gitContext = (GitSubscriberResourceMappingContext) context;
      GitSynchronizeDataSet gsds = gitContext.getSyncData();
      GitSynchronizeData data = gsds.getData(resource.getProject());

      if (data != null) {
        GitModelObject object = null;
        try {
View Full Code Here

      if (traversalCache.containsKey(object))
        return traversalCache.get(object);

      ResourceMapping rm = getResourceMapping(object);
      GitSubscriberMergeContext ctx = (GitSubscriberMergeContext) getContext();
      ResourceMappingContext rmCtx = new GitSubscriberResourceMappingContext(
          (GitResourceVariantTreeSubscriber) ctx.getSubscriber(),
          ctx.getSyncData());
      try {
        ResourceTraversal[] traversals = rm.getTraversals(rmCtx, new NullProgressMonitor());
        traversalCache.put(object, traversals);
View Full Code Here

TOP

Related Classes of org.eclipse.egit.core.synchronize.GitSubscriberResourceMappingContext

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.