|
|
@ -40,7 +40,6 @@ import com.fr.general.log.Log4jConfig; |
|
|
|
import com.fr.locale.InterProviderFactory; |
|
|
|
import com.fr.locale.InterProviderFactory; |
|
|
|
import com.fr.log.FineLoggerFactory; |
|
|
|
import com.fr.log.FineLoggerFactory; |
|
|
|
import com.fr.stable.Constants; |
|
|
|
import com.fr.stable.Constants; |
|
|
|
import com.fr.stable.StableUtils; |
|
|
|
|
|
|
|
import com.fr.stable.os.OperatingSystem; |
|
|
|
import com.fr.stable.os.OperatingSystem; |
|
|
|
import com.fr.third.apache.log4j.Level; |
|
|
|
import com.fr.third.apache.log4j.Level; |
|
|
|
import com.fr.transaction.Configurations; |
|
|
|
import com.fr.transaction.Configurations; |
|
|
@ -141,6 +140,8 @@ public class PreferencePane extends BasicPane { |
|
|
|
private UIComboBox maxUndoLimit; |
|
|
|
private UIComboBox maxUndoLimit; |
|
|
|
//是非支持自动计算父格
|
|
|
|
//是非支持自动计算父格
|
|
|
|
private UICheckBox supportDefaultParentCalculateCheckBox; |
|
|
|
private UICheckBox supportDefaultParentCalculateCheckBox; |
|
|
|
|
|
|
|
//打开模板是否提示缺少插件
|
|
|
|
|
|
|
|
private UICheckBox showTemplateMissingPlugin; |
|
|
|
|
|
|
|
|
|
|
|
//是否自动转化为公式
|
|
|
|
//是否自动转化为公式
|
|
|
|
private UICheckBox supportStringToFormulaBox; |
|
|
|
private UICheckBox supportStringToFormulaBox; |
|
|
@ -361,6 +362,11 @@ public class PreferencePane extends BasicPane { |
|
|
|
supportDefaultParentCalculateCheckBox = new UICheckBox( |
|
|
|
supportDefaultParentCalculateCheckBox = new UICheckBox( |
|
|
|
i18nText("Fine-Design_Basic_Preference_Support_Default_Parent_Calculate")); |
|
|
|
i18nText("Fine-Design_Basic_Preference_Support_Default_Parent_Calculate")); |
|
|
|
functionPane.add(supportDefaultParentCalculateCheckBox); |
|
|
|
functionPane.add(supportDefaultParentCalculateCheckBox); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//添加是否展示打开模板提示缺少插件选择项
|
|
|
|
|
|
|
|
showTemplateMissingPlugin = new UICheckBox( |
|
|
|
|
|
|
|
i18nText("Fine-Design_Basic_Preference_Show-Template-Missing-Plugin")); |
|
|
|
|
|
|
|
functionPane.add(showTemplateMissingPlugin); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
private void createEditPane(JPanel generalPane) { |
|
|
|
private void createEditPane(JPanel generalPane) { |
|
|
@ -644,6 +650,8 @@ public class PreferencePane extends BasicPane { |
|
|
|
|
|
|
|
|
|
|
|
supportDefaultParentCalculateCheckBox.setSelected(designerEnvManager.isSupportDefaultParentCalculate()); |
|
|
|
supportDefaultParentCalculateCheckBox.setSelected(designerEnvManager.isSupportDefaultParentCalculate()); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
showTemplateMissingPlugin.setSelected(designerEnvManager.isShowTemplateMissingPlugin()); |
|
|
|
|
|
|
|
|
|
|
|
supportStringToFormulaBox.setSelected(designerEnvManager.isSupportStringToFormula()); |
|
|
|
supportStringToFormulaBox.setSelected(designerEnvManager.isSupportStringToFormula()); |
|
|
|
|
|
|
|
|
|
|
|
shortCutLabel.setText(getDisplayShortCut(designerEnvManager.getAutoCompleteShortcuts())); |
|
|
|
shortCutLabel.setText(getDisplayShortCut(designerEnvManager.getAutoCompleteShortcuts())); |
|
|
@ -744,6 +752,8 @@ public class PreferencePane extends BasicPane { |
|
|
|
|
|
|
|
|
|
|
|
designerEnvManager.setSupportDefaultParentCalculate(supportDefaultParentCalculateCheckBox.isSelected()); |
|
|
|
designerEnvManager.setSupportDefaultParentCalculate(supportDefaultParentCalculateCheckBox.isSelected()); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
designerEnvManager.setShowTemplateMissingPlugin(showTemplateMissingPlugin.isSelected()); |
|
|
|
|
|
|
|
|
|
|
|
designerEnvManager.setSupportStringToFormula(supportStringToFormulaBox.isSelected()); |
|
|
|
designerEnvManager.setSupportStringToFormula(supportStringToFormulaBox.isSelected()); |
|
|
|
|
|
|
|
|
|
|
|
designerEnvManager.setDefaultStringToFormula(defaultStringToFormulaBox.isSelected()); |
|
|
|
designerEnvManager.setDefaultStringToFormula(defaultStringToFormulaBox.isSelected()); |
|
|
|