01: /*******************************************************************************
02: * Copyright (c) 2000, 2007 IBM Corporation and others.
03: * All rights reserved. This program and the accompanying materials
04: * are made available under the terms of the Eclipse Public License v1.0
05: * which accompanies this distribution, and is available at
06: * http://www.eclipse.org/legal/epl-v10.html
07: *
08: * Contributors:
09: * IBM Corporation - initial API and implementation
10: *******************************************************************************/package org.eclipse.jdt.internal.ui.search;
11:
12: import org.eclipse.core.runtime.CoreException;
13:
14: import org.eclipse.jdt.core.ITypeRoot;
15:
16: public class ExceptionOccurrencesGroupKey extends JavaElementLine {
17: private boolean fIsException;
18:
19: /**
20: * @param element either an ICompilationUnit or an IClassFile
21: * @param lineNumber the line number
22: * @param lineStartOffset the line start offset
23: * @param isException specifies if the occurrence represents the thrown exception declaration
24: * @throws CoreException thrown when accessing of the buffer failed
25: */
26: public ExceptionOccurrencesGroupKey(ITypeRoot element,
27: int lineNumber, int lineStartOffset, boolean isException)
28: throws CoreException {
29: super (element, lineNumber, lineStartOffset);
30: fIsException = isException;
31: }
32:
33: public boolean isException() {
34: return fIsException;
35: }
36:
37: public void setException(boolean isException) {
38: fIsException = isException;
39: }
40: }
|