org.eclipse.team.core_3.6.0.I20110525-0800

torFor	(Lorg/eclipse/core/runtime/IProgressMonitor;I)Lorg/eclipse/core/runtime/IProgressMonitor;
    //   58: invokevirtual 108	org/eclipse/team/core/synchronize/SyncInfoSet:endInput	(Lorg/eclipse/core/runtime/IProgressMonitor;)V
    //   61: aload_2
    //   62: invokeinterface 125 1 0
    //   67: aload 4
    //   69: athrow
    //   70: aload_3
    //   71: aload_2
    //   72: iconst_5
    //   73: invokestatic 110	org/eclipse/team/internal/core/Policy:subMonitorFor	(Lorg/eclipse/core/runtime/IProgressMonitor;I)Lorg/eclipse/core/runtime/IProgressMonitor;
    //   76: invokevirtual 108	org/eclipse/team/core/synchronize/SyncInfoSet:endInput	(Lorg/eclipse/core/runtime/IProgressMonitor;)V
    //   79: aload_2
    //   80: invokeinterface 125 1 0
    //   85: return
    // Line number table:
    //   Java source line #85	-> byte code offset #0
    //   Java source line #86	-> byte code offset #7
    //   Java source line #88	-> byte code offset #15
    //   Java source line #90	-> byte code offset #20
    //   Java source line #91	-> byte code offset #24
    //   Java source line #92	-> byte code offset #33
    //   Java source line #93	-> byte code offset #37
    //   Java source line #94	-> byte code offset #50
    //   Java source line #95	-> byte code offset #52
    //   Java source line #96	-> byte code offset #61
    //   Java source line #97	-> byte code offset #67
    //   Java source line #95	-> byte code offset #70
    //   Java source line #96	-> byte code offset #79
    //   Java source line #99	-> byte code offset #85
    // Local variable table:
    //   start	length	slot	name	signature
    //   0	86	0	this	SyncSetInputFromSyncSet
    //   0	86	1	set	org.eclipse.team.core.synchronize.SyncInfoSet
    //   0	86	2	monitor	IProgressMonitor
    //   19	52	3	syncSet	org.eclipse.team.core.synchronize.SyncInfoSet
    //   50	18	4	localObject	Object
    // Exception table:
    //   from	to	target	type
    //   20	50	50	finally
  }
  
  /* Error */
  public void syncInfoSetErrors(org.eclipse.team.core.synchronize.SyncInfoSet set, org.eclipse.team.core.ITeamStatus[] errors, IProgressMonitor monitor)
  {
    // Byte code:
    //   0: aload_0
    //   1: invokevirtual 122	org/eclipse/team/internal/core/subscribers/SyncSetInputFromSyncSet:getSyncSet	()Lorg/eclipse/team/internal/core/subscribers/SubscriberSyncInfoSet;
    //   4: astore 4
    //   6: aload 4
    //   8: invokevirtual 111	org/eclipse/team/internal/core/subscribers/SubscriberSyncInfoSet:beginInput	()V
    //   11: iconst_0
    //   12: istore 5
    //   14: goto +19 -> 33
    //   17: aload_2
    //   18: iload 5
    //   20: aaload
    //   21: astore 6
    //   23: aload 4
    //   25: aload 6
    //   27: invokevirtual 113	org/eclipse/team/internal/core/subscribers/SubscriberSyncInfoSet:addError	(Lorg/eclipse/team/core/ITeamStatus;)V
    //   30: iinc 5 1
    //   33: iload 5
    //   35: aload_2
    //   36: arraylength
    //   37: if_icmplt -20 -> 17
    //   40: goto +14 -> 54
    //   43: astore 7
    //   45: aload 4
    //   47: aload_3
    //   48: invokevirtual 112	org/eclipse/team/internal/core/subscribers/SubscriberSyncInfoSet:endInput	(Lorg/eclipse/core/runtime/IProgressMonitor;)V
    //   51: aload 7
    //   53: athrow
    //   54: aload 4
    //   56: aload_3
    //   57: invokevirtual 112	org/eclipse/team/internal/core/subscribers/SubscriberSyncInfoSet:endInput	(Lorg/eclipse/core/runtime/IProgressMonitor;)V
    //   60: return
    // Line number table:
    //   Java source line #105	-> byte code offset #0
    //   Java source line #107	-> byte code offset #6
    //   Java source line #108	-> byte code offset #11
    //   Java source line #109	-> byte code offset #17
    //   Java source line #110	-> byte code offset #23
    //   Java source line #108	-> byte code offset #30
    //   Java source line #112	-> byte code offset #43
    //   Java source line #113	-> byte code offset #45
    //   Java source line #114	-> byte code offset #51
    //   Java source line #113	-> byte code offset #54
    //   Java source line #115	-> byte code offset #60
    // Local variable table:
    //   start	length	slot	name	signature
    //   0	61	0	this	SyncSetInputFromSyncSet
    //   0	61	1	set	org.eclipse.team.core.synchronize.SyncInfoSet
    //   0	61	2	errors	org.eclipse.team.core.ITeamStatus[]
    //   0	61	3	monitor	IProgressMonitor
    //   4	51	4	syncSet	SubscriberSyncInfoSet
    //   12	22	5	i	int
    //   21	5	6	status	org.eclipse.team.core.ITeamStatus
    //   43	9	7	localObject	Object
    // Exception table:
    //   from	to	target	type
    //   6	43	43	finally
  }
}

