blob: 20c8f15e700ab06df3ce3c43383367a6ff7053f5 [file] [log] [blame]
/*******************************************************************************
* Copyright (c) 2005 IBM Corporation and others.
*
* This program and the accompanying materials
* are made available under the terms of the Eclipse Public License 2.0
* which accompanies this distribution, and is available at
* https://www.eclipse.org/legal/epl-2.0/
*
* SPDX-License-Identifier: EPL-2.0
*
* Contributors:
* IBM Corporation - initial API and implementation
*******************************************************************************/
package org.eclipse.jdt.internal.debug.core.refactoring;
import org.eclipse.core.runtime.CoreException;
import org.eclipse.jdt.debug.core.IJavaExceptionBreakpoint;
/**
* @since 3.2
*
*/
public abstract class ExceptionBreakpointChange extends BreakpointChange {
private String[] fExclusionFilters, fInclusionFilters;
boolean fCaught, fUncaught, fChecked;
public ExceptionBreakpointChange(IJavaExceptionBreakpoint breakpoint) throws CoreException {
super(breakpoint);
fExclusionFilters = breakpoint.getExclusionFilters();
fInclusionFilters = breakpoint.getInclusionFilters();
fCaught = breakpoint.isCaught();
fUncaught = breakpoint.isUncaught();
fChecked = breakpoint.isChecked();
}
protected boolean isChecked() {
return fChecked;
}
protected boolean isCaught() {
return fCaught;
}
protected boolean isUncaught() {
return fUncaught;
}
protected void apply(IJavaExceptionBreakpoint breakpoint) throws CoreException {
super.apply(breakpoint);
breakpoint.setExclusionFilters(fExclusionFilters);
breakpoint.setInclusionFilters(fInclusionFilters);
breakpoint.setCaught(fCaught);
breakpoint.setUncaught(fUncaught);
}
}