org.eclipse.team.cvs.core_3.3.400.I20110510-0800

blic abstract String getName();
  
  public abstract void setContents(InputStream paramInputStream, int paramInt, boolean paramBoolean, IProgressMonitor paramIProgressMonitor)
    throws CVSException;
  
  public abstract long getSize();
  
  public abstract InputStream getContents()
    throws CVSException;
}

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

public abstract interface IConnectionMethod
{
  public abstract String getName();
  
  public abstract IServerConnection createConnection(ICVSRepositoryLocation paramICVSRepositoryLocation, String paramString);
  
  public abstract void disconnect(ICVSRepositoryLocation paramICVSRepositoryLocation);
}

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

import java.util.Date;
import org.eclipse.core.runtime.IAdaptable;

public abstract interface ILogEntry
  extends IAdaptable
{
  public abstract String getRevision();
  
  public abstract String getAuthor();
  
  public abstract Date getDate();
  
  public abstract String getComment();
  
  public abstract String getState();
  
  public abstract CVSTag[] getBranches();
  
  public abstract CVSTag[] getTags();
  
  public abstract ICVSRemoteFile getRemoteFile();
  
  public abstract boolean isDeletion();
}

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

import java.util.EventListener;
import org.eclipse.core.resources.IProject;
import org.eclipse.core.resources.IResource;

public abstract interface IResourceStateChangeListener
  extends EventListener
{
  public abstract void resourceSyncInfoChanged(IResource[] paramArrayOfIResource);
  
  public abstract void externalSyncInfoChange(IResource[] paramArrayOfIResource);
  
  public abstract void resourceModified(IResource[] paramArrayOfIResource);
  
  public abstract void projectConfigured(IProject paramIProject);
  
  public abstract void projectDeconfigured(IProject paramIProject);
}

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

import java.io.IOException;
import java.io.InputStream;
import java.io.OutputStream;
import org.eclipse.core.runtime.IProgressMonitor;
import org.eclipse.team.internal.ccvs.core.connection.CVSAuthenticationException;

public abstract interface IServerConnection
{
  public abstract void open(IProgressMonitor paramIProgressMonitor)
    throws IOException, CVSAuthenticationException;
  
  public abstract void close()
    throws IOException;
  
  public abstract InputStream getInputStream();
  
  public abstract OutputStream getOutputStream();
}

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

import java.util.Map;

public abstract interface IUserAuthenticator
{
  public static final int OK_ID = 0;
  public static final int CANCEL_ID = 1;
  public static final int YES_ID = 2;
  public static final int NO_ID = 3;
  public static final int NONE = 0;
  public static final int ERROR = 1;
  public static final int INFORMATION = 2;
  public static final int QUESTION = 3;
  public static final int WARNING = 4;
  
  public abstract void promptForUserInfo(ICVSRepositoryLocation paramICVSRepositoryLocation, IUserInfo paramIUserInfo, String paramString)
    throws CVSException;
  
  public abstract String[] promptForKeyboradInteractive(ICVSRepositoryLocation paramICVSRepositoryLocation, String paramString1, String paramString2, String paramString3, String[] paramArrayOfString, boolean[] paramArrayOfBoolean)
    throws CVSException;
  
  public abstract int prompt(ICVSRepositoryLocation paramICVSRepositoryLocation, int paramInt1, String paramString1, String paramString2, int[] paramArrayOfInt, int paramInt2);
  
  public abstract boolean promptForHostKeyChange(ICVSRepositoryLocation paramICVSRepositoryLocation);
  
  public abstract Map promptToConfigureRepositoryLocations(Map paramMap);
}

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

public abstract interface IUserInfo
{
  public abstract String getUsername();
  
  public abstract boolean isUsernameMutable();
  
  public abstract void setPassword(String paramString);
  
  public abstract void setUsername(String paramString);
}

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

import java.io.PrintStream;
import java.lang.reflect.Field;
import org.eclipse.core.runtime.IProgressMonitor;
import org.eclipse.core.runtime.NullProgressMonitor;
import org.eclipse.core.runtime.OperationCanceledException;
import org.eclipse.core.runtime.Platform;
import org.eclipse.core.runtime.SubProgressMonitor;
import org.eclipse.team.internal.core.InfiniteSubProgressMonitor;

public class Policy
{
  public static PrintStream recorder;
  public static boolean DEBUG_METAFILE_CHANGES = false;
  public static boolean DEBUG_CVS_PROTOCOL = false;
  public static boolean DEBUG_THREADING = false;
  public static boolean DEBUG_DIRTY_CACHING = false;
  public static boolean DEBUG_SYNC_CHANGE_EVENTS = false;
  
