1 /*******************************************************************************
2 * Copyright (c) 2000, 2003 IBM Corporation and others.
3 * All rights reserved. This program and the accompanying materials
4 * are made available under the terms of the Common Public License v1.0
5 * which accompanies this distribution, and is available at
6 * http://www.eclipse.org/legal/cpl-v10.html
9 * IBM Corporation - initial API and implementation
10 *******************************************************************************/
11 package net.sourceforge.phpeclipse.phpeditor;
15 import org.eclipse.core.resources.IResource;
17 import org.eclipse.jface.text.source.AnnotationModelEvent;
18 import org.eclipse.jface.text.source.IAnnotationModel;
21 * Event sent out by changes of the compilation unit annotation model.
23 public class CompilationUnitAnnotationModelEvent extends AnnotationModelEvent {
25 private boolean fIncludesMarkerAnnotationChanges;
26 private IResource fUnderlyingResource;
30 * Constructor for CompilationUnitAnnotationModelEvent.
32 * @param underlyingResource The annotation model's underlying resource
33 * @param includesMarkerAnnotationChanges
35 public CompilationUnitAnnotationModelEvent(IAnnotationModel model, IResource underlyingResource, boolean includesMarkerAnnotationChanges) {
37 fIncludesMarkerAnnotationChanges= includesMarkerAnnotationChanges;
38 fUnderlyingResource= underlyingResource;
42 * Returns whether the change included marker annotations.
44 * @return <code>true</code> if the change included marker annotations
46 public boolean includesMarkerAnnotationChanges() {
47 return fIncludesMarkerAnnotationChanges;
51 * Returns the annotation model's underlying resource
53 public IResource getUnderlyingResource() {
54 return fUnderlyingResource;