]> git.argeo.org Git - lgpl/argeo-commons.git/blob - eclipse/plugins/org.argeo.eclipse.ui/src/main/java/org/argeo/eclipse/spring/AbstractSpringUiPlugin.java
8b4ed7bd480f370d7767015a248bd17ac04ee553
[lgpl/argeo-commons.git] / eclipse / plugins / org.argeo.eclipse.ui / src / main / java / org / argeo / eclipse / spring / AbstractSpringUiPlugin.java
1 package org.argeo.eclipse.spring;
2
3 import org.eclipse.ui.plugin.AbstractUIPlugin;
4 import org.osgi.framework.BundleContext;
5 import org.springframework.context.ApplicationContext;
6
7 public abstract class AbstractSpringUiPlugin extends AbstractUIPlugin {
8 private BundleContext bundleContext;
9
10 @Override
11 public void start(BundleContext context) throws Exception {
12 super.start(context);
13 this.bundleContext = context;
14 }
15
16 @Override
17 public void stop(BundleContext context) throws Exception {
18 super.stop(context);
19 }
20
21 public ApplicationContext getApplicationContext() {
22 return ApplicationContextTracker.getApplicationContext(bundleContext
23 .getBundle());
24 }
25 }