sftpoverrideputaction.java

来自「SFTP Plug-in for Eclipse will add the SF」· Java 代码 · 共 43 行

JAVA
43
字号
/******************************************************************************* * 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.ui.subscriber;import org.eclipse.team.core.synchronize.FastSyncInfoFilter;import org.eclipse.team.core.synchronize.SyncInfo;import org.eclipse.team.core.synchronize.FastSyncInfoFilter.SyncInfoDirectionFilter;import org.eclipse.team.ui.synchronize.ISynchronizePageConfiguration;import com.jcraft.eclipse.team.internal.sftp.Policy;/** * Override incoming and conflicting changes */public class SFTPOverridePutAction extends SFTPPutAction{  protected SFTPOverridePutAction(ISynchronizePageConfiguration configuration){    super(configuration, configuration.getSite().getSelectionProvider(),        "SFTPOverridePutAction.", Policy.getBundle()); //$NON-NLS-1$  }  /* (non-Javadoc)   * @see org.eclipse.team.ui.sync.SubscriberAction#getSyncInfoFilter()   */  protected FastSyncInfoFilter getSyncInfoFilter(){    return new SyncInfoDirectionFilter(new int[] {SyncInfo.OUTGOING,        SyncInfo.INCOMING, SyncInfo.CONFLICTING});  }  protected boolean getOverride(){    return true;  }}

⌨️ 快捷键说明

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