public synchronized LogEntryCacheUpdateHandler getLogEntryHandler() { LogEntryCacheUpdateHandler handler = (LogEntryCacheUpdateHandler) getConfiguration().getProperty(LOG_ENTRY_HANDLER); if (handler == null) { handler = initializeLogEntryHandler(getConfiguration()); } handler.setListener(this); return handler; }
/* (non-Javadoc) * @see org.eclipse.team.ui.synchronize.views.HierarchicalModelProvider#dispose() */ public void dispose() { // No longer listen for log entry changes // (The handler is disposed with the page) disposed = true; LogEntryCacheUpdateHandler handler = getLogEntryHandler(); if (handler != null) handler.setListener(null); getConfiguration().setProperty(CVSChangeSetCollector.CVS_CHECKED_IN_COLLECTOR, null); logEntryCache = null; super.dispose(); }