/* Location:
 * Qualified Name:     org.eclipse.team.internal.core.subscribers.SyncSetInputFromSyncSet
 * Java Class Version: 1.2 (46.0)
 * JD-Core Version:    0.7.1
 */
package org.eclipse.team.internal.core.subscribers;

import org.eclipse.core.resources.IResource;
import org.eclipse.team.core.TeamException;
import org.eclipse.team.core.variants.ResourceVariantByteStore;
import org.eclipse.team.core.variants.ThreeWaySubscriber;
import org.eclipse.team.core.variants.ThreeWaySynchronizer;

class ThreeWayBaseTree$BaseResourceVariantByteStore
  extends ResourceVariantByteStore
{
  private ThreeWaySubscriber subscriber;
  
  public ThreeWayBaseTree$BaseResourceVariantByteStore(ThreeWaySubscriber subscriber)
  {
    this.subscriber = subscriber;
  }
  
  public void dispose() {}
  
  public byte[] getBytes(IResource resource)
    throws TeamException
  {
    return subscriber.getSynchronizer().getBaseBytes(resource);
  }
  
  public boolean setBytes(IResource resource, byte[] bytes)
    throws TeamException
  {
    return false;
  }
  
  public boolean flushBytes(IResource resource, int depth)
    throws TeamException
  {
    return false;
  }
  
  public boolean deleteBytes(IResource resource)
    throws TeamException
  {
    return false;
  }
  
  public IResource[] members(IResource resource)
    throws TeamException
  {
    return subscriber.getSynchronizer().members(resource);
  }
}

/* Location:
 * Qualified Name:     org.eclipse.team.internal.core.subscribers.ThreeWayBaseTree.BaseResourceVariantByteStore
 * Java Class Version: 1.2 (46.0)
 * JD-Core Version:    0.7.1
 */
package org.eclipse.team.internal.core.subscribers;

import org.eclipse.core.resources.IResource;
import org.eclipse.core.runtime.IProgressMonitor;
import org.eclipse.team.core.TeamException;
import org.eclipse.team.core.variants.IResourceVariant;
import org.eclipse.team.core.variants.ResourceVariantByteStore;
import org.eclipse.team.core.variants.ResourceVariantTree;
import org.eclipse.team.core.variants.ThreeWaySubscriber;
import org.eclipse.team.core.variants.ThreeWaySynchronizer;

public final class ThreeWayBaseTree
  extends ResourceVariantTree
{
  private ThreeWaySubscriber subscriber;
  
  static class BaseResourceVariantByteStore
    extends ResourceVariantByteStore
  {
    private ThreeWaySubscriber subscriber;
    
    public BaseResourceVariantByteStore(ThreeWaySubscriber subscriber)
    {
      this.subscriber = subscriber;
    }
    
    public void dispose() {}
    
    public byte[] getBytes(IResource resource)
      throws TeamException
    {
      return subscriber.getSynchronizer().getBaseBytes(resource);
    }
    
    public boolean setBytes(IResource resource, byte[] bytes)
      throws TeamException
    {
      return false;
    }
    
    public boolean flushBytes(IResource resource, int depth)
      throws TeamException
    {
      return false;
    }
    
    public boolean deleteBytes(IResource resource)
      throws TeamException
    {
      return false;
    }
    
    public IResource[] members(IResource resource)
      throws TeamException
    {
      return subscriber.getSynchronizer().members(resource);
    }
  }
  
  public ThreeWayBaseTree(ThreeWaySubscriber subscriber)
  {
    super(new BaseResourceVariantByteStore(subscriber));
    this.subscriber = subscriber;
  }
  
  public IResource[] refresh(IResource[] resources, int depth, IProgressMonitor monitor)
    throws TeamException
  {
    return new IResource[0];
  }
  
  protected IResourceVariant[] fetchMembers(IResourceVariant variant, IProgressMonitor progress)
    throws TeamException
  {
    return new IResourceVariant[0];
  }
  
  protected IResourceVariant fetchVariant(IResource resource, int depth, IProgressMonitor monitor)
    throws TeamException
  {
    return null;
  }
  
  public IResource[] roots()
  {
    return getSubscriber().roots();
  }
  
  public IResourceVariant getResourceVariant(IResource resource)
    throws TeamException
  {
    return getSubscriber().getResourceVariant(resource, getByteStore().getBytes(resource));
  }
  
  private ThreeWaySubscriber getSubscriber()
  {
    return subscriber;
  }
}

