misc changes in the internal builder
[phpeclipse.git] / net.sourceforge.phpeclipse / src / net / sourceforge / phpeclipse / phpeditor / CompilationUnitAnnotationModelEvent.java
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
7  * 
8  * Contributors:
9  *     IBM Corporation - initial API and implementation
10  *******************************************************************************/
11 package net.sourceforge.phpeclipse.phpeditor;
12
13
14
15 import org.eclipse.core.resources.IResource;
16
17 import org.eclipse.jface.text.source.AnnotationModelEvent;
18 import org.eclipse.jface.text.source.IAnnotationModel;
19
20 /**
21  * Event sent out by changes of the compilation unit annotation model.
22  */
23 public class CompilationUnitAnnotationModelEvent  extends AnnotationModelEvent {
24         
25         private boolean fIncludesMarkerAnnotationChanges;
26         private IResource fUnderlyingResource;
27         
28         
29         /**
30          * Constructor for CompilationUnitAnnotationModelEvent.
31          * @param model
32          * @param underlyingResource The annotation model's underlying resource 
33          * @param includesMarkerAnnotationChanges
34          */
35         public CompilationUnitAnnotationModelEvent(IAnnotationModel model, IResource underlyingResource, boolean includesMarkerAnnotationChanges) {
36                 super(model);
37                 fIncludesMarkerAnnotationChanges= includesMarkerAnnotationChanges;
38                 fUnderlyingResource= underlyingResource;
39         }
40         
41         /**
42          * Returns whether the change included marker annotations.
43          * 
44          * @return <code>true</code> if the change included marker annotations
45          */
46         public boolean includesMarkerAnnotationChanges() {
47                 return fIncludesMarkerAnnotationChanges;
48         }
49         
50         /**
51          * Returns the annotation model's underlying resource
52          */
53         public IResource getUnderlyingResource() {
54                 return fUnderlyingResource;
55         }
56
57 }