Browse Source

Merge pull request #204 in DESIGN/design from ~VITO/c-design:release/10.0 to release/10.0

* commit '28e57935bcbbcbeb3ccbe58accf84947a2d93d16':
  REPORT-9360【10.0一轮回归】模板名有特殊符号无法预览
master
vito 7 years ago
parent
commit
f8448b25db
  1. 4
      designer-base/src/main/java/com/fr/file/FILEChooserPane.java

4
designer-base/src/main/java/com/fr/file/FILEChooserPane.java

@ -674,7 +674,7 @@ public class FILEChooserPane extends BasicPane {
private void saveDialog() {
String filename = fileNameTextField.getText();
if (!filename.endsWith(suffix) && !filename.contains(CoreConstants.DOT)) {
if (!filename.endsWith(suffix)) {
ChooseFileFilter chooseFileFilter = (ChooseFileFilter) (postfixComboBox.getSelectedItem());
if (chooseFileFilter != null && StringUtils.isNotEmpty(chooseFileFilter.getExtensionString())) {
fileNameTextField.setText(filename + chooseFileFilter.getExtensionString());
@ -1109,7 +1109,7 @@ public class FILEChooserPane extends BasicPane {
((DefaultListModel) subFileList.getModel()).removeAllElements();
for (int i = 0; i < res_array.length; i++) {
if (filter == null || filter.accept(res_array[i])) {
((DefaultListModel) subFileList.getModel()).addElement( res_array[i]);
((DefaultListModel) subFileList.getModel()).addElement(res_array[i]);
}
}
String[] name_array = new String[res_array.length];

Loading…
Cancel
Save