Class ConfigSectionBackupRestoreSWT
java.lang.Object
com.biglybt.ui.config.ConfigSectionImpl
com.biglybt.ui.config.ConfigSectionBackupRestore
com.biglybt.ui.swt.views.configsections.ConfigSectionBackupRestoreSWT
- All Implemented Interfaces:
BaseConfigSection, BaseConfigSectionSWT
public class ConfigSectionBackupRestoreSWT
extends ConfigSectionBackupRestore
implements BaseConfigSectionSWT
-
Nested Class Summary
Nested classes/interfaces inherited from class ConfigSectionImpl
ConfigSectionImpl.ConfigDetailsCallback -
Field Summary
FieldsFields inherited from class ConfigSectionBackupRestore
PP_BACKUP_LAST_ERR, PP_BACKUP_LAST_TIME, SECTION_IDFields inherited from class ConfigSectionImpl
L10N_SECTION_PREFIX, mapPluginParams -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidconfigSectionCreate(org.eclipse.swt.widgets.Composite parent, Map<ParameterImpl, BaseSwtParameter> mapParamToSwtParam) Adjust the configuration panel here.private voiddoManualBackup(BackupManager backup_manager, Runnable stats_updater) private voidprivate static voidrunBackup(BackupManager backup_manager, String path, Runnable stats_updater) private static voidupdateInfoParams(BackupManager backup_manager, Map<String, ParameterImpl> mapParams) Methods inherited from class ConfigSectionBackupRestore
build, initMethods inherited from class ConfigSectionImpl
add, add, add, add, deleteConfigSection, findPluginParamKey, getConfigSectionID, getMaxUserMode, getMinUserMode, getParamArray, getParentSectionID, getPluginParam, getSectionNameKey, getSectionNameKey, guessParamName, isBuilt, postBuild, requestRebuild, saveConfigSection, search, setDefaultUITypesForAdd, setDefaultUserModeForAdd, setRebuildRunner
-
Field Details
-
shell
private org.eclipse.swt.widgets.Shell shell
-
-
Constructor Details
-
ConfigSectionBackupRestoreSWT
public ConfigSectionBackupRestoreSWT()
-
-
Method Details
-
configSectionCreate
public void configSectionCreate(org.eclipse.swt.widgets.Composite parent, Map<ParameterImpl, BaseSwtParameter> mapParamToSwtParam) Description copied from interface:BaseConfigSectionSWTAdjust the configuration panel here. Please be mindful of small screen resolutions.- Specified by:
configSectionCreatein interfaceBaseConfigSectionSWT- Parameters:
parent- The parent of your configuration panelmapParamToSwtParam- Link non-Swt Parameter to SwtParameter. UseBaseConfigSection.getPluginParam(String)to find the SwtParameter with key used when adding the non-Swt parameter. Key is usually they config key, or a manual key passed in on add()
-
doManualBackup
-
restoreBackup
private void restoreBackup() -
updateInfoParams
private static void updateInfoParams(BackupManager backup_manager, Map<String, ParameterImpl> mapParams) -
runBackup
-