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