RDL-Editor/com.minres.rdl.parent/com.minres.rdl/src/com/minres/rdl/preferences/RdlPreferences.java

19 lines
646 B
Java
Raw Normal View History

2017-09-12 12:48:21 +02:00
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() {
2017-09-19 21:50:42 +02:00
return getPreferenceStore().get(PreferenceConstants.P_ADDRESSUNIT, System.getProperty(PreferenceConstants.ADDRESSUNIT_PROP));
2017-09-12 12:48:21 +02:00
}
public static IEclipsePreferences getPreferenceStore() {
2017-09-19 21:50:42 +02:00
return InstanceScope.INSTANCE.getNode(PreferenceConstants.SCOPE_NAME);
2017-09-12 12:48:21 +02:00
}
}