Browse Source

REPORT-133888 【fr-fbp回归】文件数据集excel只能被选一次

fbp/release
Destiny.Lin 3 months ago
parent
commit
a01affc9e5
  1. 25
      designer-base/src/main/java/com/fr/file/FILEChooserPane.java

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

@ -1092,7 +1092,29 @@ public class FILEChooserPane extends BasicPane {
String lastDirectoryPath = DesignerEnvManager.getEnvManager().getDialogCurrentDirectory(); String lastDirectoryPath = DesignerEnvManager.getEnvManager().getDialogCurrentDirectory();
String prefix = DesignerEnvManager.getEnvManager().getCurrentDirectoryPrefix(); String prefix = DesignerEnvManager.getEnvManager().getCurrentDirectoryPrefix();
FILE lastDirectory = FILEFactory.createFolder(prefix + lastDirectoryPath); FILE lastDirectory = FILEFactory.createFolder(prefix + lastDirectoryPath);
dealCurrentDirectory(model, lastDirectory) ;
}
private void setPlaceListModel4DataFile(AbstractPlaceListModel model) {
if (placesList == null) {
return;
}
placesList.setModel(model);
String lastDirectoryPath = FILEFactory.ENV_PREFIX;
String prefix = ProjectConstants.REPORTLETS_NAME;
FILE lastDirectory;
if (model instanceof FileDataPlaceListModel) {
FileDataFILE file = new FileDataFILE(new FileNode(), false, StringUtils.EMPTY, ((FileDataPlaceListModel) model).getType());
lastDirectory = FILEFactory.createFolder(file, prefix + lastDirectoryPath);
} else {
lastDirectory = FILEFactory.createFolder(prefix + lastDirectoryPath);
}
dealCurrentDirectory(model, lastDirectory);
}
private void dealCurrentDirectory(AbstractPlaceListModel model, FILE lastDirectory) {
model.setCD(lastDirectory); model.setCD(lastDirectory);
if (currentDirectory != null) { if (currentDirectory != null) {
@ -1109,6 +1131,7 @@ public class FILEChooserPane extends BasicPane {
} }
} }
private void setPlaceListModel() { private void setPlaceListModel() {
if (placesList == null) { if (placesList == null) {
return; return;
@ -1140,7 +1163,7 @@ public class FILEChooserPane extends BasicPane {
if (placesList == null) { if (placesList == null) {
return; return;
} }
setPlaceListModel(new FileDataPlaceListModel(type)); setPlaceListModel4DataFile(new FileDataPlaceListModel(type));
} }
protected void setFileCAPlaceListModel() { protected void setFileCAPlaceListModel() {

Loading…
Cancel
Save