  static
  {
    if (CVSProviderPlugin.getPlugin().isDebugging())
    {
      DEBUG_METAFILE_CHANGES = "true".equalsIgnoreCase(Platform.getDebugOption("org.eclipse.team.cvs.core/metafiles"));
      DEBUG_CVS_PROTOCOL = "true".equalsIgnoreCase(Platform.getDebugOption("org.eclipse.team.cvs.core/cvsprotocol"));
      DEBUG_THREADING = "true".equalsIgnoreCase(Platform.getDebugOption("org.eclipse.team.cvs.core/threading"));
      DEBUG_DIRTY_CACHING = "true".equalsIgnoreCase(Platform.getDebugOption("org.eclipse.team.cvs.core/dirtycaching"));
      DEBUG_SYNC_CHANGE_EVENTS = "true".equalsIgnoreCase(Platform.getDebugOption("org.eclipse.team.cvs.core/syncchangeevents"));
    }
  }
  
  public static void checkCanceled(IProgressMonitor monitor)
  {
    if (monitor.isCanceled()) {
      throw new OperationCanceledException();
    }
  }
  
  public static IProgressMonitor monitorFor(IProgressMonitor monitor)
  {
    if (monitor == null) {
      return new NullProgressMonitor();
    }
    return monitor;
  }
  
  public static IProgressMonitor subMonitorFor(IProgressMonitor monitor, int ticks)
  {
    if (monitor == null) {
      return new NullProgressMonitor();
    }
    if ((monitor instanceof NullProgressMonitor)) {
      return monitor;
    }
    return new SubProgressMonitor(monitor, ticks);
  }
  
  public static IProgressMonitor infiniteSubMonitorFor(IProgressMonitor monitor, int ticks)
  {
    if (monitor == null) {
      return new NullProgressMonitor();
    }
    if ((monitor instanceof NullProgressMonitor)) {
      return monitor;
    }
    return new InfiniteSubProgressMonitor(monitor, ticks);
  }
  
  public static boolean isDebugProtocol()
  {
    return (DEBUG_CVS_PROTOCOL) || (recorder != null);
  }
  
  public static void printProtocolLine(String line)
  {
    printProtocol(line, true);
  }
  
  public static void printProtocol(String string, boolean newLine)
  {
    if (DEBUG_CVS_PROTOCOL)
    {
      System.out.print(string);
      if (newLine) {
        System.out.println();
      }
    }
    if (recorder != null)
    {
      recorder.print(string);
      if (newLine) {
        recorder.println();
      }
    }
  }
  
  public static String getMessage(String key)
  {
    try
    {
      Field f = CVSMessages.class.getDeclaredField(key);
      Object o = f.get(null);
      if ((o instanceof String)) {
        return (String)o;
      }
    }
    catch (SecurityException localSecurityException) {}catch (NoSuchFieldException localNoSuchFieldException) {}catch (IllegalArgumentException localIllegalArgumentException) {}catch (IllegalAccessException localIllegalAccessException) {}
    return null;
  }
}

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

import org.eclipse.core.runtime.IProgressMonitor;
import org.eclipse.team.internal.ccvs.core.CVSException;
import org.eclipse.team.internal.ccvs.core.ICVSResource;

abstract class AbstractMessageCommand
  extends Command
{
  protected ICVSResource[] sendLocalResourceState(Session session, Command.GlobalOption[] globalOptions, Command.LocalOption[] localOptions, ICVSResource[] resources, IProgressMonitor monitor)
    throws CVSException
  {
    new FileStructureVisitor(session, localOptions, false, false).visit(session, resources, monitor);
    return resources;
  }
}

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

import java.util.Comparator;
import org.eclipse.team.internal.ccvs.core.CVSException;
import org.eclipse.team.internal.ccvs.core.ICVSFolder;
import org.eclipse.team.internal.ccvs.core.ICVSResource;

class AbstractStructureVisitor$1
  implements Comparator
{
  final AbstractStructureVisitor this$0;
  private final ICVSFolder val$localRoot;
  
  AbstractStructureVisitor$1(AbstractStructureVisitor paramAbstractStructureVisitor, ICVSFolder paramICVSFolder)
  {
    this$0 = paramAbstractStructureVisitor;val$localRoot = paramICVSFolder;
  }
  
  public int compare(Object object1, Object object2)
  {
    ICVSResource resource1 = (ICVSResource)object1;
    ICVSResource resource2 = (ICVSResource)object2;
    try
    {
      String path1 = resource1.getParent().getRelativePath(val$localRoot);
      String path2 = resource2.getParent().getRelativePath(val$localRoot);
      int pathCompare = path1.compareTo(path2);
      if (pathCompare == 0)
      {
        if (resource1.isFolder() == resource2.isFolder()) {
          return resource1.getName().compareTo(resource2.getName());
        }
        if (resource1.isFolder()) {
          return 1;
        }
        return -1;
      }
      return pathCompare;
    }
    catch (CVSException localCVSException) {}
    return resource1.getName().compareTo(resource2.getName());
  }
}

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

