@ -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 ) {
@ -444,10 +450,10 @@ public class PreferencePane extends BasicPane {
requestFocusInWindow ( ) ;
label = new UILabel ( text ) ;
add ( GUICoreUtils . createBorderLayoutPane (
new UILabel ( i18nText ( "Fine-Design_Basic_Support_Current_Auto_Complete_Shortcut" ) + ":" ) ,
BorderLayout . WEST ,
label ,
BorderLayout . CENTER ) ,
new UILabel ( i18nText ( "Fine-Design_Basic_Support_Current_Auto_Complete_Shortcut" ) + ":" ) ,
BorderLayout . WEST ,
label ,
BorderLayout . CENTER ) ,
BorderLayout . NORTH ) ;
addKeyListener ( new KeyAdapter ( ) {
@Override
@ -729,7 +735,7 @@ public class PreferencePane extends BasicPane {
if ( useOptimizedUPMCheckbox ! = null ) {
useOptimizedUPMCheckbox . setSelected ( ServerPreferenceConfig . getInstance ( ) . isUseOptimizedUPM ( )
| | DesignerEnvManager . getEnvManager ( ) . isUseOptimizedUPM4Adapter ( ) ) ;
| | DesignerEnvManager . getEnvManager ( ) . isUseOptimizedUPM4Adapter ( ) ) ;
}
if ( useNewVersionLoginCheckbox ! = null ) {
@ -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 ( ) ) ;