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.plugin;
11:
12: import org.eclipse.pde.core.plugin.IFragment;
13: import org.eclipse.pde.core.plugin.IFragmentModel;
14: import org.eclipse.pde.core.plugin.IPluginBase;
15:
16: public class ExternalFragmentModel extends ExternalPluginModelBase
17: implements IFragmentModel {
18:
19: private static final long serialVersionUID = 1L;
20:
21: public IPluginBase createPluginBase() {
22: PluginBase base = new Fragment(true);
23: base.setModel(this );
24: return base;
25: }
26:
27: public IFragment getFragment() {
28: return (IFragment) getPluginBase();
29: }
30:
31: public boolean isFragmentModel() {
32: return true;
33: }
34:
35: }
|