import java.util.Comparator;
import org.eclipse.core.runtime.IProgressMonitor;
import org.eclipse.core.runtime.IStatus;
import org.eclipse.osgi.util.NLS;
import org.eclipse.team.internal.ccvs.core.CVSException;
import org.eclipse.team.internal.ccvs.core.CVSMessages;
import org.eclipse.team.internal.ccvs.core.CVSStatus;
import org.eclipse.team.internal.ccvs.core.ICVSFile;
import org.eclipse.team.internal.ccvs.core.ICVSFolder;
import org.eclipse.team.internal.ccvs.core.ICVSResource;
import org.eclipse.team.internal.ccvs.core.ICVSResourceVisitor;
import org.eclipse.team.internal.ccvs.core.Policy;
import org.eclipse.team.internal.ccvs.core.resources.CVSEntryLineTag;
import org.eclipse.team.internal.ccvs.core.syncinfo.FolderSyncInfo;
import org.eclipse.team.internal.ccvs.core.syncinfo.NotifyInfo;
import org.eclipse.team.internal.ccvs.core.syncinfo.ResourceSyncInfo;
import org.eclipse.team.internal.ccvs.core.util.Util;

abstract class AbstractStructureVisitor
  implements ICVSResourceVisitor
{
  protected Session session;
  private ICVSFolder lastFolderSent;
  protected IProgressMonitor monitor;
  protected boolean sendQuestionable;
  protected boolean sendModifiedContents;
  private boolean sendBinary;
  private boolean recurse = true;
  
  public AbstractStructureVisitor(Session session, Command.LocalOption[] localOptions, boolean sendQuestionable, boolean sendModifiedContents)
  {
    this(session, localOptions, sendQuestionable, sendModifiedContents, true);
  }
  
  public AbstractStructureVisitor(Session session, Command.LocalOption[] localOptions, boolean sendQuestionable, boolean sendModifiedContents, boolean sendBinary)
  {
    this.session = session;
    this.sendQuestionable = sendQuestionable;
    this.sendModifiedContents = sendModifiedContents;
    this.sendBinary = sendBinary;
    if (Command.DO_NOT_RECURSE.isElementOf(localOptions)) {
      recurse = false;
    }
  }
  
  protected boolean isLastSent(ICVSFolder folder)
  {
    return folder.equals(lastFolderSent);
  }
  
  protected void recordLastSent(ICVSFolder folder)
  {
    lastFolderSent = folder;
  }
  
  protected boolean isOrphanedSubtree(ICVSFolder mFolder)
    throws CVSException
  {
    return (mFolder.isCVSFolder()) && (!mFolder.isManaged()) && (!mFolder.equals(session.getLocalRoot())) && (mFolder.getParent().isCVSFolder());
  }
  
  protected void sendFolder(ICVSFolder mFolder)
    throws CVSException
  {
    Policy.checkCanceled(monitor);
    
    boolean exists = mFolder.exists();
    FolderSyncInfo info = mFolder.getFolderSyncInfo();
    boolean isCVSFolder = info != null;
    if ((!exists) && (!isCVSFolder)) {
      return;
    }
    if (isLastSent(mFolder)) {
      return;
    }
    if ((isCVSFolder) && (info.isVirtualDirectory())) {
      return;
    }
    String localPath = mFolder.getRelativePath(session.getLocalRoot());
    
    monitor.subTask(NLS.bind(CVSMessages.AbstractStructureVisitor_sendingFolder, new String[] { Util.toTruncatedPath(mFolder, session.getLocalRoot(), 3) }));
    
    boolean isQuestionable = (exists) && ((!isCVSFolder) || (isOrphanedSubtree(mFolder)));
    if (isQuestionable)
    {
      if (sendQuestionable)
      {
        sendFolder(mFolder.getParent());
        session.sendQuestionable(mFolder);
      }
      return;
    }
    String remotePath = mFolder.getRemoteLocation(session.getLocalRoot());
    if (remotePath == null)
    {
      IStatus status = new CVSStatus(4, 4, CVSMessages.AbstractStructureVisitor_noRemote, session.getLocalRoot());
      throw new CVSException(status);
    }
    session.sendDirectory(localPath, remotePath);
    if (info != null)
    {
      if (info.getIsStatic()) {
        session.sendStaticDirectory();
      }
      CVSEntryLineTag tag = info.getTag();
      if ((tag != null) && (tag.getType() != 0)) {
        session.sendSticky(tag.toEntryLineFormat(false));
      }
    }
    recordLastSent(mFolder);
    
    monitor.worked(1);
  }
  
  /* Error */
  protected void sendFile(ICVSFile mFile)
    throws CVSException
  {
    // Byte code:
    //   0: aload_0
    //   1: getfield 304	org/eclipse/team/internal/ccvs/core/client/AbstractStructureVisitor:monitor	Lorg/eclipse/core/runtime/IProgressMonitor;
    //   4: invokestatic 317	org/eclipse/team/internal/ccvs/core/Policy:checkCanceled	(Lorg/eclipse/core/runtime/IProgressMonitor;)V
    //   7: aload_0
    //   8: aload_1
    //   9: invokeinterface 364 1 0
    //   14: invokevirtual 323	org/eclipse/team/internal/ccvs/core/client/AbstractStructureVisitor:sendFolder	(Lorg/eclipse/team/internal/ccvs/core/ICVSFolder;)V
    //   17: aload_1
    //   18: invokeinterface 360 1 0
    //   23: astore_2
    //   24: aload_2
    //   25: ifnull +7 -> 32
    //   28: iconst_1
    //   29: goto +4 -> 33
    //   32: iconst_0
    //   33: istore_3
    //   34: iload_3
    //   35: ifeq +11 -> 46
    //   38: aload_0
    //   39: aload_1
    //   40: invokevirtual 320	org/eclipse/team/internal/ccvs/core/client/AbstractStructureVisitor:sendPendingNotification	(Lorg/eclipse/team/internal/ccvs/core/ICVSFile;)V
    //   43: goto +28 -> 71
    //   46: aload_0
    //   47: getfield 303	org/eclipse/team/internal/ccvs/core/client/AbstractStructureVisitor:sendQuestionable	Z
    //   50: ifeq +21 -> 71
    //   53: aload_1
    //   54: invokeinterface 359 1 0
    //   59: ifeq +11 -> 70
    //   62: aload_0
    //   63: getfield 306	org/eclipse/team/internal/ccvs/core/client/AbstractStructureVisitor:session	Lorg/eclipse/team/internal/ccvs/core/client/Session;
    //   66: aload_1
    //   67: invokevirtual 335	org/eclipse/team/internal/ccvs/core/client/Session:sendQuestionable	(Lorg/eclipse/team/internal/ccvs/core/ICVSResource;)V
    //   70: return
    //   71: aload_1
    //   72: invokeinterface 359 1 0
    //   77: ifeq +38 -> 115
    //   80: aload_1
    //   81: aload_0
    //   82: getfield 304	org/eclipse/team/internal/ccvs/core/client/AbstractStructureVisitor:monitor	Lorg/eclipse/core/runtime/IProgressMonitor;
    //   85: invokeinterface 363 2 0
    //   90: ifeq +25 -> 115
    //   93: aload_1
    //   94: invokeinterface 366 1 0
    //   99: aload_1
    //   100: invokeinterface 361 1 0
    //   105: invokevirtual 347	org/eclipse/team/internal/ccvs/core/syncinfo/ResourceSyncInfo:isNeedsMerge	(Ljava/util/Date;)Z
    //   108: ifne +7 -> 115
    //   111: iconst_1
    //   112: goto +4 -> 116
    //   115: iconst_0
    //   116: istore 4
    //   118: aload_2
    //   119: invokestatic 346	org/eclipse/team/internal/ccvs/core/syncinfo/ResourceSyncInfo:isDeletion	([B)Z
    //   122: ifeq +12 -> 134
    //   125: aload_0
    //   126: aload_1
    //   127: aload_2
    //   128: invokespecial 321	org/eclipse/team/internal/ccvs/core/client/AbstractStructureVisitor:sendEntryLineToServer	(Lorg/eclipse/team/internal/ccvs/core/ICVSFile;[B)V
    //   131: goto +174 -> 305
    //   134: iload 4
    //   136: ifeq +155 -> 291
    //   139: aload_1
    //   140: invokeinterface 362 1 0
    //   145: astore 5
    //   147: aload 5
    //   149: ifnull +17 -> 166
    //   152: invokestatic 313	org/eclipse/core/runtime/jobs/Job:getJobManager	()Lorg/eclipse/core/runtime/jobs/IJobManager;
    //   155: aload 5
    //   157: aload_0
    //   158: getfield 304	org/eclipse/team/internal/ccvs/core/client/AbstractStructureVisitor:monitor	Lorg/eclipse/core/runtime/IProgressMonitor;
    //   161: invokeinterface 358 3 0
    //   166: aload_0
    //   167: aload_1
    //   168: aload_2
    //   169: invokespecial 321	org/eclipse/team/internal/ccvs/core/client/AbstractStructureVisitor:sendEntryLineToServer	(Lorg/eclipse/team/internal/ccvs/core/ICVSFile;[B)V
    //   172: aload_1
    //   173: invokeinterface 359 1 0
    //   178: ifeq +64 -> 242
    //   181: aload_1
    //   182: aconst_null
    //   183: invokeinterface 363 2 0
    //   188: ifeq +54 -> 242
    //   191: aload_2
    //   192: invokestatic 345	org/eclipse/team/internal/ccvs/core/syncinfo/ResourceSyncInfo:isBinary	([B)Z
    //   195: istore 6
    //   197: aload_0
    //   198: getfield 302	org/eclipse/team/internal/ccvs/core/client/AbstractStructureVisitor:sendModifiedContents	Z
    //   201: ifeq +24 -> 225
    //   204: aload_0
    //   205: getfield 306	org/eclipse/team/internal/ccvs/core/client/AbstractStructureVisitor:session	Lorg/eclipse/team/internal/ccvs/core/client/Session;
    //   208: aload_1
    //   209: iload 6
    //   211: aload_0
    //   212: getfield 301	org/eclipse/team/internal/ccvs/core/client/AbstractStructureVisitor:sendBinary	Z
    //   215: aload_0
    //   216: getfield 304	org/eclipse/team/internal/ccvs/core/client/AbstractStructureVisitor:monitor	Lorg/eclipse/core/runtime/IProgressMonitor;
    //   219: invokevirtual 338	org/eclipse/team/internal/ccvs/core/client/Session:sendModified	(Lorg/eclipse/team/internal/ccvs/core/ICVSFile;ZZLorg/eclipse/core/runtime/IProgressMonitor;)V
    //   222: goto +51 -> 273
    //   225: aload_0
    //   226: getfield 306	org/eclipse/team/internal/ccvs/core/client/AbstractStructureVisitor:session	Lorg/eclipse/team/internal/ccvs/core/client/Session;
    //   229: aload_1
    //   230: iload 6
    //   232: aload_0
    //   233: getfield 304	org/eclipse/team/internal/ccvs/core/client/AbstractStructureVisitor:monitor	Lorg/eclipse/core/runtime/IProgressMonitor;
    //   236: invokevirtual 337	org/eclipse/team/internal/ccvs/core/client/Session:sendIsModified	(Lorg/eclipse/team/internal/ccvs/core/ICVSFile;ZLorg/eclipse/core/runtime/IProgressMonitor;)V
    //   239: goto +34 -> 273
    //   242: aload_0
    //   243: getfield 306	org/eclipse/team/internal/ccvs/core/client/AbstractStructureVisitor:session	Lorg/eclipse/team/internal/ccvs/core/client/Session;
    //   246: aload_1
    //   247: invokevirtual 333	org/eclipse/team/internal/ccvs/core/client/Session:sendUnchanged	(Lorg/eclipse/team/internal/ccvs/core/ICVSFile;)V
    //   250: goto +23 -> 273
    //   253: astore 7
    //   255: aload 5
    //   257: ifnull +13 -> 270
    //   260: invokestatic 313	org/eclipse/core/runtime/jobs/Job:getJobManager	()Lorg/eclipse/core/runtime/jobs/IJobManager;
    //   263: aload 5
    //   265: invokeinterface 357 2 0
    //   270: aload 7
    //   272: athrow
    //   273: aload 5
    //   275: ifnull +30 -> 305
    //   278: invokestatic 313	org/eclipse/core/runtime/jobs/Job:getJobManager	()Lorg/eclipse/core/runtime/jobs/IJobManager;
    //   281: aload 5
    //   283: invokeinterface 357 2 0
    //   288: goto +17 -> 305
    //   291: aload_0
    //   292: aload_1
    //   293: aload_2
    //   294: invokespecial 321	org/eclipse/team/internal/ccvs/core/client/AbstractStructureVisitor:sendEntryLineToServer	(Lorg/eclipse/team/internal/ccvs/core/ICVSFile;[B)V
    //   297: aload_0
    //   298: getfield 306	org/eclipse/team/internal/ccvs/core/client/AbstractStructureVisitor:session	Lorg/eclipse/team/internal/ccvs/core/client/Session;
    //   301: aload_1
    //   302: invokevirtual 333	org/eclipse/team/internal/ccvs/core/client/Session:sendUnchanged	(Lorg/eclipse/team/internal/ccvs/core/ICVSFile;)V
    //   305: aload_0
    //   306: getfield 304	org/eclipse/team/internal/ccvs/core/client/AbstractStructureVisitor:monitor	Lorg/eclipse/core/runtime/IProgressMonitor;
    //   309: iconst_1
    //   310: invokeinterface 354 2 0
    //   315: return
    // Line number table:
    //   Java source line #161	-> byte code offset #0
    //   Java source line #164	-> byte code offset #7
    //   Java source line #167	-> byte code offset #17
    //   Java source line #168	-> byte code offset #24
    //   Java source line #170	-> byte code offset #34
    //   Java source line #171	-> byte code offset #38
    //   Java source line #175	-> byte code offset #46
    //   Java source line #176	-> byte code offset #53
    //   Java source line #177	-> byte code offset #62
    //   Java source line #179	-> byte code offset #70
    //   Java source line #187	-> byte code offset #71
    //   Java source line #188	-> byte code offset #93
    //   Java source line #187	-> byte code offset #116
    //   Java source line #189	-> byte code offset #118
    //   Java source line #190	-> byte code offset #125
    //   Java source line #191	-> byte code offset #134
    //   Java source line #194	-> byte code offset #139
    //   Java source line #196	-> byte code offset #147
    //   Java source line #197	-> byte code offset #152
    //   Java source line #199	-> byte code offset #166
    //   Java source line #200	-> byte code offset #172
    //   Java source line #201	-> byte code offset #191
    //   Java source line #202	-> byte code offset #197
    //   Java source line #203	-> byte code offset #204
    //   Java source line #205	-> byte code offset #225
    //   Java source line #208	-> byte code offset #242
    //   Java source line #210	-> byte code offset #253
    //   Java source line #211	-> byte code offset #255
    //   Java source line #212	-> byte code offset #260
    //   Java source line #213	-> byte code offset #270
    //   Java source line #211	-> byte code offset #273
    //   Java source line #212	-> byte code offset #278
    //   Java source line #215	-> byte code offset #291
    //   Java source line #216	-> byte code offset #297
    //   Java source line #219	-> byte code offset #305
    //   Java source line #220	-> byte code offset #315
    // Local variable table:
    //   start	length	slot	name	signature
    //   0	316	0	this	AbstractStructureVisitor
    //   0	316	1	mFile	ICVSFile
    //   23	271	2	syncBytes	byte[]
    //   33	2	3	isManaged	boolean
    //   116	19	4	sendContents	boolean
    //   145	137	5	resource	org.eclipse.core.resources.IResource
    //   195	36	6	binary	boolean
    //   253	18	7	localObject	Object
    // Exception table:
    //   from	to	target	type
    //   147	253	253	finally
  }
  
  private void sendEntryLineToServer(ICVSFile mFile, byte[] syncBytes)
    throws CVSException
  {
    if (syncBytes != null)
    {
      String syncBytesToServer = ResourceSyncInfo.getTimestampToServer(syncBytes, mFile.getTimeStamp());
      session.sendEntry(syncBytes, syncBytesToServer);
    }
  }
  
  protected void sendPendingNotification(ICVSFile mFile)
    throws CVSException
  {
    NotifyInfo notify = mFile.getPendingNotification();
    if (notify != null)
    {
      sendFolder(mFile.getParent());
      session.sendNotify(mFile.getParent(), notify);
    }
  }
  
  /* Error */
  public void visit(Session session, ICVSResource[] resources, IProgressMonitor monitor)
    throws CVSException
  {
    // Byte code:
    //   0: new 137	java/util/ArrayList
    //   3: dup
    //   4: aload_2
    //   5: arraylength
    //   6: invokespecial 310	java/util/ArrayList:<init>	(I)V
    //   9: astore 4
    //   11: aload 4
    //   13: aload_2
    //   14: invokestatic 311	java/util/Arrays:asList	([Ljava/lang/Object;)Ljava/util/List;
    //   17: invokeinterface 352 2 0
    //   22: pop
    //   23: aload_1
    //   24: invokevirtual 334	org/eclipse/team/internal/ccvs/core/client/Session:getLocalRoot	()Lorg/eclipse/team/internal/ccvs/core/ICVSFolder;
    //   27: astore 5
    //   29: aload 4
    //   31: new 154	org/eclipse/team/internal/ccvs/core/client/AbstractStructureVisitor$1
    //   34: dup
    //   35: aload_0
    //   36: aload 5
    //   38: invokespecial 327	org/eclipse/team/internal/ccvs/core/client/AbstractStructureVisitor$1:<init>	(Lorg/eclipse/team/internal/ccvs/core/client/AbstractStructureVisitor;Lorg/eclipse/team/internal/ccvs/core/ICVSFolder;)V
    //   41: invokestatic 312	java/util/Collections:sort	(Ljava/util/List;Ljava/util/Comparator;)V
    //   44: bipush 64
    //   46: istore 6
    //   48: aload_3
    //   49: aconst_null
    //   50: iload 6
    //   52: invokeinterface 356 3 0
    //   57: aload_0
    //   58: aload_3
    //   59: iload 6
    //   61: invokestatic 318	org/eclipse/team/internal/ccvs/core/Policy:infiniteSubMonitorFor	(Lorg/eclipse/core/runtime/IProgressMonitor;I)Lorg/eclipse/core/runtime/IProgressMonitor;
    //   64: putfield 304	org/eclipse/team/internal/ccvs/core/client/AbstractStructureVisitor:monitor	Lorg/eclipse/core/runtime/IProgressMonitor;
    //   67: aload_0
    //   68: getfield 304	org/eclipse/team/internal/ccvs/core/client/AbstractStructureVisitor:monitor	Lorg/eclipse/core/runtime/IProgressMonitor;
    //   71: aconst_null
    //   72: iload 6
    //   74: invokeinterface 356 3 0
    //   79: aload_1
    //   80: aload_0
    //   81: invokevirtual 319	org/eclipse/team/internal/ccvs/core/client/AbstractStructureVisitor:getSendFileMessage	()Ljava/lang/String;
    //   84: invokevirtual 331	org/eclipse/team/internal/ccvs/core/client/Session:setSendFileTitleKey	(Ljava/lang/String;)V
    //   87: iconst_0
    //   88: istore 7
    //   90: goto +24 -> 114
    //   93: aload 4
    //   95: iload 7
    //   97: invokeinterface 351 2 0
    //   102: checkcast 150	org/eclipse/team/internal/ccvs/core/ICVSResource
    //   105: aload_0
    //   106: invokeinterface 374 2 0
    //   111: iinc 7 1
    //   114: iload 7
    //   116: aload 4
    //   118: invokeinterface 350 1 0
    //   123: if_icmplt -30 -> 93
    //   126: goto +14 -> 140
    //   129: astore 8
    //   131: aload_3
    //   132: invokeinterface 353 1 0
    //   137: aload 8
    //   139: athrow
    //   140: aload_3
    //   141: invokeinterface 353 1 0
    //   146: return
    // Line number table:
    //   Java source line #244	-> byte code offset #0
    //   Java source line #245	-> byte code offset #11
    //   Java source line #246	-> byte code offset #23
    //   Java source line #247	-> byte code offset #29
    //   Java source line #273	-> byte code offset #44
    //   Java source line #274	-> byte code offset #48
    //   Java source line #275	-> byte code offset #57
    //   Java source line #278	-> byte code offset #67
    //   Java source line #279	-> byte code offset #79
    //   Java source line #280	-> byte code offset #87
    //   Java source line #281	-> byte code offset #93
    //   Java source line #280	-> byte code offset #111
    //   Java source line #283	-> byte code offset #129
    //   Java source line #284	-> byte code offset #131
    //   Java source line #285	-> byte code offset #137
    //   Java source line #284	-> byte code offset #140
    //   Java source line #286	-> byte code offset #146
    // Local variable table:
    //   start	length	slot	name	signature
    //   0	147	0	this	AbstractStructureVisitor
    //   0	147	1	session	Session
    //   0	147	2	resources	ICVSResource[]
    //   0	147	3	monitor	IProgressMonitor
    //   9	108	4	resourceList	java.util.List
    //   27	10	5	localRoot	ICVSFolder
    //   46	27	6	resourceHint	int
    //   88	27	7	i	int
    //   129	9	8	localObject	Object
    // Exception table:
    //   from	to	target	type
    //   67	129	129	finally
  }
  
  protected String getSendFileMessage()
  {
    return CVSMessages.AbstractStructureVisitor_sendingFile;
  }
  
  public boolean isRecurse()
  {
    return recurse;
  }
}

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

