Search in sources :

Example 1 with ReportingTypedConfigGetter

use of org.eclipse.egit.core.internal.ReportingTypedConfigGetter in project egit by eclipse.

the class Activator method start.

@Override
public void start(final BundleContext context) throws Exception {
    super.start(context);
    pluginId = context.getBundle().getSymbolicName();
    Config.setTypedConfigGetter(new ReportingTypedConfigGetter());
    // we want to be notified about debug options changes
    Dictionary<String, String> props = new Hashtable<String, String>(4);
    props.put(DebugOptions.LISTENER_SYMBOLICNAME, pluginId);
    context.registerService(DebugOptionsListener.class.getName(), this, props);
    setupSSH(context);
    setupProxy(context);
    repositoryCache = new RepositoryCache();
    indexDiffCache = new IndexDiffCache();
    try {
        GitProjectData.reconfigureWindowCache();
    } catch (RuntimeException e) {
        logError(CoreText.Activator_ReconfigureWindowCacheError, e);
    }
    GitProjectData.attachToWorkspace();
    repositoryUtil = new RepositoryUtil();
    secureStore = new EGitSecureStore(SecurePreferencesFactory.getDefault());
    registerAutoShareProjects();
    registerAutoIgnoreDerivedResources();
    registerPreDeleteResourceChangeListener();
    registerMergeStrategyRegistryListener();
}
Also used : Hashtable(java.util.Hashtable) EGitSecureStore(org.eclipse.egit.core.securestorage.EGitSecureStore) DebugOptionsListener(org.eclipse.osgi.service.debug.DebugOptionsListener) ReportingTypedConfigGetter(org.eclipse.egit.core.internal.ReportingTypedConfigGetter) IndexDiffCache(org.eclipse.egit.core.internal.indexdiff.IndexDiffCache)

Aggregations

Hashtable (java.util.Hashtable)1 ReportingTypedConfigGetter (org.eclipse.egit.core.internal.ReportingTypedConfigGetter)1 IndexDiffCache (org.eclipse.egit.core.internal.indexdiff.IndexDiffCache)1 EGitSecureStore (org.eclipse.egit.core.securestorage.EGitSecureStore)1 DebugOptionsListener (org.eclipse.osgi.service.debug.DebugOptionsListener)1