001: /*******************************************************************************
002: * Copyright (c) 2000, 2005 IBM Corporation and others.
003: * All rights reserved. This program and the accompanying materials
004: * are made available under the terms of the Eclipse Public License v1.0
005: * which accompanies this distribution, and is available at
006: * http://www.eclipse.org/legal/epl-v10.html
007: *
008: * Contributors:
009: * IBM Corporation - initial API and implementation
010: *******************************************************************************/package org.eclipse.pde.internal.ui.wizards.plugin;
011:
012: import org.eclipse.pde.ui.IFieldData;
013: import org.eclipse.ui.IWorkingSet;
014:
015: public abstract class AbstractFieldData implements IFieldData {
016:
017: private String fId;
018: private String fVersion;
019: private String fName;
020: private String fProvider;
021: private boolean fLegacy;
022: private String fLibraryName;
023: private String fSourceFolderName;
024: private String fOutputFolderName;
025: private boolean fHasBundleStructure;
026: private boolean fSimple;
027: private String fTargetVersion = "3.1"; //$NON-NLS-1$
028: private String fFramework;
029: private IWorkingSet[] fWorkingSets;
030:
031: /* (non-Javadoc)
032: * @see org.eclipse.pde.ui.IFieldData2#getId()
033: */
034: public String getId() {
035: return fId;
036: }
037:
038: /* (non-Javadoc)
039: * @see org.eclipse.pde.ui.IFieldData2#getVersion()
040: */
041: public String getVersion() {
042: return fVersion;
043: }
044:
045: /* (non-Javadoc)
046: * @see org.eclipse.pde.ui.IFieldData2#getName()
047: */
048: public String getName() {
049: return fName;
050: }
051:
052: /* (non-Javadoc)
053: * @see org.eclipse.pde.ui.IFieldData2#getProvider()
054: */
055: public String getProvider() {
056: return fProvider;
057: }
058:
059: public boolean isLegacy() {
060: return fLegacy;
061: }
062:
063: /* (non-Javadoc)
064: * @see org.eclipse.pde.ui.IFieldData2#getLibraryName()
065: */
066: public String getLibraryName() {
067: return fLibraryName;
068: }
069:
070: /* (non-Javadoc)
071: * @see org.eclipse.pde.ui.IFieldData2#getSourceFolderName()
072: */
073: public String getSourceFolderName() {
074: return fSourceFolderName;
075: }
076:
077: /* (non-Javadoc)
078: * @see org.eclipse.pde.ui.IFieldData2#getOutputFolderName()
079: */
080: public String getOutputFolderName() {
081: return fOutputFolderName;
082: }
083:
084: /* (non-Javadoc)
085: * @see org.eclipse.pde.ui.IFieldData2#hasBundleStructure()
086: */
087: public boolean hasBundleStructure() {
088: return fHasBundleStructure;
089: }
090:
091: /* (non-Javadoc)
092: * @see org.eclipse.pde.ui.IFieldData2#isSimple()
093: */
094: public boolean isSimple() {
095: return fSimple;
096: }
097:
098: public void setId(String id) {
099: fId = id;
100: }
101:
102: public void setName(String name) {
103: fName = name;
104: }
105:
106: public void setProvider(String provider) {
107: fProvider = provider;
108: }
109:
110: public void setVersion(String version) {
111: fVersion = version;
112: }
113:
114: public void setLegacy(boolean isLegacy) {
115: fLegacy = isLegacy;
116: }
117:
118: public void setLibraryName(String name) {
119: fLibraryName = name;
120: }
121:
122: public void setSourceFolderName(String name) {
123: fSourceFolderName = name;
124: }
125:
126: public void setOutputFolderName(String name) {
127: fOutputFolderName = name;
128: }
129:
130: public void setHasBundleStructure(boolean isBundle) {
131: fHasBundleStructure = isBundle;
132: }
133:
134: public void setSimple(boolean simple) {
135: fSimple = simple;
136: }
137:
138: /* (non-Javadoc)
139: * @see org.eclipse.pde.ui.IFieldData#getTargetVersion()
140: */
141: public String getTargetVersion() {
142: return fTargetVersion;
143: }
144:
145: public void setTargetVersion(String version) {
146: fTargetVersion = version;
147: }
148:
149: public String getOSGiFramework() {
150: return fFramework;
151: }
152:
153: public void setOSGiFramework(String framework) {
154: fFramework = framework;
155: }
156:
157: public IWorkingSet[] getWorkingSets() {
158: return fWorkingSets;
159: }
160:
161: public void setWorkingSets(IWorkingSet[] workingSets) {
162: fWorkingSets = workingSets;
163: }
164:
165: }
|