public void dispose() { for (IDOMResourceTracker tracker : trackers) { try { tracker.dispose(); } catch (Exception e) { SDBGDebugCorePlugin.logError(e); } } trackers.clear(); }
protected void initialize(IProject project, IDOMResources domResources) { trackers = new ArrayList<IDOMResourceTracker>(); IExtensionPoint extensionPoint = Platform.getExtensionRegistry() .getExtensionPoint("com.github.sdbg.debug.core.domResourceTracker"); for (IConfigurationElement element : extensionPoint.getConfigurationElements()) { try { IDOMResourceTracker tracker = (IDOMResourceTracker) element.createExecutableExtension("class"); tracker.initialize(project, domResources); trackers.add(tracker); } catch (CoreException e) { SDBGDebugCorePlugin.logError(e); } } }