|
24 | 24 | import processing.app.helpers.FileUtils;
|
25 | 25 | import processing.app.helpers.OSUtils;
|
26 | 26 | import processing.app.helpers.PreferencesHelper;
|
| 27 | +import processing.app.helpers.PreferencesMap; |
27 | 28 | import processing.app.legacy.PApplet;
|
28 | 29 |
|
29 | 30 | import javax.swing.*;
|
@@ -854,12 +855,69 @@ protected void showFrame(Editor editor) {
|
854 | 855 | dialog.setVisible(true);
|
855 | 856 | }
|
856 | 857 |
|
857 |
| - |
858 |
| - static protected void save() { |
| 858 | + @Deprecated |
| 859 | + protected static void save() { |
859 | 860 | PreferencesData.save();
|
860 | 861 | }
|
861 | 862 |
|
| 863 | + @Deprecated |
| 864 | + public static String get(String attribute) { |
| 865 | + return PreferencesData.get(attribute); |
| 866 | + } |
862 | 867 |
|
863 |
| - // ................................................................. |
| 868 | + @Deprecated |
| 869 | + public static String get(String attribute, String defaultValue) { |
| 870 | + return PreferencesData.get(attribute, defaultValue); |
| 871 | + } |
| 872 | + |
| 873 | + @Deprecated |
| 874 | + public static boolean has(String key) { |
| 875 | + return PreferencesData.has(key); |
| 876 | + } |
| 877 | + |
| 878 | + @Deprecated |
| 879 | + public static void remove(String key) { |
| 880 | + PreferencesData.remove(key); |
| 881 | + } |
| 882 | + |
| 883 | + @Deprecated |
| 884 | + public static void set(String attribute, String value) { |
| 885 | + PreferencesData.set(attribute, value); |
| 886 | + } |
| 887 | + |
| 888 | + @Deprecated |
| 889 | + public static boolean getBoolean(String attribute) { |
| 890 | + return PreferencesData.getBoolean(attribute); |
| 891 | + } |
| 892 | + |
| 893 | + @Deprecated |
| 894 | + public static void setBoolean(String attribute, boolean value) { |
| 895 | + PreferencesData.setBoolean(attribute, value); |
| 896 | + } |
| 897 | + |
| 898 | + @Deprecated |
| 899 | + public static int getInteger(String attribute) { |
| 900 | + return PreferencesData.getInteger(attribute); |
| 901 | + } |
| 902 | + |
| 903 | + @Deprecated |
| 904 | + public static int getInteger(String attribute, int defaultValue) { |
| 905 | + return PreferencesData.getInteger(attribute, defaultValue); |
| 906 | + } |
| 907 | + |
| 908 | + @Deprecated |
| 909 | + public static void setInteger(String key, int value) { |
| 910 | + PreferencesData.setInteger(key, value); |
| 911 | + } |
| 912 | + |
| 913 | + @Deprecated |
| 914 | + public static PreferencesMap getMap() { |
| 915 | + return PreferencesData.getMap(); |
| 916 | + } |
| 917 | + |
| 918 | + @Deprecated |
| 919 | + public static void setDoSave(boolean value) { |
| 920 | + PreferencesData.setDoSave(value); |
| 921 | + } |
864 | 922 |
|
865 | 923 | }
|
0 commit comments