@Override public void stop(BundleContext context) throws Exception { if (fSharedTextColors != null) { fSharedTextColors.dispose(); fSharedTextColors= null; } if (fThemeListener != null) { if (PlatformUI.isWorkbenchRunning()) PlatformUI.getWorkbench().getThemeManager().removePropertyChangeListener(fThemeListener); fThemeListener= null; } fAnnotationTypeLookup= null; fAnnotationPreferenceLookup= null; fAnnotationTypeHierarchy= null; fMarkerAnnotationPreferences= null; fHyperlinkDetectorRegistry= null; super.stop(context); }
public void stop(BundleContext context) throws Exception { if (fSharedTextColors != null) { fSharedTextColors.dispose(); fSharedTextColors= null; } if (fThemeListener != null) { if (PlatformUI.isWorkbenchRunning()) PlatformUI.getWorkbench().getThemeManager().removePropertyChangeListener(fThemeListener); fThemeListener= null; } fAnnotationTypeLookup= null; fAnnotationPreferenceLookup= null; fAnnotationTypeHierarchy= null; fMarkerAnnotationPreferences= null; fHyperlinkDetectorRegistry= null; super.stop(context); }