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.core.plugin;
11:
12: /**
13: * This type of model is created by parsing the manifest file.
14: * If the file is a workspace resource, it will be
15: * available as the underlying resource of the model.
16: * The model may be read-only or editable.
17: * It will also make a reference to the build properties
18: * model when created. The reference will be of the
19: * same type as the model itself: if the model is
20: * editable, it will attempt to obtain an exclusive
21: * editable copy of build.properties model.
22: * <p>
23: * The fragment model can be disabled. Disabling the
24: * model will not change its data. Users of the
25: * model will have to decide if the disabled state
26: * if of any importance to them or not.
27: * <p>
28: * The model is capable of notifying listeners
29: * about changes. An attempt to change a read-only
30: * model will result in a CoreException.
31: */
32: public interface IFragmentModel extends IPluginModelBase {
33: /**
34: * Returns a top-level model object.
35: *
36: * @return a root model instance
37: */
38: IFragment getFragment();
39: }
|