@Override public void stop(final BundleContext context) throws Exception { try { if (fToolRegistry != null) { fToolRegistry.dispose(); fToolRegistry = null; } if (fContributionProvider != null) { fContributionProvider.dispose(); fContributionProvider = null; } if (fUIDecoratorsRegistry != null) { fUIDecoratorsRegistry = null; } } finally { gPlugin = null; super.stop(context); } }