KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > eclipse > pde > internal > ui > wizards > feature > FeatureData


1 /*******************************************************************************
2  * Copyright (c) 2000, 2006 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
12 package org.eclipse.pde.internal.ui.wizards.feature;
13
14 import org.eclipse.jdt.ui.PreferenceConstants;
15
16 public class FeatureData {
17
18     public String JavaDoc id;
19     public String JavaDoc name;
20     public String JavaDoc version;
21     public String JavaDoc provider;
22     public String JavaDoc library;
23     public boolean isPatch;
24     public String JavaDoc featureToPatchId;
25     public String JavaDoc featureToPatchVersion;
26
27     public FeatureData() {
28         library = null;
29         isPatch = false;
30     }
31
32     public boolean hasCustomHandler() {
33         return library != null && library.length() > 0;
34     }
35     
36     public String JavaDoc getSourceFolderName() {
37         return PreferenceConstants.getPreferenceStore().getString(
38                 PreferenceConstants.SRCBIN_SRCNAME);
39     }
40
41     public String JavaDoc getJavaBuildFolderName() {
42         return PreferenceConstants.getPreferenceStore().getString(
43                 PreferenceConstants.SRCBIN_BINNAME);
44     }
45 }
46
Popular Tags