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 com.biglybt.ui.config.ConfigSectionImpl
ConfigSectionImpl.ConfigDetailsCallback
-
Field Summary
FieldsFields inherited from class com.biglybt.ui.config.ConfigSectionBackupRestore
PP_BACKUP_LAST_ERR, PP_BACKUP_LAST_TIME, SECTION_ID
Fields inherited from class com.biglybt.ui.config.ConfigSectionImpl
L10N_SECTION_PREFIX, mapPluginParams
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
configSectionCreate
(org.eclipse.swt.widgets.Composite parent, Map<ParameterImpl, BaseSwtParameter> mapParamToSwtParam) Adjust the configuration panel here.private void
doManualBackup
(BackupManager backup_manager, Runnable stats_updater) private void
private static void
runBackup
(BackupManager backup_manager, String path, Runnable stats_updater) private static void
updateInfoParams
(BackupManager backup_manager, Map<String, ParameterImpl> mapParams) Methods inherited from class com.biglybt.ui.config.ConfigSectionBackupRestore
build, init
Methods inherited from class com.biglybt.ui.config.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:BaseConfigSectionSWT
Adjust the configuration panel here. Please be mindful of small screen resolutions.- Specified by:
configSectionCreate
in 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
-