KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > eclipse > pde > internal > core > bundle > BundleFragmentModel


1 /*******************************************************************************
2  * Copyright (c) 2003, 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.bundle;
12
13 import org.eclipse.pde.core.plugin.IFragment;
14 import org.eclipse.pde.core.plugin.IPluginBase;
15 import org.eclipse.pde.internal.core.ibundle.IBundleFragmentModel;
16
17 public class BundleFragmentModel
18     extends BundlePluginModelBase
19     implements IBundleFragmentModel {
20     
21     private static final long serialVersionUID = 1L;
22
23     public IPluginBase createPluginBase() {
24         BundleFragment bfragment = new BundleFragment();
25         bfragment.setModel(this);
26         return bfragment;
27     }
28
29     /* (non-Javadoc)
30      * @see org.eclipse.pde.core.plugin.IFragmentModel#getFragment()
31      */

32     public IFragment getFragment() {
33         return (IFragment)getPluginBase();
34     }
35
36     /* (non-Javadoc)
37      * @see org.eclipse.pde.core.plugin.IPluginModelBase#isFragmentModel()
38      */

39     public boolean isFragmentModel() {
40         return true;
41     }
42 }
43
Popular Tags