KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > eclipse > core > internal > events > BuilderPersistentInfo


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 package org.eclipse.core.internal.events;
12
13 import org.eclipse.core.internal.resources.ICoreConstants;
14 import org.eclipse.core.internal.watson.ElementTree;
15 import org.eclipse.core.resources.IProject;
16
17 public class BuilderPersistentInfo {
18     protected String JavaDoc builderName;
19     /**
20      * Index of this builder in the build spec. A value of -1 indicates
21      * that this index is unknown (it was not serialized in older workspace versions).
22      */

23     private int buildSpecIndex = -1;
24     protected IProject[] interestingProjects = ICoreConstants.EMPTY_PROJECT_ARRAY;
25     protected ElementTree lastBuildTree;
26     protected String JavaDoc projectName;
27
28     public BuilderPersistentInfo(String JavaDoc projectName, String JavaDoc builderName, int buildSpecIndex) {
29         this.projectName = projectName;
30         this.builderName = builderName;
31         this.buildSpecIndex = buildSpecIndex;
32     }
33     public String JavaDoc getBuilderName() {
34         return builderName;
35     }
36
37     public int getBuildSpecIndex() {
38         return buildSpecIndex;
39     }
40
41     public IProject[] getInterestingProjects() {
42         return interestingProjects;
43     }
44
45     public ElementTree getLastBuiltTree() {
46         return lastBuildTree;
47     }
48
49     public String JavaDoc getProjectName() {
50         return projectName;
51     }
52
53     public void setInterestingProjects(IProject[] projects) {
54         interestingProjects = projects;
55     }
56
57     public void setLastBuildTree(ElementTree tree) {
58         lastBuildTree = tree;
59     }
60 }
61
Popular Tags