- plugin = this;
- bundleContext = context;
-
- Platform.addLogListener(this);
- log.debug("Eclipse logging now directed to standard logging");
-
- // Make sure that the Spring OSGi extender is started
- Bundle osgiExtBundle = Platform.getBundle(SPRING_OSGI_EXTENDER);
- if (osgiExtBundle != null)
- osgiExtBundle.start();
- else
- log.error("Spring OSGi Extender not found");
-
+ // weirdly, the start method is called twice...
+ if (plugin == null) {
+ plugin = this;
+ Platform.addLogListener(this);
+ log.debug("Eclipse logging now directed to standard logging");
+ }