Added debug log message for each file loaded.
This commit is contained in:
parent
255c6771dd
commit
0adf3a2734
@ -10,6 +10,7 @@ import java.util.Set;
|
|||||||
|
|
||||||
import net.sf.openrocket.file.Loader;
|
import net.sf.openrocket.file.Loader;
|
||||||
import net.sf.openrocket.file.preset.PresetCSVReader;
|
import net.sf.openrocket.file.preset.PresetCSVReader;
|
||||||
|
import net.sf.openrocket.logging.LogHelper;
|
||||||
import net.sf.openrocket.preset.ComponentPreset;
|
import net.sf.openrocket.preset.ComponentPreset;
|
||||||
import net.sf.openrocket.preset.InvalidComponentPresetException;
|
import net.sf.openrocket.preset.InvalidComponentPresetException;
|
||||||
import net.sf.openrocket.preset.TypedPropertyMap;
|
import net.sf.openrocket.preset.TypedPropertyMap;
|
||||||
@ -18,11 +19,16 @@ import net.sf.openrocket.util.BugException;
|
|||||||
|
|
||||||
public class ComponentPresetDatabase extends Database<ComponentPreset> implements ComponentPresetDao {
|
public class ComponentPresetDatabase extends Database<ComponentPreset> implements ComponentPresetDao {
|
||||||
|
|
||||||
|
private static final LogHelper log = Application.getLogger();
|
||||||
|
|
||||||
private static class ComponentPresetLoader implements Loader<ComponentPreset> {
|
private static class ComponentPresetLoader implements Loader<ComponentPreset> {
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public Collection<ComponentPreset> load(InputStream stream,
|
public Collection<ComponentPreset> load(InputStream stream,
|
||||||
String filename) throws IOException {
|
String filename) throws IOException {
|
||||||
|
|
||||||
|
log.debug("Loading presets from file " + filename);
|
||||||
|
|
||||||
Set<String> favorites = Application.getPreferences().getComponentFavorites();
|
Set<String> favorites = Application.getPreferences().getComponentFavorites();
|
||||||
|
|
||||||
List<ComponentPreset> returnval = new ArrayList<ComponentPreset>();
|
List<ComponentPreset> returnval = new ArrayList<ComponentPreset>();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user