From 4230cd7b75fee4d58fc20c6d9209022af23ae1b4 Mon Sep 17 00:00:00 2001 From: j-dimension Date: Tue, 27 Aug 2024 18:30:03 +0200 Subject: [PATCH] removed obsolete parameters. issue #2246 --- .../jlawyer/client/bea/BeaMessageContentUI.java | 2 +- .../jlawyer/client/bea/SaveBeaMessageAction.java | 2 +- .../jlawyer/client/editors/documents/ScannerPanel.java | 2 +- .../com/jdimension/jlawyer/client/mail/MailContentUI.java | 2 +- .../com/jdimension/jlawyer/client/utils/FileUtils.java | 8 ++++---- 5 files changed, 8 insertions(+), 8 deletions(-) diff --git a/j-lawyer-client/src/com/jdimension/jlawyer/client/bea/BeaMessageContentUI.java b/j-lawyer-client/src/com/jdimension/jlawyer/client/bea/BeaMessageContentUI.java index b13ac4399..a1aa30217 100755 --- a/j-lawyer-client/src/com/jdimension/jlawyer/client/bea/BeaMessageContentUI.java +++ b/j-lawyer-client/src/com/jdimension/jlawyer/client/bea/BeaMessageContentUI.java @@ -1501,7 +1501,7 @@ private void mnuSearchSaveActionPerformed(java.awt.event.ActionEvent evt) {//GEN byte[] data = ((Attachment) selected).getContent(); - String newName = FileUtils.getNewFileName(sel, selected.toString(), true, true); + String newName = FileUtils.getNewFileName(sel, selected.toString(), true); if (newName == null) { return; } diff --git a/j-lawyer-client/src/com/jdimension/jlawyer/client/bea/SaveBeaMessageAction.java b/j-lawyer-client/src/com/jdimension/jlawyer/client/bea/SaveBeaMessageAction.java index 09f56d6d2..b9d1e8127 100644 --- a/j-lawyer-client/src/com/jdimension/jlawyer/client/bea/SaveBeaMessageAction.java +++ b/j-lawyer-client/src/com/jdimension/jlawyer/client/bea/SaveBeaMessageAction.java @@ -820,7 +820,7 @@ public boolean execute() throws Exception { if (receivedPrefix == null) { receivedPrefix = new java.util.Date(); } - String newName = com.jdimension.jlawyer.client.utils.FileUtils.getNewFileName(this.archiveFile, mex.getFileName(), true, receivedPrefix, true, this.indicator); + String newName = com.jdimension.jlawyer.client.utils.FileUtils.getNewFileName(this.archiveFile, mex.getFileName(), receivedPrefix, true, this.indicator); if (newName == null) { return false; } diff --git a/j-lawyer-client/src/com/jdimension/jlawyer/client/editors/documents/ScannerPanel.java b/j-lawyer-client/src/com/jdimension/jlawyer/client/editors/documents/ScannerPanel.java index 1839f515f..3e418543f 100755 --- a/j-lawyer-client/src/com/jdimension/jlawyer/client/editors/documents/ScannerPanel.java +++ b/j-lawyer-client/src/com/jdimension/jlawyer/client/editors/documents/ScannerPanel.java @@ -1529,7 +1529,7 @@ public boolean renameCallback() { for (int r : selRow) { String fileName = this.tblDirContent.getValueAt(r, 2).toString(); - String toFileName = FileUtils.getNewFileName(null, fileName, false, false); + String toFileName = FileUtils.getNewFileName(null, fileName, false); if (toFileName == null) { // user cancelled continue; diff --git a/j-lawyer-client/src/com/jdimension/jlawyer/client/mail/MailContentUI.java b/j-lawyer-client/src/com/jdimension/jlawyer/client/mail/MailContentUI.java index e47ecbfe6..1f6ef8307 100755 --- a/j-lawyer-client/src/com/jdimension/jlawyer/client/mail/MailContentUI.java +++ b/j-lawyer-client/src/com/jdimension/jlawyer/client/mail/MailContentUI.java @@ -1970,7 +1970,7 @@ private void mnuSearchSaveActionPerformed(java.awt.event.ActionEvent evt) {//GEN } } - String newName = FileUtils.getNewFileName(sel, selected.toString(), true, true); + String newName = FileUtils.getNewFileName(sel, selected.toString(), true); if (newName == null) { return; } diff --git a/j-lawyer-client/src/com/jdimension/jlawyer/client/utils/FileUtils.java b/j-lawyer-client/src/com/jdimension/jlawyer/client/utils/FileUtils.java index 05e5fea0e..0176b8bf6 100755 --- a/j-lawyer-client/src/com/jdimension/jlawyer/client/utils/FileUtils.java +++ b/j-lawyer-client/src/com/jdimension/jlawyer/client/utils/FileUtils.java @@ -831,17 +831,17 @@ public static String getFileSizeHumanReadable(long size) { } } - public static String getNewFileName(ArchiveFileBean selectedCase, String currentFileName, boolean datetimePrefix, boolean applyNameTemplate) { - return getNewFileName(selectedCase, currentFileName, datetimePrefix, new java.util.Date(), applyNameTemplate); + public static String getNewFileName(ArchiveFileBean selectedCase, String currentFileName, boolean applyNameTemplate) { + return getNewFileName(selectedCase, currentFileName, new java.util.Date(), applyNameTemplate); } - public static String getNewFileName(ArchiveFileBean selectedCase, String currentFileName, boolean datetimePrefix, java.util.Date d, boolean applyNameTemplate) { + public static String getNewFileName(ArchiveFileBean selectedCase, String currentFileName, java.util.Date d, boolean applyNameTemplate) { return getNewFileName(selectedCase, currentFileName, d, applyNameTemplate, EditorsRegistry.getInstance().getMainWindow(), "Datei benennen"); } - public static String getNewFileName(ArchiveFileBean selectedCase, String currentFileName, boolean datetimePrefix, java.util.Date d, boolean applyNameTemplate, Component parent) { + public static String getNewFileName(ArchiveFileBean selectedCase, String currentFileName, java.util.Date d, boolean applyNameTemplate, Component parent) { return getNewFileName(selectedCase, currentFileName, d, applyNameTemplate, parent, "Datei benennen");