mirror of
https://github.com/Wisser/Jailer.git
synced 2026-05-20 02:55:00 -05:00
switching to slf4j
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user