⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 sftpsubscriber.java

📁 SFTP Plug-in for Eclipse will add the SFTP support to Eclipse
💻 JAVA
字号:
/******************************************************************************* * Copyright (c) 2000, 2004 IBM Corporation and others. * All rights reserved. This program and the accompanying materials * are made available under the terms of the Eclipse Public License v1.0 * which accompanies this distribution, and is available at * http://www.eclipse.org/legal/epl-v10.html *  * Contributors: *     IBM Corporation - initial API and implementation *     Atsuhiko Yamanaka, JCraft, Inc. - adding sftp support. *******************************************************************************/package com.jcraft.eclipse.team.internal.sftp.subscriber;import org.eclipse.core.resources.IResource;import org.eclipse.team.core.variants.ThreeWayRemoteTree;import org.eclipse.team.internal.target.subscriber.PutOperation;import org.eclipse.team.internal.target.subscriber.TargetSubscriber;import com.jcraft.eclipse.team.internal.sftp.Policy;import com.jcraft.eclipse.team.internal.sftp.SFTPPlugin;/** * This is the SFTP Subscriber */public class SFTPSubscriber extends TargetSubscriber{  public SFTPSubscriber(){    super(new SFTPSynchronizer());  }  /* (non-Javadoc)   * @see org.eclipse.team.core.subscribers.TeamSubscriber#getDescription()   */  public String getName(){    return Policy.bind("SFTPSubscriber.0"); //$NON-NLS-1$  }  /* (non-Javadoc)   * @see org.eclipse.team.internal.core.target.TargetSubscriber#getDeploymentProviderId()   */  protected String getDeploymentProviderId(){    return SFTPPlugin.DEPLOYMENT_PROVIDER_ID;  }  /* (non-Javadoc)   * @see org.eclipse.team.internal.core.target.TargetSubscriber#getPutOperation(org.eclipse.core.resources.IResource[], int, boolean)   */  protected PutOperation getPutOperation(IResource[] resources, int depth,      boolean overwriteRemoteChanges){    return new SFTPPutOperation(resources, depth, overwriteRemoteChanges);  }  /* (non-Javadoc)   * @see org.eclipse.team.core.variants.ThreeWaySubscriber#createRemoteTree()   */  protected ThreeWayRemoteTree createRemoteTree(){    return new SFTPRemoteResourceVariantTree();  }}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -