/******************************************************************************* * Copyright (c) 2005-2008 Polarion Software. * 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: * Igor Burilo - Initial API and implementation *******************************************************************************/ package org.eclipse.team.svn.core.operation; import org.eclipse.core.runtime.IPath; import org.eclipse.core.runtime.IProgressMonitor; import org.eclipse.team.svn.core.connector.SVNNotification.NodeStatus; import org.eclipse.team.svn.core.connector.SVNNotification.PerformedAction; /** * SVN conflict detection progress monitor * * @author Igor Burilo */ public abstract class SVNConflictDetectionProgressMonitor extends SVNProgressMonitor { public SVNConflictDetectionProgressMonitor(IActionOperation parent, IProgressMonitor monitor, IPath root) { super(parent, monitor, root); } public SVNConflictDetectionProgressMonitor(IActionOperation parent, IProgressMonitor monitor, IPath root, boolean enableConsoleOutput) { super(parent, monitor, root, enableConsoleOutput); } public void progress(int current, int total, ItemState state) { super.progress(current, total, state); if (state.contentState == NodeStatus.CONFLICTED || state.propState == NodeStatus.CONFLICTED || state.action == PerformedAction.TREE_CONFLICT) { this.processConflict(state); } } protected abstract void processConflict(ItemState state); }