01: /*******************************************************************************
02: * Copyright (c) 2005, 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.itarget;
11:
12: public interface ITarget extends ITargetObject {
13:
14: final String P_NAME = "name"; //$NON-NLS-1$
15: final String P_ALL_PLUGINS = "useAllPlugins"; //$NON-NLS-1$
16:
17: void reset();
18:
19: String getName();
20:
21: void setName(String name);
22:
23: IArgumentsInfo getArguments();
24:
25: void setArguments(IArgumentsInfo info);
26:
27: IEnvironmentInfo getEnvironment();
28:
29: void setEnvironment(IEnvironmentInfo info);
30:
31: ITargetJRE getTargetJREInfo();
32:
33: void setTargetJREInfo(ITargetJRE info);
34:
35: ILocationInfo getLocationInfo();
36:
37: void setImplicitPluginsInfo(IImplicitDependenciesInfo info);
38:
39: IImplicitDependenciesInfo getImplicitPluginsInfo();
40:
41: void setLocationInfo(ILocationInfo info);
42:
43: void addPlugin(ITargetPlugin plugin);
44:
45: void addPlugins(ITargetPlugin[] plugins);
46:
47: void addFeature(ITargetFeature feature);
48:
49: void addFeatures(ITargetFeature features[]);
50:
51: void removePlugin(ITargetPlugin plugin);
52:
53: void removePlugins(ITargetPlugin[] plugins);
54:
55: void removeFeature(ITargetFeature feature);
56:
57: void removeFeatures(ITargetFeature[] features);
58:
59: ITargetPlugin[] getPlugins();
60:
61: ITargetFeature[] getFeatures();
62:
63: boolean containsPlugin(String id);
64:
65: boolean containsFeature(String id);
66:
67: boolean useAllPlugins();
68:
69: void setUseAllPlugins(boolean value);
70:
71: IAdditionalLocation[] getAdditionalDirectories();
72:
73: void removeAdditionalDirectories(IAdditionalLocation[] dirs);
74:
75: void addAdditionalDirectories(IAdditionalLocation[] dirs);
76:
77: void setDescription(String desc);
78:
79: String getDescription();
80:
81: boolean isValidFeatureObject(Object featureObj);
82:
83: }
|