KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > eclipse > pde > internal > core > ibundle > IBundleModel


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 package org.eclipse.pde.internal.core.ibundle;
12
13 import org.eclipse.pde.core.IModel;
14 import org.eclipse.pde.core.IModelChangeProvider;
15 /**
16  * This model is created from the "META-INF/MANIFEST.MF" file that represents
17  * the plug-in manifest in Eclipse 3.0 OSGi format.
18  * <p>
19  * If this model is editable, isEditable() will return true and the model
20  * instance will implement IEditable interface. The model is capable of
21  * providing change notification for the registered listeners.
22  *
23  * @since 3.0
24  */

25 public interface IBundleModel extends IModel, IModelChangeProvider {
26     /**
27      * Returns the top-level model object of this model.
28      *
29      * @return an object containing the manifest headers
30      */

31     IBundle getBundle();
32     /**
33      * Returns the location of the file used to create the model.
34      *
35      * @return the location of the manifest file or <samp>null </samp> if the
36      * file is in a workspace.
37      */

38     public String JavaDoc getInstallLocation();
39     /**
40      * Tests whether this is a model of a fragment bundle.
41      *
42      * @return <code>true</code> if this is a fragment model,
43      * <code>false</code> otherwise.
44      */

45     public boolean isFragmentModel();
46     
47     public IBundleModelFactory getFactory();
48     
49 }
50
Popular Tags