KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > eclipse > ant > internal > ui > editor > outline > DocumentModelChangeEvent


1 /*******************************************************************************
2  * Copyright (c) 2000, 2004 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
12 package org.eclipse.ant.internal.ui.editor.outline;
13
14 /**
15  * DocumentModelChangeEvent.java
16  */

17 public class DocumentModelChangeEvent {
18     
19     private AntModel fModel;
20     private boolean fPreferenceChange= false;
21     
22     DocumentModelChangeEvent(AntModel model) {
23         fModel= model;
24     }
25     
26     DocumentModelChangeEvent(AntModel model, boolean preferenceChange) {
27         fModel= model;
28         fPreferenceChange= preferenceChange;
29     }
30     
31     public AntModel getModel() {
32         return fModel;
33     }
34     
35     /**
36      * Returns whether the document model has changed as a result of a preference change.
37      * @return whether the model has changed from a preference change.
38      */

39     public boolean isPreferenceChange() {
40         return fPreferenceChange;
41     }
42 }
43
Popular Tags