KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > eclipse > jdt > apt > core > internal > generatedfile > FileGenerationResult


1 /*******************************************************************************
2  * Copyright (c) 2005, 2007 BEA Systems, Inc.
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  * mkaufman@bea.com - initial API and implementation
10  *******************************************************************************/

11 package org.eclipse.jdt.apt.core.internal.generatedfile;
12
13 import org.eclipse.core.resources.IFile;
14
15 /**
16  * Simple container class for holding the result of file generation.<P>
17  *
18  * It contains the generated file, as well as a boolean indicating if it
19  * has changed since it was last seen. This is used to force compilation
20  * of the file later.
21  */

22 public class FileGenerationResult {
23
24     private final IFile file;
25     private final boolean modified;
26     
27     public FileGenerationResult(final IFile file, final boolean modified) {
28         this.file = file;
29         this.modified = modified;
30     }
31     
32     public IFile getFile() {
33         return file;
34     }
35     
36     public boolean isModified() {
37         return modified;
38     }
39 }
40
Popular Tags