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.bundle;
11:
12: import org.eclipse.core.resources.IFile;
13: import org.eclipse.pde.core.plugin.IFragment;
14: import org.eclipse.pde.core.plugin.IFragmentModel;
15: import org.eclipse.pde.core.plugin.IPluginBase;
16:
17: public class WorkspaceBundleFragmentModel extends
18: WorkspaceBundlePluginModelBase implements IFragmentModel {
19:
20: private static final long serialVersionUID = 1L;
21:
22: public WorkspaceBundleFragmentModel(IFile manifestFile,
23: IFile pluginFile) {
24: super (manifestFile, pluginFile);
25: }
26:
27: public IPluginBase createPluginBase() {
28: BundleFragment frag = new BundleFragment();
29: frag.setModel(this );
30: return frag;
31: }
32:
33: public IFragment getFragment() {
34: return (IFragment) getPluginBase();
35: }
36:
37: }
|