KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > eclipse > core > internal > expressions > ExpressionPlugin


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.core.internal.expressions;
12
13 import org.osgi.framework.BundleContext;
14
15 import org.eclipse.core.runtime.Plugin;
16
17 public class ExpressionPlugin extends Plugin {
18     
19     private static ExpressionPlugin fgDefault;
20     
21     private BundleContext fBundleContext;
22     
23     public ExpressionPlugin() {
24         fgDefault= this;
25     }
26
27     public static ExpressionPlugin getDefault() {
28         return fgDefault;
29     }
30     
31     public static String JavaDoc getPluginId() {
32         return "org.eclipse.core.expressions"; //$NON-NLS-1$
33
}
34     
35     /**
36      * {@inheritDoc}
37      */

38     public void start(BundleContext context) throws Exception JavaDoc {
39         super.start(context);
40         fBundleContext= context;
41     }
42     
43     /**
44      * {@inheritDoc}
45      */

46     public void stop(BundleContext context) throws Exception JavaDoc {
47         super.stop(context);
48     }
49     
50     public BundleContext getBundleContext() {
51         return fBundleContext;
52     }
53 }
54
Popular Tags