switching to slf4j

This commit is contained in:
User
2022-04-17 11:05:52 +02:00
parent a498701510
commit f7429f5045
4 changed files with 5 additions and 4 deletions
@@ -5,7 +5,7 @@ import java.io.File;
public class LogUtil {
public static void initLog4jConfig(File baseDir) {
System.setProperty("logdir", baseDir.getAbsolutePath() + File.separator);
System.setProperty("logdir", baseDir != null? baseDir.getAbsolutePath() + File.separator : "");
}
public interface Warn {
@@ -1511,6 +1511,7 @@ public class ExtractionModelFrame extends javax.swing.JFrame {
}
}
String file = exportDialog.getInsertFileName();
file = Environment.newFile(file).getPath();
if (file != null) {
try {
UIUtil.setWaitCursor(window);
@@ -3349,9 +3349,9 @@ public abstract class BrowserContentPane extends javax.swing.JPanel {
final ExtractionModelFrame extractionModelFrame = ExtractionModelFrame.createFrame(file, false, !doExport, null, executionContext);
extractionModelFrame.setDefaultExportFileName("by-example" + File.separator + UIUtil.toValidFileName(stable.getName() + ".sql"));
Window w = SwingUtilities.getWindowAncestor(this);
extractionModelFrame.setResultFileLoader(fileName -> {
Window w = SwingUtilities.getWindowAncestor(this);
if (!w.isVisible()) {
if (w == null || !w.isVisible()) {
return false;
}
loadScriptFile(fileName);
@@ -4670,7 +4670,7 @@ public class DataBrowser extends javax.swing.JFrame {
titleLbl.setToolTipText(null);
} else {
title = file.getName();
titleLbl.setToolTipText(file.getAbsolutePath());
// TODO titleLbl.setToolTipText(file.getAbsolutePath());
}
if (dirty && file != null) {
titleLbl.setText("* " + title);