@ -171,6 +171,7 @@ public class PreferencePane extends BasicPane {
private UICheckBox autoPushUpdateCheckBox ;
private UICheckBox embedServerLazyStartupCheckBox ;
private UICheckBox imageCompressPanelCheckBox ;
private UICheckBox cloudAnalyticsDelayCheckBox ;
private UICheckBox vcsEnableCheckBox ;
private UICheckBox saveCommitCheckBox ;
@ -273,6 +274,11 @@ public class PreferencePane extends BasicPane {
imageCompressPanelCheckBox = new UICheckBox ( i18nText ( "Fine-Design_Image_Compress" ) ) ;
imageCompressPanel . add ( imageCompressPanelCheckBox ) ;
advancePane . add ( imageCompressPanel ) ;
JPanel designerStartupOption = FRGUIPaneFactory . createTitledBorderPane ( i18nText ( "Fine-Design_Startup_Option" ) ) ;
cloudAnalyticsDelayCheckBox = new UICheckBox ( i18nText ( "Fine-Design_Cloud_Analytics_Delay" ) ) ;
designerStartupOption . add ( cloudAnalyticsDelayCheckBox ) ;
advancePane . add ( designerStartupOption ) ;
}
private void createVcsSettingPane ( JPanel generalPane ) {
@ -750,6 +756,7 @@ public class PreferencePane extends BasicPane {
this . startWithEmptyFile . setSelected ( designerEnvManager . isStartWithEmptyFile ( ) ) ;
this . imageCompressPanelCheckBox . setSelected ( designerEnvManager . isImageCompress ( ) ) ;
this . cloudAnalyticsDelayCheckBox . setSelected ( designerEnvManager . isCloudAnalyticsDelay ( ) ) ;
}
private int chooseCase ( int sign ) {
@ -810,6 +817,7 @@ public class PreferencePane extends BasicPane {
designerEnvManager . setEmbedServerLazyStartup ( this . embedServerLazyStartupCheckBox . isSelected ( ) ) ;
designerEnvManager . setImageCompress ( this . imageCompressPanelCheckBox . isSelected ( ) ) ;
designerEnvManager . setUseOptimizedUPM4Adapter ( this . useOptimizedUPMCheckbox ! = null & & this . useOptimizedUPMCheckbox . isSelected ( ) ) ;
designerEnvManager . setCloudAnalyticsDelay ( this . cloudAnalyticsDelayCheckBox . isSelected ( ) ) ;
VcsConfigManager vcsConfigManager = designerEnvManager . getVcsConfigManager ( ) ;
vcsConfigManager . setSaveInterval ( this . saveIntervalEditor . getValue ( ) ) ;
vcsConfigManager . setVcsEnable ( this . vcsEnableCheckBox . isSelected ( ) ) ;