Search in sources :

Example 1 with Activator

use of org.eclipse.egit.core.Activator in project egit by eclipse.

the class GitSubscriberMergeContext method dispose.

@Override
public void dispose() {
    Activator activator = Activator.getDefault();
    if (activator == null)
        return;
    IndexDiffCache indexDiffCache = activator.getIndexDiffCache();
    if (indexDiffCache != null)
        indexDiffCache.removeIndexDiffChangedListener(indexChangeListener);
    ResourcesPlugin.getWorkspace().removeResourceChangeListener(resourceChangeListener);
    subscriber.dispose();
    super.dispose();
}
Also used : Activator(org.eclipse.egit.core.Activator) IndexDiffCache(org.eclipse.egit.core.internal.indexdiff.IndexDiffCache)

Aggregations

Activator (org.eclipse.egit.core.Activator)1 IndexDiffCache (org.eclipse.egit.core.internal.indexdiff.IndexDiffCache)1