Commit d0b33f70 authored by ics's avatar ics
Browse files

Add preferences for previous user and instrument (remote connection)

parent bcb39585
...@@ -86,6 +86,9 @@ public class ConfigManager { ...@@ -86,6 +86,9 @@ public class ConfigManager {
public final static String X_UNCLOSEABLE_SPY = "X_UNCLOSEABLE_SPY"; public final static String X_UNCLOSEABLE_SPY = "X_UNCLOSEABLE_SPY";
public final static String Y_UNCLOSEABLE_SPY = "Y_UNCLOSEABLE_SPY"; public final static String Y_UNCLOSEABLE_SPY = "Y_UNCLOSEABLE_SPY";
public final static String MAGNIFY_FACTOR_INDEX = "MAGNIFY_FACTOR_INDEX"; public final static String MAGNIFY_FACTOR_INDEX = "MAGNIFY_FACTOR_INDEX";
public final static String REMOTE_USER_NAME = "REMOTE_USER_NAME";
public final static String REMOTE_INSTRUMENT = "REMOTE_INSTRUMENT";
public final static String USE_NOMADLOGS = "USE_NOMADLOGS"; public final static String USE_NOMADLOGS = "USE_NOMADLOGS";
public final static String X_CONDITIONS_SPY = "X_CONDITIONS_SPY"; public final static String X_CONDITIONS_SPY = "X_CONDITIONS_SPY";
...@@ -147,7 +150,7 @@ public class ConfigManager { ...@@ -147,7 +150,7 @@ public class ConfigManager {
} }
} }
public void initPreferences() { private void initPreferences() {
preferences = new Properties(); preferences = new Properties();
...@@ -228,6 +231,8 @@ public class ConfigManager { ...@@ -228,6 +231,8 @@ public class ConfigManager {
clientType = getString(ConfigManager.CLIENT_TYPE_PROPERTY).toLowerCase(); clientType = getString(ConfigManager.CLIENT_TYPE_PROPERTY).toLowerCase();
mainClient = (clientType.equals(TokenManager.ClientType.MAIN.toString().toLowerCase()) || clientType.equals(TokenManager.ClientType.TABLET.toString().toLowerCase())); mainClient = (clientType.equals(TokenManager.ClientType.MAIN.toString().toLowerCase()) || clientType.equals(TokenManager.ClientType.TABLET.toString().toLowerCase()));
remoteClient = !mainClient; remoteClient = !mainClient;
initPreferences();
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment