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.core.ifeature;
11:
12: import org.eclipse.core.runtime.CoreException;
13: import org.eclipse.pde.core.IIdentifiable;
14:
15: /**
16: * The reference to a plug-in that is part of this feature.
17: */
18: public interface IFeatureEntry extends IFeatureObject, IIdentifiable {
19: String P_OS = "p_os"; //$NON-NLS-1$
20: String P_WS = "p_ws"; //$NON-NLS-1$
21: String P_NL = "p_nl"; //$NON-NLS-1$
22: String P_ARCH = "p_arch"; //$NON-NLS-1$
23: String P_DOWNLOAD_SIZE = "p_download_size"; //$NON-NLS-1$
24: String P_INSTALL_SIZE = "p_install_size"; //$NON-NLS-1$
25:
26: /**
27: * Returns a comma-separated list of the operating systems this plug-in supports.
28: */
29: public String getOS();
30:
31: /**
32: * Returns a comma-separated list of the window systems this plug-in supports.
33: */
34: public String getWS();
35:
36: /**
37: * Returns a comma-separated list of the locales this plug-in supports.
38: */
39: public String getNL();
40:
41: /**
42: * Returns a comma-separated list of the architecture this plug-in supports.
43: */
44: public String getArch();
45:
46: /**
47: * Returns estimated download size of this plug-in.
48: */
49: public long getDownloadSize();
50:
51: /**
52: * Returns estimated size of this plug-in when installed.
53: */
54: public long getInstallSize();
55:
56: /**
57: * Sets a comma-separated list of the operating systems this plug-in supports.
58: */
59: public void setOS(String os) throws CoreException;
60:
61: /**
62: * Sets a comma-separated list of the window systems this plug-in supports.
63: */
64: public void setWS(String ws) throws CoreException;
65:
66: /**
67: * Sets a comma-separated list of the locales this plug-in supports.
68: */
69: public void setNL(String nl) throws CoreException;
70:
71: /**
72: * Sets a comma-separated list of the archiecture this plug-in supports.
73: */
74: public void setArch(String arch) throws CoreException;
75:
76: /**
77: * Sets the estimated download size of this plug-in.
78: */
79: public void setDownloadSize(long size) throws CoreException;
80:
81: /**
82: * Sets the estimated size of this plug-in when installed.
83: */
84: public void setInstallSize(long size) throws CoreException;
85: }
|