KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > eclipse > pde > internal > core > text > 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.core.text.plugin;
12
13 import org.eclipse.jface.text.IDocument;
14 import org.eclipse.osgi.service.resolver.BundleDescription;
15 import org.eclipse.pde.core.plugin.IPlugin;
16 import org.eclipse.pde.core.plugin.IPluginModel;
17
18 public class PluginModel extends PluginModelBase implements IPluginModel {
19     
20     public PluginModel(IDocument document, boolean isReconciling) {
21         super(document, isReconciling);
22     }
23
24     /* (non-Javadoc)
25      * @see org.eclipse.pde.core.plugin.IPluginModel#getPlugin()
26      */

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

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

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

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