KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > eclipse > jdt > internal > debug > core > refactoring > ExceptionBreakpointChange


1 /*******************************************************************************
2  * Copyright (c) 2005 IBM Corporation and others.
3  * All rights reserved. This program and the accompanying materials
4  * are made available under the terms of the Eclipse Public License v1.0
5  * which accompanies this distribution, and is available at
6  * http://www.eclipse.org/legal/epl-v10.html
7  *
8  * Contributors:
9  * IBM Corporation - initial API and implementation
10  *******************************************************************************/

11 package org.eclipse.jdt.internal.debug.core.refactoring;
12
13 import org.eclipse.core.runtime.CoreException;
14 import org.eclipse.jdt.debug.core.IJavaExceptionBreakpoint;
15
16 /**
17  * @since 3.2
18  *
19  */

20 public abstract class ExceptionBreakpointChange extends BreakpointChange {
21     
22     private String JavaDoc[] fExclusionFilters, fInclusionFilters;
23     boolean fCaught, fUncaught, fChecked;
24     
25     public ExceptionBreakpointChange(IJavaExceptionBreakpoint breakpoint) throws CoreException {
26         super(breakpoint);
27         fExclusionFilters = breakpoint.getExclusionFilters();
28         fInclusionFilters = breakpoint.getInclusionFilters();
29         fCaught = breakpoint.isCaught();
30         fUncaught = breakpoint.isUncaught();
31         fChecked = breakpoint.isChecked();
32     }
33     
34     protected boolean isChecked() {
35         return fChecked;
36     }
37     
38     protected boolean isCaught() {
39         return fCaught;
40     }
41     
42     protected boolean isUncaught() {
43         return fUncaught;
44     }
45     
46     protected void apply(IJavaExceptionBreakpoint breakpoint) throws CoreException {
47         super.apply(breakpoint);
48         breakpoint.setExclusionFilters(fExclusionFilters);
49         breakpoint.setInclusionFilters(fInclusionFilters);
50         breakpoint.setCaught(fCaught);
51         breakpoint.setUncaught(fUncaught);
52     }
53
54 }
55
Popular Tags