|
|
@ -171,6 +171,7 @@ public class PreferencePane extends BasicPane { |
|
|
|
private UICheckBox autoPushUpdateCheckBox; |
|
|
|
private UICheckBox autoPushUpdateCheckBox; |
|
|
|
private UICheckBox embedServerLazyStartupCheckBox; |
|
|
|
private UICheckBox embedServerLazyStartupCheckBox; |
|
|
|
private UICheckBox imageCompressPanelCheckBox; |
|
|
|
private UICheckBox imageCompressPanelCheckBox; |
|
|
|
|
|
|
|
private UICheckBox cloudAnalyticsDelayCheckBox; |
|
|
|
|
|
|
|
|
|
|
|
private UICheckBox vcsEnableCheckBox; |
|
|
|
private UICheckBox vcsEnableCheckBox; |
|
|
|
private UICheckBox saveCommitCheckBox; |
|
|
|
private UICheckBox saveCommitCheckBox; |
|
|
@ -273,6 +274,11 @@ public class PreferencePane extends BasicPane { |
|
|
|
imageCompressPanelCheckBox = new UICheckBox(i18nText("Fine-Design_Image_Compress")); |
|
|
|
imageCompressPanelCheckBox = new UICheckBox(i18nText("Fine-Design_Image_Compress")); |
|
|
|
imageCompressPanel.add(imageCompressPanelCheckBox); |
|
|
|
imageCompressPanel.add(imageCompressPanelCheckBox); |
|
|
|
advancePane.add(imageCompressPanel); |
|
|
|
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) { |
|
|
|
private void createVcsSettingPane(JPanel generalPane) { |
|
|
@ -444,10 +450,10 @@ public class PreferencePane extends BasicPane { |
|
|
|
requestFocusInWindow(); |
|
|
|
requestFocusInWindow(); |
|
|
|
label = new UILabel(text); |
|
|
|
label = new UILabel(text); |
|
|
|
add(GUICoreUtils.createBorderLayoutPane( |
|
|
|
add(GUICoreUtils.createBorderLayoutPane( |
|
|
|
new UILabel(i18nText("Fine-Design_Basic_Support_Current_Auto_Complete_Shortcut") + ":"), |
|
|
|
new UILabel(i18nText("Fine-Design_Basic_Support_Current_Auto_Complete_Shortcut") + ":"), |
|
|
|
BorderLayout.WEST, |
|
|
|
BorderLayout.WEST, |
|
|
|
label, |
|
|
|
label, |
|
|
|
BorderLayout.CENTER), |
|
|
|
BorderLayout.CENTER), |
|
|
|
BorderLayout.NORTH); |
|
|
|
BorderLayout.NORTH); |
|
|
|
addKeyListener(new KeyAdapter() { |
|
|
|
addKeyListener(new KeyAdapter() { |
|
|
|
@Override |
|
|
|
@Override |
|
|
@ -729,7 +735,7 @@ public class PreferencePane extends BasicPane { |
|
|
|
|
|
|
|
|
|
|
|
if (useOptimizedUPMCheckbox != null) { |
|
|
|
if (useOptimizedUPMCheckbox != null) { |
|
|
|
useOptimizedUPMCheckbox.setSelected(ServerPreferenceConfig.getInstance().isUseOptimizedUPM() |
|
|
|
useOptimizedUPMCheckbox.setSelected(ServerPreferenceConfig.getInstance().isUseOptimizedUPM() |
|
|
|
|| DesignerEnvManager.getEnvManager().isUseOptimizedUPM4Adapter()); |
|
|
|
|| DesignerEnvManager.getEnvManager().isUseOptimizedUPM4Adapter()); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
if (useNewVersionLoginCheckbox != null) { |
|
|
|
if (useNewVersionLoginCheckbox != null) { |
|
|
@ -750,6 +756,7 @@ public class PreferencePane extends BasicPane { |
|
|
|
this.startWithEmptyFile.setSelected(designerEnvManager.isStartWithEmptyFile()); |
|
|
|
this.startWithEmptyFile.setSelected(designerEnvManager.isStartWithEmptyFile()); |
|
|
|
|
|
|
|
|
|
|
|
this.imageCompressPanelCheckBox.setSelected(designerEnvManager.isImageCompress()); |
|
|
|
this.imageCompressPanelCheckBox.setSelected(designerEnvManager.isImageCompress()); |
|
|
|
|
|
|
|
this.cloudAnalyticsDelayCheckBox.setSelected(designerEnvManager.isCloudAnalyticsDelay()); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
private int chooseCase(int sign) { |
|
|
|
private int chooseCase(int sign) { |
|
|
@ -810,6 +817,7 @@ public class PreferencePane extends BasicPane { |
|
|
|
designerEnvManager.setEmbedServerLazyStartup(this.embedServerLazyStartupCheckBox.isSelected()); |
|
|
|
designerEnvManager.setEmbedServerLazyStartup(this.embedServerLazyStartupCheckBox.isSelected()); |
|
|
|
designerEnvManager.setImageCompress(this.imageCompressPanelCheckBox.isSelected()); |
|
|
|
designerEnvManager.setImageCompress(this.imageCompressPanelCheckBox.isSelected()); |
|
|
|
designerEnvManager.setUseOptimizedUPM4Adapter(this.useOptimizedUPMCheckbox != null && this.useOptimizedUPMCheckbox.isSelected()); |
|
|
|
designerEnvManager.setUseOptimizedUPM4Adapter(this.useOptimizedUPMCheckbox != null && this.useOptimizedUPMCheckbox.isSelected()); |
|
|
|
|
|
|
|
designerEnvManager.setCloudAnalyticsDelay(this.cloudAnalyticsDelayCheckBox.isSelected()); |
|
|
|
VcsConfigManager vcsConfigManager = designerEnvManager.getVcsConfigManager(); |
|
|
|
VcsConfigManager vcsConfigManager = designerEnvManager.getVcsConfigManager(); |
|
|
|
vcsConfigManager.setSaveInterval(this.saveIntervalEditor.getValue()); |
|
|
|
vcsConfigManager.setSaveInterval(this.saveIntervalEditor.getValue()); |
|
|
|
vcsConfigManager.setVcsEnable(this.vcsEnableCheckBox.isSelected()); |
|
|
|
vcsConfigManager.setVcsEnable(this.vcsEnableCheckBox.isSelected()); |
|
|
|