}
private void initPreferences() {
EclipsePreferenceWrapper eclipsePreferenceWrapper = new EclipsePreferenceWrapper(getPreferenceStore());
WojServicesHelper.getDefault().setPreferences(eclipsePreferenceWrapper);
String cacheDir = getStateLocation().toString();
final ZippedFileCache cache = new ZippedFileCache(cacheDir);
final LocalAssociation localAssociation = new LocalAssociation(cacheDir);
WojServicesHelper.getDefault().setWojCache(cache);
WojServicesHelper.getDefault().setLocalAsso(localAssociation);
//Cleanup when user change
WojServicesHelper.getDefault().addUserListener(new UserListener() {
public void userChange(String newLogin) {
cache.doCleanup();
localAssociation.clearAll();
}
});
//default value
if(StringUtils.isEmpty(getPreferenceStore().getString(PreferenceConstants.P_USE_HTTPCLIENT))) {