Fix #22 - move Amidstest Preferences to a separate location from Amidst

master
Treer 2018-08-19 12:58:12 +10:00
parent abd0238189
commit bffe12a033
2 changed files with 14 additions and 1 deletions

View File

@ -115,7 +115,7 @@ public class Amidst {
}
private static AmidstSettings createSettings() {
return new AmidstSettings(Preferences.userNodeForPackage(Amidst.class));
return new AmidstSettings(Preferences.userNodeForPackage(amidstest.Amidstest.class));
}
/**

View File

@ -0,0 +1,13 @@
package amidstest;
/**
* A dummy class used to establish an "amidstest" package namespace
* so that Java Preferences can be stored in a separate location from
* the original Amidst (in case both programs are being used on the
* same machine).
*
* @see Amidst.createSettings()
*/
public class Amidstest {
}