import org.eclipse.core.runtime.IProgressMonitor;
import org.eclipse.core.runtime.IStatus;
import org.eclipse.team.internal.ccvs.core.ICVSFolder;
import org.eclipse.team.internal.ccvs.core.ICVSRepositoryLocation;

class Add$1
  extends CommandOutputListener
{
  final Add this$0;
  
  Add$1(Add paramAdd)
  {
    this$0 = paramAdd;
  }
  
  public IStatus errorLine(String line, ICVSRepositoryLocation location, ICVSFolder commandRoot, IProgressMonitor monitor)
  {
    String serverMessage = getServerMessage(line, location);
    if (serverMessage != null)
    {
      if ((serverMessage.indexOf("cvs commit") != -1) && (serverMessage.indexOf("add") != -1) && (serverMessage.indexOf("permanently") != -1)) {
        return OK;
      }
      if ((serverMessage.startsWith("scheduling file")) && (serverMessage.indexOf("for addition") != -1)) {
        return OK;
      }
    }
    return super.errorLine(line, location, commandRoot, monitor);
  }
}

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

import org.eclipse.core.runtime.Assert;
import org.eclipse.core.runtime.IProgressMonitor;
import org.eclipse.core.runtime.IStatus;
import org.eclipse.osgi.util.NLS;
import org.eclipse.team.internal.ccvs.core.CVSException;
import org.eclipse.team.internal.ccvs.core.CVSMessages;
import org.eclipse.team.internal.ccvs.core.CVSStatus;
import org.eclipse.team.internal.ccvs.core.ICVSFolder;
import org.eclipse.team.internal.ccvs.core.ICVSRepositoryLocation;
import org.eclipse.team.internal.ccvs.core.ICVSResource;
import org.eclipse.team.internal.ccvs.core.client.listeners.ICommandOutputListener;
import org.eclipse.team.internal.ccvs.core.syncinfo.FolderSyncInfo;
import org.eclipse.team.internal.ccvs.core.syncinfo.MutableFolderSyncInfo;