/* Location:
 * Qualified Name:     org.eclipse.team.internal.core.subscribers.ThreeWayBaseTree
 * Java Class Version: 1.2 (46.0)
 * JD-Core Version:    0.7.1
 */
package org.eclipse.team.internal.core.subscribers;

import org.eclipse.core.runtime.IProgressMonitor;
import org.eclipse.team.core.synchronize.SyncInfo;
import org.eclipse.team.core.synchronize.SyncInfoFilter;

class WorkingSetFilteredSyncInfoCollector$1
  extends SyncInfoFilter
{
  final WorkingSetFilteredSyncInfoCollector this$0;
  
  WorkingSetFilteredSyncInfoCollector$1(WorkingSetFilteredSyncInfoCollector paramWorkingSetFilteredSyncInfoCollector)
  {
    this$0 = paramWorkingSetFilteredSyncInfoCollector;
  }
  
  public boolean select(SyncInfo info, IProgressMonitor monitor)
  {
    return true;
  }
}

/* Location:
 * Qualified Name:     org.eclipse.team.internal.core.subscribers.WorkingSetFilteredSyncInfoCollector.1
 * Java Class Version: 1.2 (46.0)
 * JD-Core Version:    0.7.1
 */
package org.eclipse.team.internal.core.subscribers;

import org.eclipse.core.resources.IResource;
import org.eclipse.core.resources.IWorkspaceRunnable;
import org.eclipse.core.runtime.IProgressMonitor;
import org.eclipse.team.core.synchronize.SyncInfo;
import org.eclipse.team.core.synchronize.SyncInfoFilter;
import org.eclipse.team.core.synchronize.SyncInfoSet;
import org.eclipse.team.core.synchronize.SyncInfoTree;

public final class WorkingSetFilteredSyncInfoCollector
{
  private WorkingSetSyncSetInput workingSetInput;
  private SyncSetInputFromSyncSet filteredInput;
  private SubscriberEventHandler eventHandler;
  
  public WorkingSetFilteredSyncInfoCollector(SubscriberSyncInfoCollector collector, IResource[] roots)
  {
    eventHandler = collector.getEventHandler();
    
    workingSetInput = new WorkingSetSyncSetInput((SubscriberSyncInfoSet)collector.getSyncInfoSet(), getEventHandler());
    filteredInput = new SyncSetInputFromSyncSet(workingSetInput.getSyncSet(), getEventHandler());
    filteredInput.setFilter(new SyncInfoFilter()
    {
      public boolean select(SyncInfo info, IProgressMonitor monitor)
      {
        return true;
      }
    });
  }
  
  public SyncInfoTree getSyncInfoTree()
  {
    return filteredInput.getSyncSet();
  }
  
  public void reset()
  {
    workingSetInput.reset();
  }
  
  public void dispose()
  {
    workingSetInput.disconnect();
    if (filteredInput != null) {
      filteredInput.disconnect();
    }
  }
  
  protected SubscriberEventHandler getEventHandler()
  {
    return eventHandler;
  }
  
  public void setFilter(SyncInfoFilter filter)
  {
    filteredInput.setFilter(filter);
    filteredInput.reset();
  }
  
  public SyncInfoSet getWorkingSetSyncInfoSet()
  {
    return workingSetInput.getSyncSet();
  }
  
  public void run(IWorkspaceRunnable runnable)
  {
    eventHandler.run(runnable, true);
  }
}

/* Location:
 * Qualified Name:     org.eclipse.team.internal.core.subscribers.WorkingSetFilteredSyncInfoCollector
 * Java Class Version: 1.2 (46.0)
 * JD-Core Version:    0.7.1
 */
package org.eclipse.team.internal.core.subscribers;

import org.eclipse.core.resources.IResource;

public class WorkingSetSyncSetInput
  extends SyncSetInputFromSyncSet
{
  private SyncInfoWorkingSetFilter workingSetFilter = new SyncInfoWorkingSetFilter();
  
  public WorkingSetSyncSetInput(SubscriberSyncInfoSet set, SubscriberEventHandler handler)
  {
    super(set, handler);
    setFilter(workingSetFilter);
  }
  
  public void setWorkingSet(IResource[] resources)
  {
    workingSetFilter.setWorkingSet(resources);
  }
  
  public IResource[] getWorkingSet()
  {
    return workingSetFilter.getWorkingSet();
  }
}

/* Location:
 * Qualified Name:     org.eclipse.team.internal.core.subscribers.WorkingSetSyncSetInput
 * Java Class Version: 1.2 (46.0)
 * JD-Core Version:    0.7.1
 */
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26

Further reading...

For more information on Java 1.5 Tiger, you may find Java 1.5 Tiger, A developer's Notebook by D. Flanagan and B. McLaughlin from O'Reilly of interest.

New!JAR listings


Copyright 2006-2017. Infinite Loop Ltd