KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > eclipse > pde > internal > core > plugin > ExternalPluginModel


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.plugin;
12
13 import org.eclipse.pde.core.plugin.IPlugin;
14 import org.eclipse.pde.core.plugin.IPluginBase;
15 import org.eclipse.pde.core.plugin.IPluginModel;
16
17 public class ExternalPluginModel extends ExternalPluginModelBase implements
18         IPluginModel {
19
20     private static final long serialVersionUID = 1L;
21
22     public IPluginBase createPluginBase() {
23         PluginBase base = new Plugin();
24         base.setModel(this);
25         return base;
26     }
27
28     public IPlugin getPlugin() {
29         return (IPlugin) getPluginBase();
30     }
31
32 }
33
Popular Tags