public class Add
  extends Command
{
  protected String getRequestId()
  {
    return "add";
  }
  
  protected ICVSResource[] sendLocalResourceState(Session session, Command.GlobalOption[] globalOptions, Command.LocalOption[] localOptions, ICVSResource[] resources, IProgressMonitor monitor)
    throws CVSException
  {
    for (int i = 0; i < resources.length; i++) {
      Assert.isNotNull(resources[i].getRemoteLocation(session.getLocalRoot()));
    }
    AddStructureVisitor visitor = new AddStructureVisitor(session, localOptions);
    visitor.visit(session, resources, monitor);
    return resources;
  }
  
  protected IStatus commandFinished(Session session, Command.GlobalOption[] globalOptions, Command.LocalOption[] localOptions, ICVSResource[] resources, IProgressMonitor monitor, IStatus status)
    throws CVSException
  {
    if (status.getCode() == -10) {
      return status;
    }
    for (int i = 0; i < resources.length; i++) {
      if (resources[i].isFolder())
      {
        ICVSFolder mFolder = (ICVSFolder)resources[i];
        FolderSyncInfo info = mFolder.getParent().getFolderSyncInfo();
        if (info == null)
        {
          status = mergeStatus(status, new CVSStatus(4, NLS.bind(CVSMessages.Add_invalidParent, new String[] { mFolder.getRelativePath(session.getLocalRoot()) })));
        }
        else
        {
          String repository = info.getRepository() + "/" + mFolder.getName();
          MutableFolderSyncInfo newInfo = info.cloneMutable();
          newInfo.setRepository(repository);
          mFolder.setFolderSyncInfo(newInfo);
        }
      }
    }
    return status;
  }
  
  protected ICommandOutputListener getDefaultCommandOutputListener()
  {
    new CommandOutputListener()
    {
      public IStatus errorLine(String line, ICVSRepositoryLocation location, ICVSFolder commandRoot, IProgressMonitor monitor)
      {
        String serverMessage = getServerMessage(line, location);
        if (serverMessage != null)
        {
          if ((serverMessage.indexOf("cvs commit") != -1) && (serverMessage.indexOf("add") != -1) && (serverMessage.indexOf("permanently") != -1)) {
            return OK;
          }
          if ((serverMessage.startsWith("scheduling file")) && (serverMessage.indexOf("for addition") != -1)) {
            return OK;
          }
        }
        return super.errorLine(line, location, commandRoot, monitor);
      }
    };
  }
}

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

