some sonar item
This commit is contained in:
parent
8bf453577b
commit
72121cb385
@ -9,6 +9,8 @@ import javax.swing.JFileChooser;
|
||||
import javax.swing.filechooser.FileNameExtensionFilter;
|
||||
|
||||
import org.apache.commons.lang3.StringUtils;
|
||||
import org.slf4j.Logger;
|
||||
import org.slf4j.LoggerFactory;
|
||||
|
||||
/**
|
||||
*
|
||||
@ -19,6 +21,7 @@ public class CheckDirectorySelector extends JFileChooser
|
||||
{
|
||||
private static final long serialVersionUID = 3782597353602048214L;
|
||||
private static final ResourceBundle BUNDLE = ResourceBundle.getBundle("org.dclermonte.siba.gui.messages"); //$NON-NLS-1$
|
||||
public static final Logger logger = LoggerFactory.getLogger(CheckDirectorySelector.class);
|
||||
|
||||
/**
|
||||
*
|
||||
@ -84,9 +87,8 @@ public class CheckDirectorySelector extends JFileChooser
|
||||
{
|
||||
//
|
||||
super.setSelectedFile(file);
|
||||
|
||||
System.out.println("==== SET SELECTED FILE=================");
|
||||
System.out.println("SELECED FILE " + file);
|
||||
logger.debug("==== SET SELECTED FILE=================");
|
||||
logger.debug("SELECED FILE " + file);
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -96,7 +96,7 @@ public class SibaGUI
|
||||
}
|
||||
else if (exception instanceof SibaException)
|
||||
{
|
||||
message = "SibaException" + exception.getMessage();
|
||||
message = exception.getMessage();
|
||||
}
|
||||
else
|
||||
{
|
||||
@ -114,9 +114,13 @@ public class SibaGUI
|
||||
|
||||
// Set LookAndFeel.
|
||||
System.out.println("System lookAndFeel property:" + System.getProperty("swing.defaultlaf"));
|
||||
System.out.println("Available lookAndFeel: " + GUIToolBox.availableLookAndFeels().toString());
|
||||
logger.debug("Available lookAndFeel: " + GUIToolBox.availableLookAndFeels().toString());
|
||||
// System.out.println("Available lookAndFeel: " +
|
||||
// GUIToolBox.availableLookAndFeels().toString());
|
||||
System.out.println("System lookAndFeel: " + UIManager.getSystemLookAndFeelClassName());
|
||||
System.out.println("Current lookAndFeel: " + UIManager.getLookAndFeel().getName());
|
||||
logger.debug("Current lookAndFeel: " + UIManager.getLookAndFeel().getName());
|
||||
// System.out.println("Current lookAndFeel: " +
|
||||
// UIManager.getLookAndFeel().getName());
|
||||
|
||||
if (!StringUtils.equals(UIManager.getSystemLookAndFeelClassName(), "javax.swing.plaf.metal.MetalLookAndFeel"))
|
||||
{
|
||||
@ -143,12 +147,15 @@ public class SibaGUI
|
||||
}
|
||||
}
|
||||
/* UIManager.setLookAndFeel("com.sun.java.swing.plaf.metal.MetalLookAndFeel"); */
|
||||
System.out.println("Activated lookAndFeel: " + UIManager.getLookAndFeel().getName());
|
||||
logger.debug("Activated lookAndFeel: " + UIManager.getLookAndFeel().getName());
|
||||
// System.out.println("Activated lookAndFeel: " +
|
||||
// UIManager.getLookAndFeel().getName());
|
||||
|
||||
// Set default locale.
|
||||
this.locale = Locale.getDefault();
|
||||
updateLanguage(this.locale);
|
||||
System.out.println(this.locale.getDisplayLanguage());
|
||||
logger.debug(this.locale.getDisplayLanguage());
|
||||
// System.out.println(this.locale.getDisplayLanguage());
|
||||
initialize();
|
||||
|
||||
}
|
||||
|
@ -8,6 +8,8 @@ import java.util.ResourceBundle;
|
||||
import javax.swing.JFileChooser;
|
||||
|
||||
import org.apache.commons.lang3.StringUtils;
|
||||
import org.slf4j.Logger;
|
||||
import org.slf4j.LoggerFactory;
|
||||
|
||||
/**
|
||||
*
|
||||
@ -17,6 +19,7 @@ public class SourceDirectorySelector extends JFileChooser
|
||||
{
|
||||
private static final long serialVersionUID = 3782597353602048214L;
|
||||
private static final ResourceBundle BUNDLE = ResourceBundle.getBundle("org.dclermonte.siba.gui.messages"); //$NON-NLS-1$
|
||||
public static final Logger logger = LoggerFactory.getLogger(SourceDirectorySelector.class);
|
||||
|
||||
/**
|
||||
*
|
||||
@ -80,9 +83,8 @@ public class SourceDirectorySelector extends JFileChooser
|
||||
{
|
||||
//
|
||||
super.setSelectedFile(file);
|
||||
|
||||
System.out.println("==== SET SELECTED FILE=================");
|
||||
System.out.println("SELECED FILE " + file);
|
||||
logger.debug("==== SET SELECTED FILE=================");
|
||||
logger.debug("SELECED FILE " + file);
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -8,6 +8,8 @@ import java.util.ResourceBundle;
|
||||
import javax.swing.JFileChooser;
|
||||
|
||||
import org.apache.commons.lang3.StringUtils;
|
||||
import org.slf4j.Logger;
|
||||
import org.slf4j.LoggerFactory;
|
||||
|
||||
/**
|
||||
*
|
||||
@ -17,6 +19,7 @@ public class TargetDirectorySelector extends JFileChooser
|
||||
{
|
||||
private static final long serialVersionUID = 3782597353602048214L;
|
||||
private static final ResourceBundle BUNDLE = ResourceBundle.getBundle("org.dclermonte.siba.gui.messages"); //$NON-NLS-1$
|
||||
public static final Logger logger = LoggerFactory.getLogger(TargetDirectorySelector.class);
|
||||
|
||||
/**
|
||||
*
|
||||
@ -82,8 +85,8 @@ public class TargetDirectorySelector extends JFileChooser
|
||||
//
|
||||
super.setSelectedFile(file);
|
||||
|
||||
System.out.println("==== SET SELECTED FILE=================");
|
||||
System.out.println("SELECED FILE " + file);
|
||||
logger.debug("==== SET SELECTED FILE=================");
|
||||
logger.debug("SELECED FILE " + file);
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user