KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > eclipse > pde > internal > ui > wizards > plugin > AbstractFieldData


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.pde.internal.ui.wizards.plugin;
12
13 import org.eclipse.pde.ui.IFieldData;
14
15 public abstract class AbstractFieldData implements IFieldData {
16     
17     private String JavaDoc fId;
18     private String JavaDoc fVersion;
19     private String JavaDoc fName;
20     private String JavaDoc fProvider;
21     private boolean fLegacy;
22     private String JavaDoc fLibraryName;
23     private String JavaDoc fSourceFolderName;
24     private String JavaDoc fOutputFolderName;
25     private boolean fHasBundleStructure;
26     private boolean fSimple;
27     private String JavaDoc fTargetVersion = "3.1"; //$NON-NLS-1$
28
private String JavaDoc fFramework;
29
30     /* (non-Javadoc)
31      * @see org.eclipse.pde.ui.IFieldData2#getId()
32      */

33     public String JavaDoc getId() {
34         return fId;
35     }
36     /* (non-Javadoc)
37      * @see org.eclipse.pde.ui.IFieldData2#getVersion()
38      */

39     public String JavaDoc getVersion() {
40         return fVersion;
41     }
42     /* (non-Javadoc)
43      * @see org.eclipse.pde.ui.IFieldData2#getName()
44      */

45     public String JavaDoc getName() {
46         return fName;
47     }
48     /* (non-Javadoc)
49      * @see org.eclipse.pde.ui.IFieldData2#getProvider()
50      */

51     public String JavaDoc getProvider() {
52         return fProvider;
53     }
54     
55     public boolean isLegacy() {
56         return fLegacy;
57     }
58     
59     /* (non-Javadoc)
60      * @see org.eclipse.pde.ui.IFieldData2#getLibraryName()
61      */

62     public String JavaDoc getLibraryName() {
63         return fLibraryName;
64     }
65     
66     /* (non-Javadoc)
67      * @see org.eclipse.pde.ui.IFieldData2#getSourceFolderName()
68      */

69     public String JavaDoc getSourceFolderName() {
70         return fSourceFolderName;
71     }
72     
73     /* (non-Javadoc)
74      * @see org.eclipse.pde.ui.IFieldData2#getOutputFolderName()
75      */

76     public String JavaDoc getOutputFolderName() {
77         return fOutputFolderName;
78     }
79     
80     /* (non-Javadoc)
81      * @see org.eclipse.pde.ui.IFieldData2#hasBundleStructure()
82      */

83     public boolean hasBundleStructure() {
84         return fHasBundleStructure;
85     }
86     
87     /* (non-Javadoc)
88      * @see org.eclipse.pde.ui.IFieldData2#isSimple()
89      */

90     public boolean isSimple() {
91         return fSimple;
92     }
93     
94     public void setId(String JavaDoc id) {
95         fId = id;
96     }
97     
98     public void setName(String JavaDoc name) {
99         fName = name;
100     }
101     
102     public void setProvider(String JavaDoc provider) {
103         fProvider = provider;
104     }
105     
106     public void setVersion(String JavaDoc version) {
107         fVersion = version;
108     }
109     
110     public void setLegacy(boolean isLegacy) {
111         fLegacy = isLegacy;
112     }
113     
114     public void setLibraryName(String JavaDoc name) {
115         fLibraryName = name;
116     }
117     
118     public void setSourceFolderName(String JavaDoc name) {
119         fSourceFolderName = name;
120     }
121     
122     public void setOutputFolderName(String JavaDoc name) {
123         fOutputFolderName = name;
124     }
125     
126     public void setHasBundleStructure(boolean isBundle) {
127         fHasBundleStructure = isBundle;
128     }
129     
130     public void setSimple(boolean simple) {
131         fSimple = simple;
132     }
133     
134     /* (non-Javadoc)
135      * @see org.eclipse.pde.ui.IFieldData#getTargetVersion()
136      */

137     public String JavaDoc getTargetVersion() {
138         return fTargetVersion;
139     }
140     
141     public void setTargetVersion(String JavaDoc version) {
142         fTargetVersion = version;
143     }
144     
145     public String JavaDoc getOSGiFramework() {
146         return fFramework;
147     }
148     
149     public void setOSGiFramework(String JavaDoc framework) {
150         fFramework = framework;
151     }
152     
153 }
154
Popular Tags