Skip to content

Commit

Permalink
removed obsolete parameters. issue #2246
Browse files Browse the repository at this point in the history
  • Loading branch information
j-dimension committed Aug 27, 2024
1 parent 4dae993 commit 4230cd7
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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");

Expand Down

0 comments on commit 4230cd7

Please sign in to comment.