|
|
|
@ -1092,7 +1092,29 @@ public class FILEChooserPane extends BasicPane {
|
|
|
|
|
String lastDirectoryPath = DesignerEnvManager.getEnvManager().getDialogCurrentDirectory(); |
|
|
|
|
String prefix = DesignerEnvManager.getEnvManager().getCurrentDirectoryPrefix(); |
|
|
|
|
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); |
|
|
|
|
|
|
|
|
|
if (currentDirectory != null) { |
|
|
|
@ -1109,6 +1131,7 @@ public class FILEChooserPane extends BasicPane {
|
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
private void setPlaceListModel() { |
|
|
|
|
if (placesList == null) { |
|
|
|
|
return; |
|
|
|
@ -1140,7 +1163,7 @@ public class FILEChooserPane extends BasicPane {
|
|
|
|
|
if (placesList == null) { |
|
|
|
|
return; |
|
|
|
|
} |
|
|
|
|
setPlaceListModel(new FileDataPlaceListModel(type)); |
|
|
|
|
setPlaceListModel4DataFile(new FileDataPlaceListModel(type)); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
protected void setFileCAPlaceListModel() { |
|
|
|
|