= Iterative step towards combined config file

file shall be config.config, because config.
This commit is contained in:
Matthew Cech
2019-06-19 23:50:45 -07:00
parent 091e06e4ff
commit 8ae6d4adc3
15 changed files with 91 additions and 112 deletions
+25 -12
View File
@@ -8,28 +8,22 @@ import dataStructures.Pair;
// Performs the same localization for the strings associated with command names as
// is performed with general strings in the application
public class LocCommands extends BaseLocFile
public class LocCommands extends BaseLocFile implements IConfigSection
{
public static final String fileName = Config.AssetDirectory + "locCommands.config";
public static final String HeaderName = "Localized Commands";
public static final String function = "LocCommands.stub";
private static LocCommands instance;
public LocCommands()
{
super(fileName, function);
super(function);
GlobalLog.log(LogFilter.Core, "Initializing " + this.getClass().getSimpleName());
if(instance == null)
{
instance = this;
updateLocFromDisk();
scrapeAll();
saveLocToDisk();
fileMonitor = new FileMonitor(filename);
}
else
{
@@ -51,8 +45,27 @@ public class LocCommands extends BaseLocFile
return raw;
}
public static void upkeep()
{
instance.update();
@Override
public String getHeader() {
// TODO Auto-generated method stub
return null;
}
@Override
public void preUpdate() {
// TODO Auto-generated method stub
}
@Override
public void init() {
// TODO Auto-generated method stub
}
@Override
public String getContent() {
// TODO Auto-generated method stub
return null;
}
}