import org.eclipse.core.runtime.Assert;
import org.eclipse.team.internal.ccvs.core.CVSException;
import org.eclipse.team.internal.ccvs.core.ICVSFile;
import org.eclipse.team.internal.ccvs.core.ICVSFolder;

class AddStructureVisitor
  extends AbstractStructureVisitor
{
  public AddStructureVisitor(Session session, Command.LocalOption[] localOptions)
  {
    super(session, localOptions, false, true);
  }
  
  public void visitFile(ICVSFile mFile)
    throws CVSException
  {
    sendFolder(mFile.getParent());
    
    session.sendIsModified(mFile, true, monitor);
  }
  
  public void visitFolder(ICVSFolder mFolder)
    throws CVSException
  {
    Assert.isNotNull(mFolder);
    
    sendFolder(mFolder.getParent());
    
    String localPath = mFolder.getRelativePath(session.getLocalRoot());
    String remotePath = mFolder.getRemoteLocation(session.getLocalRoot());
    session.sendDirectory(localPath, remotePath);
    
    recordLastSent(mFolder);
  }
}

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

public class Admin
  extends AbstractMessageCommand
{
  protected String getRequestId()
  {
    return "admin";
  }
}

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

public class Annotate
  extends AbstractMessageCommand
{
  public static final Object FORCE_BINARY_ANNOTATE = new Command.LocalOption("-F");
  
  protected String getRequestId()
  {
    return "annotate";
  }
  
  public static Command.LocalOption makeRevisionOption(String revision)
  {
    return new Command.LocalOption("-r" + revision, null);
  }
}

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

