Changeset 8509 in josm for trunk/src/org/openstreetmap/josm/data/CustomConfigurator.java
- Timestamp:
- 2015-06-20T14:36:00+02:00 (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/data/CustomConfigurator.java
r8470 r8509 180 180 if (!opts.isEmpty()) { 181 181 String[] options = opts.split(";"); 182 answer = JOptionPane.showOptionDialog(Main.parent, text, "Question", JOptionPane.YES_NO_CANCEL_OPTION, JOptionPane.QUESTION_MESSAGE, null, options, 0); 182 answer = JOptionPane.showOptionDialog(Main.parent, text, "Question", 183 JOptionPane.YES_NO_CANCEL_OPTION, JOptionPane.QUESTION_MESSAGE, null, options, 0); 183 184 } else { 184 answer = JOptionPane.showOptionDialog(Main.parent, text, "Question", JOptionPane.YES_NO_CANCEL_OPTION, JOptionPane.QUESTION_MESSAGE, null, null, 2); 185 answer = JOptionPane.showOptionDialog(Main.parent, text, "Question", 186 JOptionPane.YES_NO_CANCEL_OPTION, JOptionPane.QUESTION_MESSAGE, null, null, 2); 185 187 } 186 188 if (answer==null) return -1; else return answer; … … 229 231 * Export specified preferences keys to configuration file 230 232 * @param filename - name of file 231 * @param append - will the preferences be appended to existing ones when file is imported later. Elsewhere preferences from file will replace existing keys. 233 * @param append - will the preferences be appended to existing ones when file is imported later. 234 * Elsewhere preferences from file will replace existing keys. 232 235 * @param keys - collection of preferences key names to save 233 236 */ … … 1042 1045 * @throws ScriptException if the evaluation fails 1043 1046 */ 1044 public static void loadPrefsToJS(ScriptEngine engine, Preferences tmpPref, String whereToPutInJS, boolean includeDefaults) throws ScriptException { 1047 public static void loadPrefsToJS(ScriptEngine engine, Preferences tmpPref, String whereToPutInJS, boolean includeDefaults) 1048 throws ScriptException { 1045 1049 Map<String, String> stringMap = new TreeMap<>(); 1046 1050 Map<String, List<String>> listMap = new TreeMap<>();
Note:
See TracChangeset
for help on using the changeset viewer.