Changeset 23330 in osm for applications/editors/josm
- Timestamp:
- 2010-09-24T17:34:15+02:00 (14 years ago)
- Location:
- applications/editors/josm/plugins/buildings_tools
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/buildings_tools/.settings/org.eclipse.jdt.core.prefs
r21801 r23330 1 # Sat Jun 19 21:24:56MSD 20101 #Fri Sep 24 19:30:08 MSD 2010 2 2 eclipse.preferences.version=1 3 3 org.eclipse.jdt.core.formatter.align_type_members_on_columns=false 4 4 org.eclipse.jdt.core.formatter.alignment_for_arguments_in_allocation_expression=16 5 org.eclipse.jdt.core.formatter.alignment_for_arguments_in_annotation=0 5 6 org.eclipse.jdt.core.formatter.alignment_for_arguments_in_enum_constant=16 6 7 org.eclipse.jdt.core.formatter.alignment_for_arguments_in_explicit_constructor_call=16 … … 13 14 org.eclipse.jdt.core.formatter.alignment_for_enum_constants=0 14 15 org.eclipse.jdt.core.formatter.alignment_for_expressions_in_array_initializer=16 16 org.eclipse.jdt.core.formatter.alignment_for_method_declaration=0 15 17 org.eclipse.jdt.core.formatter.alignment_for_multiple_fields=16 16 18 org.eclipse.jdt.core.formatter.alignment_for_parameters_in_constructor_declaration=16 … … 57 59 org.eclipse.jdt.core.formatter.comment.insert_new_line_for_parameter=insert 58 60 org.eclipse.jdt.core.formatter.comment.line_length=80 61 org.eclipse.jdt.core.formatter.comment.new_lines_at_block_boundaries=true 62 org.eclipse.jdt.core.formatter.comment.new_lines_at_javadoc_boundaries=true 59 63 org.eclipse.jdt.core.formatter.compact_else_if=true 60 64 org.eclipse.jdt.core.formatter.continuation_indentation=2 61 65 org.eclipse.jdt.core.formatter.continuation_indentation_for_array_initializer=2 66 org.eclipse.jdt.core.formatter.disabling_tag=@formatter\:off 67 org.eclipse.jdt.core.formatter.enabling_tag=@formatter\:on 62 68 org.eclipse.jdt.core.formatter.format_guardian_clause_on_one_line=false 69 org.eclipse.jdt.core.formatter.format_line_comment_starting_on_first_column=true 63 70 org.eclipse.jdt.core.formatter.indent_body_declarations_compare_to_annotation_declaration_header=true 64 71 org.eclipse.jdt.core.formatter.indent_body_declarations_compare_to_enum_constant_header=true … … 75 82 org.eclipse.jdt.core.formatter.insert_new_line_after_annotation_on_member=insert 76 83 org.eclipse.jdt.core.formatter.insert_new_line_after_annotation_on_parameter=do not insert 84 org.eclipse.jdt.core.formatter.insert_new_line_after_label=do not insert 77 85 org.eclipse.jdt.core.formatter.insert_new_line_after_opening_brace_in_array_initializer=do not insert 78 86 org.eclipse.jdt.core.formatter.insert_new_line_at_end_of_file_if_missing=do not insert … … 255 263 org.eclipse.jdt.core.formatter.number_of_empty_lines_to_preserve=1 256 264 org.eclipse.jdt.core.formatter.put_empty_statement_on_new_line=true 257 org.eclipse.jdt.core.formatter.tabulation.char= tab265 org.eclipse.jdt.core.formatter.tabulation.char=space 258 266 org.eclipse.jdt.core.formatter.tabulation.size=4 267 org.eclipse.jdt.core.formatter.use_on_off_tags=false 259 268 org.eclipse.jdt.core.formatter.use_tabs_only_for_leading_indentations=false 260 269 org.eclipse.jdt.core.formatter.wrap_before_binary_operator=true 270 org.eclipse.jdt.core.formatter.wrap_outer_expressions_when_nested=true -
applications/editors/josm/plugins/buildings_tools/build.xml
r23124 r23330 31 31 32 32 <!-- enter the SVN commit message --> 33 <property name="commit.message" value=" update to josm latest" />33 <property name="commit.message" value="remember buildings tags" /> 34 34 <!-- enter the *lowest* JOSM version this plugin is currently compatible with --> 35 35 <property name="plugin.main.version" value="3518" /> -
applications/editors/josm/plugins/buildings_tools/src/buildings_tools/AdvancedSettingsDialog.java
r23190 r23330 60 60 public void saveSettings() { 61 61 tagsModel.applyToTags(ToolSettings.getTags()); 62 ToolSettings.saveTags(); 62 63 ToolSettings.setBBMode(isBBMode()); 63 64 ToolSettings.setSoftCursor(isSoftCursor()); -
applications/editors/josm/plugins/buildings_tools/src/buildings_tools/ToolSettings.java
r23190 r23330 1 1 package buildings_tools; 2 2 3 import java.util.ArrayList; 4 import java.util.Arrays; 5 import java.util.Collection; 3 6 import java.util.HashMap; 7 import java.util.Iterator; 4 8 import java.util.Map; 9 import java.util.Map.Entry; 10 import java.util.NoSuchElementException; 5 11 6 12 import org.openstreetmap.josm.Main; … … 12 18 private static final Map<String, String> tags = new HashMap<String, String>(); 13 19 private static boolean autoSelect; 14 15 static {16 tags.put("building", "yes");17 }18 20 19 21 public static void setAddrDialog(boolean _useAddr) { … … 39 41 40 42 public static Map<String, String> getTags() { 43 loadTags(); 41 44 return tags; 45 } 46 47 public static void saveTags() { 48 ArrayList<String> values = new ArrayList<String>(tags.size() * 2); 49 for (Entry<String, String> entry : tags.entrySet()) { 50 values.add(entry.getKey()); 51 values.add(entry.getValue()); 52 } 53 Main.pref.putCollection("buildings_tools.tags", values); 54 } 55 56 private static void loadTags() { 57 tags.clear(); 58 Collection<String> values = Main.pref.getCollection("buildings_tools.tags", 59 Arrays.asList(new String[] { "building", "yes" })); 60 try { 61 for (Iterator<String> iterator = values.iterator(); iterator.hasNext();) { 62 tags.put(iterator.next(), iterator.next()); 63 } 64 } catch (NoSuchElementException e) { 65 } 66 42 67 } 43 68
Note:
See TracChangeset
for help on using the changeset viewer.