private void updateBackendService( boolean useAutoDownload, boolean useAutoDelete, String directoryPath) { // get backend service IBackendService backendService = null; backendService = getBackendService(); if (backendService == null) { return; } try { backendService.setCoreDumpLocation(directoryPath); backendService.setAutoDownload(useAutoDownload); backendService.setAutoDelete(useAutoDelete); IPreferenceStore store = getPreferenceStore(); store.setValue(SystemProperties.BACKEND_AUTO_DELETE_ENABLED, useAutoDelete); store.setValue(SystemProperties.BACKEND_AUTO_DOWNLOAD_ENABLED, useAutoDownload); if (directoryPath != null) { store.setValue(SystemProperties.BACKEND_DOWNLOAD_PATH, directoryPath); } } catch (Exception e) { e.printStackTrace(); } }