Package org.eclipse.egit.core.synchronize

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


  protected MergeContext restoreContext(ISynchronizationScopeManager manager)
      throws CoreException {
    GitResourceVariantTreeSubscriber subscriber = new GitResourceVariantTreeSubscriber(
        gsds);
    subscriber.init(new NullProgressMonitor());
    return new GitSubscriberMergeContext(subscriber, manager, gsds);
  }
View Full Code Here


        RemoteResourceMappingContext remoteContext = new GitSubscriberResourceMappingContext(subscriber,
            gsdSet);
        SubscriberScopeManager manager = new SubscriberScopeManager(
            subscriber.getName(), mappings, subscriber,
            remoteContext, true);
        GitSubscriberMergeContext context = new GitSubscriberMergeContext(
            subscriber, manager, gsdSet);
        final GitModelSynchronizeParticipant participant = new GitModelSynchronizeParticipant(
            context);

        TeamUI.getSynchronizeManager().addSynchronizeParticipants(
View Full Code Here

  }

  @Override
  protected Object getModelRoot() {
    if (modelRoot == null) {
      GitSubscriberMergeContext context = (GitSubscriberMergeContext) getContext();
      modelRoot = new GitModelRoot(context.getSyncData());
    }

    return modelRoot;
  }
View Full Code Here

    if (object instanceof IAdaptable) {
      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);
        return traversals;
      } catch (CoreException e) {
View Full Code Here

TOP

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

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.