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.pde.core.IModel;
13: import org.eclipse.pde.core.IModelChangeProvider;
14:
15: /**
16: * This model type is designed to hold data loaded from
17: * "feature.xml" file of an Eclipse feature.
18: */
19: public interface IFeatureModel extends IModel, IModelChangeProvider {
20: /**
21: * Returns the top-level model object.
22: *
23: * @return top-level model object of the feature model
24: */
25: public IFeature getFeature();
26:
27: /**
28: * Returns the factory that should be used
29: * to create new instances of model objects.
30: *
31: * @return feature model factory
32: */
33: IFeatureModelFactory getFactory();
34:
35: /**
36: * Returns install location of the feature.xml file
37: * in case of external files.
38: *
39: * @return install location for external files,
40: * or <samp>null</samp> for models based on
41: * workspace resources.
42: */
43: public String getInstallLocation();
44:
45: /**
46: * Tests whether this model is enabled.
47: *
48: * @return <samp>true</samp> if the model is enabled
49: */
50: public boolean isEnabled();
51:
52: /**
53: * Enables or disables this model.
54: *
55: * @param enabled the new enable state
56: */
57: public void setEnabled(boolean enabled);
58: }
|