import java.io.IOException;
import java.io.OutputStream;

class ByteCountOutputStream
  extends OutputStream
{
  private long size = 0L;
  
  public void write(int b)
    throws IOException
  {
    size += 1L;
  }
  
  public long getSize()
  {
    return size;
  }
}

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

import java.io.FilterInputStream;
import java.io.IOException;
import java.io.InputStream;
import org.eclipse.core.resources.IResource;
import org.eclipse.core.runtime.IPath;
import org.eclipse.osgi.util.NLS;
import org.eclipse.team.internal.ccvs.core.CVSException;
import org.eclipse.team.internal.ccvs.core.CVSMessages;
import org.eclipse.team.internal.ccvs.core.CVSProviderPlugin;
import org.eclipse.team.internal.ccvs.core.ICVSFile;
import org.eclipse.team.internal.ccvs.core.ICVSStorage;

public class CRLFDetectInputStream
  extends FilterInputStream
{
  private boolean previousCR;
  private String filename;
  private boolean reported = false;
  
  protected CRLFDetectInputStream(InputStream in, ICVSStorage file)
  {
    super(in);
    try
    {
      filename = getFileName(file);
    }
    catch (CVSException localCVSException)
    {
      filename = file.getName();
    }
  }
  
  private String getFileName(ICVSStorage storage)
    throws CVSException
  {
    String fileName;
    if ((storage instanceof ICVSFile))
    {
      ICVSFile file = (ICVSFile)storage;
      String fileName = file.getRepositoryRelativePath();
      if (fileName == null)
      {
        IResource resource = file.getIResource();
        if (resource == null) {
          fileName = file.getName();
        } else {
          fileName = file.getIResource().getFullPath().toString();
        }
      }
    }
    else
    {
      fileName = storage.getName();
    }
    return fileName;
  }
  
  public int read()
    throws IOException
  {
    int next = in.read();
    if (next != -1) {
      testForCRLF((byte)next);
    }
    return next;
  }
  
  public int read(byte[] buffer, int off, int len)
    throws IOException
  {
    int count = super.read(buffer, off, len);
    for (int i = off; i < count; i++) {
      testForCRLF(buffer[i]);
    }
    return count;
  }
  
  private void testForCRLF(byte next)
  {
    if (reported) {
      return;
    }
    if ((previousCR) && (next == 10))
    {
      CVSProviderPlugin.log(2, NLS.bind(CVSMessages.CRLFDetectInputStream_0, new String[] { filename }), null);
      reported = true;
    }
    previousCR = (next == 13);
  }
}

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

import org.eclipse.core.runtime.IProgressMonitor;
import org.eclipse.osgi.util.NLS;
import org.eclipse.team.internal.ccvs.core.CVSException;
import org.eclipse.team.internal.ccvs.core.CVSMessages;
import org.ec
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 27 28 29 30 31 32 33 34 35 36

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-2019. Infinite Loop Ltd