|
|
@ -45,6 +45,8 @@ public class AlphafineConfigPane extends BasicPane { |
|
|
|
private static final String DISPLAY_EQUALS = "+"; |
|
|
|
private static final String DISPLAY_EQUALS = "+"; |
|
|
|
private static final String MINUS = "MINUS"; |
|
|
|
private static final String MINUS = "MINUS"; |
|
|
|
private static final String DISPLAY_MINUS = "-"; |
|
|
|
private static final String DISPLAY_MINUS = "-"; |
|
|
|
|
|
|
|
private static final double COLUMN_GAP = 180; |
|
|
|
|
|
|
|
private static final double ROW_GAP = 25; |
|
|
|
private KeyStroke shortCutKeyStore = null; |
|
|
|
private KeyStroke shortCutKeyStore = null; |
|
|
|
private UICheckBox isEnabledCheckbox, isSearchOnlineCheckbox, isContainConcludeCheckbox, isContainActionCheckbox, isContainDocumentCheckbox, isContainTemplateCheckbox, isContainPluginCheckbox, isContainFileContentCheckbox; |
|
|
|
private UICheckBox isEnabledCheckbox, isSearchOnlineCheckbox, isContainConcludeCheckbox, isContainActionCheckbox, isContainDocumentCheckbox, isContainTemplateCheckbox, isContainPluginCheckbox, isContainFileContentCheckbox; |
|
|
|
private UITextField shortcutsField; |
|
|
|
private UITextField shortcutsField; |
|
|
@ -73,10 +75,9 @@ public class AlphafineConfigPane extends BasicPane { |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
private void createSearchConfigPane(JPanel contentPane) { |
|
|
|
private void createSearchConfigPane(JPanel contentPane) { |
|
|
|
double p = 25; |
|
|
|
double[] rowSize = {ROW_GAP, ROW_GAP}; |
|
|
|
double d = 180; |
|
|
|
|
|
|
|
double[] rowSize = {p, p}; |
|
|
|
double[] columnSize = {COLUMN_GAP, COLUMN_GAP, COLUMN_GAP}; |
|
|
|
double[] columnSize = {d, d, d}; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
JPanel northPane = FRGUIPaneFactory.createTitledBorderPane(Inter.getLocText("FR-Designer_AlphaFine_SearchRange")); |
|
|
|
JPanel northPane = FRGUIPaneFactory.createTitledBorderPane(Inter.getLocText("FR-Designer_AlphaFine_SearchRange")); |
|
|
|
isContainConcludeCheckbox = new UICheckBox(Inter.getLocText("FR-Designer_AlphaFine_Conclude")); |
|
|
|
isContainConcludeCheckbox = new UICheckBox(Inter.getLocText("FR-Designer_AlphaFine_Conclude")); |
|
|
@ -174,7 +175,7 @@ public class AlphafineConfigPane extends BasicPane { |
|
|
|
alphafineConfigManager.setSearchOnLine(this.isSearchOnlineCheckbox.isSelected()); |
|
|
|
alphafineConfigManager.setSearchOnLine(this.isSearchOnlineCheckbox.isSelected()); |
|
|
|
alphafineConfigManager.setContainTemplate(this.isContainTemplateCheckbox.isSelected()); |
|
|
|
alphafineConfigManager.setContainTemplate(this.isContainTemplateCheckbox.isSelected()); |
|
|
|
alphafineConfigManager.setContainFileContent(this.isContainFileContentCheckbox.isSelected()); |
|
|
|
alphafineConfigManager.setContainFileContent(this.isContainFileContentCheckbox.isSelected()); |
|
|
|
alphafineConfigManager.setShortcuts(shortCutKeyStore != null? shortCutKeyStore.toString().replace(TYPE, DISPLAY_TYPE) : this.shortcutsField.getText()); |
|
|
|
alphafineConfigManager.setShortcuts(shortCutKeyStore != null ? shortCutKeyStore.toString().replace(TYPE, DISPLAY_TYPE) : this.shortcutsField.getText()); |
|
|
|
designerEnvManager.setAlphafineConfigManager(alphafineConfigManager); |
|
|
|
designerEnvManager.setAlphafineConfigManager(alphafineConfigManager); |
|
|
|
try { |
|
|
|
try { |
|
|
|
DesignerEnvManager.loadLogSetting(); |
|
|
|
DesignerEnvManager.loadLogSetting(); |
|
|
|