KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > eclipse > ant > internal > ui > model > AntModelChangeEvent


1 /*******************************************************************************
2  * Copyright (c) 2000, 2005 IBM Corporation and others.
3  * All rights reserved. This program and the accompanying materials
4  * are made available under the terms of the Eclipse Public License v1.0
5  * which accompanies this distribution, and is available at
6  * http://www.eclipse.org/legal/epl-v10.html
7  *
8  * Contributors:
9  * IBM Corporation - initial API and implementation
10  *******************************************************************************/

11
12 package org.eclipse.ant.internal.ui.model;
13
14
15 public class AntModelChangeEvent {
16     
17     private IAntModel fModel;
18     private boolean fPreferenceChange= false;
19     
20     public AntModelChangeEvent(IAntModel model) {
21         fModel= model;
22     }
23     
24     public AntModelChangeEvent(IAntModel model, boolean preferenceChange) {
25         fModel= model;
26         fPreferenceChange= preferenceChange;
27     }
28     
29     public IAntModel getModel() {
30         return fModel;
31     }
32     
33     /**
34      * Returns whether the Ant model has changed as a result of a preference change.
35      * @return whether the model has changed from a preference change.
36      */

37     public boolean isPreferenceChange() {
38         return fPreferenceChange;
39     }
40 }
41
Popular Tags