Console should get much smarter around compatibility with older units #6845
only:wow we have so much useful code
This commit is contained in:
parent
dd335b4c5c
commit
d5816e2236
|
@ -40,12 +40,7 @@ public class IniFileModel {
|
|||
private String currentXBins;
|
||||
private final Map<String, String> xBinsByZBins = new TreeMap<>(String.CASE_INSENSITIVE_ORDER);
|
||||
private final Map<String, String> yBinsByZBins = new TreeMap<>(String.CASE_INSENSITIVE_ORDER);
|
||||
|
||||
public static void main(String[] args) {
|
||||
IniFileModel iniFile = new IniFileModel();
|
||||
iniFile.findAndReadIniFile(INI_FILE_PATH);
|
||||
log.info("Dialogs: " + iniFile.dialogs);
|
||||
}
|
||||
private IniFileMetaInfo metaInfo;
|
||||
|
||||
private boolean isInSettingContextHelp = false;
|
||||
private boolean isInsidePageDefinition;
|
||||
|
@ -55,6 +50,10 @@ public class IniFileModel {
|
|||
return readIniFile(fileName);
|
||||
}
|
||||
|
||||
public IniFileMetaInfo getMetaInfo() {
|
||||
return metaInfo;
|
||||
}
|
||||
|
||||
public IniFileModel readIniFile(String fileName) {
|
||||
File input = null;
|
||||
if (fileName != null)
|
||||
|
@ -66,6 +65,7 @@ public class IniFileModel {
|
|||
|
||||
log.info("Reading " + fileName);
|
||||
RawIniFile content = IniFileReader.read(input);
|
||||
metaInfo = new IniFileMetaInfo(content);
|
||||
|
||||
readIniFile(content);
|
||||
return this;
|
||||
|
|
|
@ -0,0 +1,13 @@
|
|||
package com.opensr5.ini;
|
||||
|
||||
import com.devexperts.logging.Logging;
|
||||
|
||||
public class IniFileModelSandbox {
|
||||
private static final Logging log = Logging.getLogging(IniFileModelSandbox.class);
|
||||
|
||||
public static void main(String[] args) {
|
||||
IniFileModel iniFile = new IniFileModel();
|
||||
iniFile.findAndReadIniFile(IniFileModel.INI_FILE_PATH);
|
||||
log.info("Dialogs: " + iniFile.getDialogs());
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue