01: /*******************************************************************************
02: * Copyright (c) 2000, 2006 IBM Corporation and others.
03: * All rights reserved. This program and the accompanying materials
04: * are made available under the terms of the Eclipse Public License v1.0
05: * which accompanies this distribution, and is available at
06: * http://www.eclipse.org/legal/epl-v10.html
07: *
08: * Contributors:
09: * IBM Corporation - initial API and implementation
10: *******************************************************************************/package org.eclipse.pde.internal.ui.wizards.feature;
11:
12: import org.eclipse.jdt.ui.PreferenceConstants;
13:
14: public class FeatureData {
15:
16: public String id;
17: public String name;
18: public String version;
19: public String provider;
20: public String library;
21: public boolean isPatch;
22: public String featureToPatchId;
23: public String featureToPatchVersion;
24:
25: public FeatureData() {
26: library = null;
27: isPatch = false;
28: }
29:
30: public boolean hasCustomHandler() {
31: return library != null && library.length() > 0;
32: }
33:
34: public String getSourceFolderName() {
35: return PreferenceConstants.getPreferenceStore().getString(
36: PreferenceConstants.SRCBIN_SRCNAME);
37: }
38:
39: public String getJavaBuildFolderName() {
40: return PreferenceConstants.getPreferenceStore().getString(
41: PreferenceConstants.SRCBIN_BINNAME);
42: }
43: }
|