/******************************************************************************* * 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: * Alexander Gurov - Initial API and implementation *******************************************************************************/ package org.eclipse.team.svn.ui.debugmail; import org.eclipse.core.runtime.IStatus; /** * Stack trace-based status visitor * * @author Alexander Gurov */ public class StackTraceVisitor implements ReportPartsFactory.IStatusVisitor { public boolean visit(IStatus status) { String output = ReportPartsFactory.getOutput(status); return output.indexOf(".eclipse.team.svn.") != -1 && //$NON-NLS-1$ output.indexOf("Could not instantiate provider") == -1 && //$NON-NLS-1$ output.indexOf("Java Model Exception: Java Model Status [") == -1 && //$NON-NLS-1$ output.indexOf("org.eclipse.team.svn.ui.operation.OpenRemoteFileOperation.openEditor") == -1; //$NON-NLS-1$ } }