KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > eclipse > pde > internal > ui > model > plugin > PluginModel


1 /*******************************************************************************
2  * Copyright (c) 2000, 2005 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.ui.model.plugin;
12
13 import org.eclipse.jface.text.*;
14 import org.eclipse.osgi.service.resolver.*;
15 import org.eclipse.pde.core.plugin.*;
16
17 public class PluginModel extends PluginModelBase implements IPluginModel {
18     
19     public PluginModel(IDocument document, boolean isReconciling) {
20         super(document, isReconciling);
21     }
22
23     /* (non-Javadoc)
24      * @see org.eclipse.pde.core.plugin.IPluginModel#getPlugin()
25      */

26     public IPlugin getPlugin() {
27         return (IPlugin)getPluginBase();
28     }
29     
30     /* (non-Javadoc)
31      * @see org.eclipse.pde.core.plugin.IPluginModelBase#isFragmentModel()
32      */

33     public boolean isFragmentModel() {
34         return false;
35     }
36
37     /* (non-Javadoc)
38      * @see org.eclipse.pde.core.plugin.IPluginModelBase#getBundleDescription()
39      */

40     public BundleDescription getBundleDescription() {
41         return null;
42     }
43
44     /* (non-Javadoc)
45      * @see org.eclipse.pde.core.plugin.IPluginModelBase#setBundleDescription(org.eclipse.osgi.service.resolver.BundleDescription)
46      */

47     public void setBundleDescription(BundleDescription description) {
48     }
49     
50 }
51
Popular Tags