X-Git-Url: http://git.phpeclipse.com diff --git a/net.sourceforge.phpeclipse/src/net/sourceforge/phpeclipse/phpeditor/CompilationUnitAnnotationModelEvent.java b/net.sourceforge.phpeclipse/src/net/sourceforge/phpeclipse/phpeditor/CompilationUnitAnnotationModelEvent.java new file mode 100644 index 0000000..069e68b --- /dev/null +++ b/net.sourceforge.phpeclipse/src/net/sourceforge/phpeclipse/phpeditor/CompilationUnitAnnotationModelEvent.java @@ -0,0 +1,57 @@ +/******************************************************************************* + * Copyright (c) 2000, 2003 IBM Corporation and others. + * All rights reserved. This program and the accompanying materials + * are made available under the terms of the Common Public License v1.0 + * which accompanies this distribution, and is available at + * http://www.eclipse.org/legal/cpl-v10.html + * + * Contributors: + * IBM Corporation - initial API and implementation + *******************************************************************************/ +package net.sourceforge.phpeclipse.phpeditor; + + + +import org.eclipse.core.resources.IResource; + +import org.eclipse.jface.text.source.AnnotationModelEvent; +import org.eclipse.jface.text.source.IAnnotationModel; + +/** + * Event sent out by changes of the compilation unit annotation model. + */ +public class CompilationUnitAnnotationModelEvent extends AnnotationModelEvent { + + private boolean fIncludesMarkerAnnotationChanges; + private IResource fUnderlyingResource; + + + /** + * Constructor for CompilationUnitAnnotationModelEvent. + * @param model + * @param underlyingResource The annotation model's underlying resource + * @param includesMarkerAnnotationChanges + */ + public CompilationUnitAnnotationModelEvent(IAnnotationModel model, IResource underlyingResource, boolean includesMarkerAnnotationChanges) { + super(model); + fIncludesMarkerAnnotationChanges= includesMarkerAnnotationChanges; + fUnderlyingResource= underlyingResource; + } + + /** + * Returns whether the change included marker annotations. + * + * @return true if the change included marker annotations + */ + public boolean includesMarkerAnnotationChanges() { + return fIncludesMarkerAnnotationChanges; + } + + /** + * Returns the annotation model's underlying resource + */ + public IResource getUnderlyingResource() { + return fUnderlyingResource; + } + +}