mirror of https://github.com/Minres/RDL-Editor.git
19 lines
629 B
Java
19 lines
629 B
Java
|
package com.minres.rdl.preferences;
|
||
|
|
||
|
import org.eclipse.core.runtime.preferences.IEclipsePreferences;
|
||
|
import org.eclipse.core.runtime.preferences.InstanceScope;
|
||
|
|
||
|
public class RdlPreferences {
|
||
|
|
||
|
public static boolean getGenerateCsv() {
|
||
|
return getPreferenceStore().getBoolean(PreferenceConstants.P_GENERATE_CSV, true);
|
||
|
}
|
||
|
|
||
|
public static String getAddrUnit() {
|
||
|
return getPreferenceStore().get(PreferenceConstants.P_ADDRESSUNIT, System.getProperty("com.minres.rdl.rdl.addrunit"));
|
||
|
}
|
||
|
|
||
|
public static IEclipsePreferences getPreferenceStore() {
|
||
|
return InstanceScope.INSTANCE.getNode("com.minres.rdl.rdl");
|
||
|
}
|
||
|
}
|