private String generateFileName(String str) {
str = str.replace("{pwd}", System.getProperty("user.dir"));
if (this.srcFile != null) {
+ str = str.replace("{inputdir}", this.srcFile.getParent());
+ }
+ if (this.srcFile != null) {
str = str.replace("{input}", this.srcFile.getName());
}
str = str.replace("{date}", new SimpleDateFormat("yyyyMMddHHmmss").format(new Date()));
comboBoxPaperMarginUnit.setSelectedIndex(0);
comboBoxPaperMarginUnit_itemStateChanged();
- textFieldOutputFileName.setText(String.format("{pwd}%s%s_{input}_{date}.pdf", File.separator, Lib.getMessage("App.LowerTitle")));
+ textFieldOutputFileName.setText(String.format("{inputdir}%s%s_{input}_{date}.pdf", File.separator, Lib.getMessage("App.LowerTitle")));
simulateOutput();
}