Changeset 28696 in osm for applications/editors
- Timestamp:
- 2012-09-08T19:09:04+02:00 (12 years ago)
- Location:
- applications/editors/josm/plugins/opendata
- Files:
-
- 2 added
- 1 deleted
- 14 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/opendata/.classpath
r28296 r28696 18 18 <classpathentry combineaccessrules="false" kind="src" path="/JOSM"/> 19 19 <classpathentry kind="lib" path="/JOSM/dist/jts.jar"/> 20 <classpathentry combineaccessrules="false" kind="src" path="/josm-utilsplugin2"/> 20 21 <classpathentry kind="output" path="bin"/> 21 22 </classpath> -
applications/editors/josm/plugins/opendata/.settings/org.eclipse.jdt.core.prefs
r28000 r28696 1 #Mon Feb 06 20:04:14 CET 20122 1 eclipse.preferences.version=1 3 2 org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled … … 81 80 org.eclipse.jdt.core.compiler.problem.varargsArgumentNeedCast=warning 82 81 org.eclipse.jdt.core.compiler.source=1.6 82 org.eclipse.jdt.core.formatter.align_type_members_on_columns=false 83 org.eclipse.jdt.core.formatter.alignment_for_arguments_in_allocation_expression=16 84 org.eclipse.jdt.core.formatter.alignment_for_arguments_in_annotation=0 85 org.eclipse.jdt.core.formatter.alignment_for_arguments_in_enum_constant=16 86 org.eclipse.jdt.core.formatter.alignment_for_arguments_in_explicit_constructor_call=16 87 org.eclipse.jdt.core.formatter.alignment_for_arguments_in_method_invocation=16 88 org.eclipse.jdt.core.formatter.alignment_for_arguments_in_qualified_allocation_expression=16 89 org.eclipse.jdt.core.formatter.alignment_for_assignment=0 90 org.eclipse.jdt.core.formatter.alignment_for_binary_expression=16 91 org.eclipse.jdt.core.formatter.alignment_for_compact_if=16 92 org.eclipse.jdt.core.formatter.alignment_for_conditional_expression=80 93 org.eclipse.jdt.core.formatter.alignment_for_enum_constants=0 94 org.eclipse.jdt.core.formatter.alignment_for_expressions_in_array_initializer=16 95 org.eclipse.jdt.core.formatter.alignment_for_method_declaration=0 96 org.eclipse.jdt.core.formatter.alignment_for_multiple_fields=16 97 org.eclipse.jdt.core.formatter.alignment_for_parameters_in_constructor_declaration=16 98 org.eclipse.jdt.core.formatter.alignment_for_parameters_in_method_declaration=16 99 org.eclipse.jdt.core.formatter.alignment_for_resources_in_try=80 100 org.eclipse.jdt.core.formatter.alignment_for_selector_in_method_invocation=16 101 org.eclipse.jdt.core.formatter.alignment_for_superclass_in_type_declaration=16 102 org.eclipse.jdt.core.formatter.alignment_for_superinterfaces_in_enum_declaration=16 103 org.eclipse.jdt.core.formatter.alignment_for_superinterfaces_in_type_declaration=16 104 org.eclipse.jdt.core.formatter.alignment_for_throws_clause_in_constructor_declaration=16 105 org.eclipse.jdt.core.formatter.alignment_for_throws_clause_in_method_declaration=16 106 org.eclipse.jdt.core.formatter.alignment_for_union_type_in_multicatch=16 107 org.eclipse.jdt.core.formatter.blank_lines_after_imports=1 108 org.eclipse.jdt.core.formatter.blank_lines_after_package=1 109 org.eclipse.jdt.core.formatter.blank_lines_before_field=0 110 org.eclipse.jdt.core.formatter.blank_lines_before_first_class_body_declaration=0 111 org.eclipse.jdt.core.formatter.blank_lines_before_imports=1 112 org.eclipse.jdt.core.formatter.blank_lines_before_member_type=1 113 org.eclipse.jdt.core.formatter.blank_lines_before_method=1 114 org.eclipse.jdt.core.formatter.blank_lines_before_new_chunk=1 115 org.eclipse.jdt.core.formatter.blank_lines_before_package=0 116 org.eclipse.jdt.core.formatter.blank_lines_between_import_groups=1 117 org.eclipse.jdt.core.formatter.blank_lines_between_type_declarations=1 118 org.eclipse.jdt.core.formatter.brace_position_for_annotation_type_declaration=end_of_line 119 org.eclipse.jdt.core.formatter.brace_position_for_anonymous_type_declaration=end_of_line 120 org.eclipse.jdt.core.formatter.brace_position_for_array_initializer=end_of_line 121 org.eclipse.jdt.core.formatter.brace_position_for_block=end_of_line 122 org.eclipse.jdt.core.formatter.brace_position_for_block_in_case=end_of_line 123 org.eclipse.jdt.core.formatter.brace_position_for_constructor_declaration=end_of_line 124 org.eclipse.jdt.core.formatter.brace_position_for_enum_constant=end_of_line 125 org.eclipse.jdt.core.formatter.brace_position_for_enum_declaration=end_of_line 126 org.eclipse.jdt.core.formatter.brace_position_for_method_declaration=end_of_line 127 org.eclipse.jdt.core.formatter.brace_position_for_switch=end_of_line 128 org.eclipse.jdt.core.formatter.brace_position_for_type_declaration=end_of_line 129 org.eclipse.jdt.core.formatter.comment.clear_blank_lines_in_block_comment=false 130 org.eclipse.jdt.core.formatter.comment.clear_blank_lines_in_javadoc_comment=false 131 org.eclipse.jdt.core.formatter.comment.format_block_comments=true 132 org.eclipse.jdt.core.formatter.comment.format_header=false 133 org.eclipse.jdt.core.formatter.comment.format_html=true 134 org.eclipse.jdt.core.formatter.comment.format_javadoc_comments=true 135 org.eclipse.jdt.core.formatter.comment.format_line_comments=true 136 org.eclipse.jdt.core.formatter.comment.format_source_code=true 137 org.eclipse.jdt.core.formatter.comment.indent_parameter_description=true 138 org.eclipse.jdt.core.formatter.comment.indent_root_tags=true 139 org.eclipse.jdt.core.formatter.comment.insert_new_line_before_root_tags=insert 140 org.eclipse.jdt.core.formatter.comment.insert_new_line_for_parameter=insert 141 org.eclipse.jdt.core.formatter.comment.line_length=80 142 org.eclipse.jdt.core.formatter.comment.new_lines_at_block_boundaries=true 143 org.eclipse.jdt.core.formatter.comment.new_lines_at_javadoc_boundaries=true 144 org.eclipse.jdt.core.formatter.comment.preserve_white_space_between_code_and_line_comments=false 145 org.eclipse.jdt.core.formatter.compact_else_if=true 146 org.eclipse.jdt.core.formatter.continuation_indentation=2 147 org.eclipse.jdt.core.formatter.continuation_indentation_for_array_initializer=2 148 org.eclipse.jdt.core.formatter.disabling_tag=@formatter\:off 149 org.eclipse.jdt.core.formatter.enabling_tag=@formatter\:on 150 org.eclipse.jdt.core.formatter.format_guardian_clause_on_one_line=false 151 org.eclipse.jdt.core.formatter.format_line_comment_starting_on_first_column=true 152 org.eclipse.jdt.core.formatter.indent_body_declarations_compare_to_annotation_declaration_header=true 153 org.eclipse.jdt.core.formatter.indent_body_declarations_compare_to_enum_constant_header=true 154 org.eclipse.jdt.core.formatter.indent_body_declarations_compare_to_enum_declaration_header=true 155 org.eclipse.jdt.core.formatter.indent_body_declarations_compare_to_type_header=true 156 org.eclipse.jdt.core.formatter.indent_breaks_compare_to_cases=true 157 org.eclipse.jdt.core.formatter.indent_empty_lines=false 158 org.eclipse.jdt.core.formatter.indent_statements_compare_to_block=true 159 org.eclipse.jdt.core.formatter.indent_statements_compare_to_body=true 160 org.eclipse.jdt.core.formatter.indent_switchstatements_compare_to_cases=true 161 org.eclipse.jdt.core.formatter.indent_switchstatements_compare_to_switch=false 162 org.eclipse.jdt.core.formatter.indentation.size=4 163 org.eclipse.jdt.core.formatter.insert_new_line_after_annotation_on_field=insert 164 org.eclipse.jdt.core.formatter.insert_new_line_after_annotation_on_local_variable=insert 165 org.eclipse.jdt.core.formatter.insert_new_line_after_annotation_on_method=insert 166 org.eclipse.jdt.core.formatter.insert_new_line_after_annotation_on_package=insert 167 org.eclipse.jdt.core.formatter.insert_new_line_after_annotation_on_parameter=do not insert 168 org.eclipse.jdt.core.formatter.insert_new_line_after_annotation_on_type=insert 169 org.eclipse.jdt.core.formatter.insert_new_line_after_label=do not insert 170 org.eclipse.jdt.core.formatter.insert_new_line_after_opening_brace_in_array_initializer=do not insert 171 org.eclipse.jdt.core.formatter.insert_new_line_at_end_of_file_if_missing=do not insert 172 org.eclipse.jdt.core.formatter.insert_new_line_before_catch_in_try_statement=do not insert 173 org.eclipse.jdt.core.formatter.insert_new_line_before_closing_brace_in_array_initializer=do not insert 174 org.eclipse.jdt.core.formatter.insert_new_line_before_else_in_if_statement=do not insert 175 org.eclipse.jdt.core.formatter.insert_new_line_before_finally_in_try_statement=do not insert 176 org.eclipse.jdt.core.formatter.insert_new_line_before_while_in_do_statement=do not insert 177 org.eclipse.jdt.core.formatter.insert_new_line_in_empty_annotation_declaration=insert 178 org.eclipse.jdt.core.formatter.insert_new_line_in_empty_anonymous_type_declaration=insert 179 org.eclipse.jdt.core.formatter.insert_new_line_in_empty_block=insert 180 org.eclipse.jdt.core.formatter.insert_new_line_in_empty_enum_constant=insert 181 org.eclipse.jdt.core.formatter.insert_new_line_in_empty_enum_declaration=insert 182 org.eclipse.jdt.core.formatter.insert_new_line_in_empty_method_body=insert 183 org.eclipse.jdt.core.formatter.insert_new_line_in_empty_type_declaration=insert 184 org.eclipse.jdt.core.formatter.insert_space_after_and_in_type_parameter=insert 185 org.eclipse.jdt.core.formatter.insert_space_after_assignment_operator=insert 186 org.eclipse.jdt.core.formatter.insert_space_after_at_in_annotation=do not insert 187 org.eclipse.jdt.core.formatter.insert_space_after_at_in_annotation_type_declaration=do not insert 188 org.eclipse.jdt.core.formatter.insert_space_after_binary_operator=insert 189 org.eclipse.jdt.core.formatter.insert_space_after_closing_angle_bracket_in_type_arguments=insert 190 org.eclipse.jdt.core.formatter.insert_space_after_closing_angle_bracket_in_type_parameters=insert 191 org.eclipse.jdt.core.formatter.insert_space_after_closing_brace_in_block=insert 192 org.eclipse.jdt.core.formatter.insert_space_after_closing_paren_in_cast=insert 193 org.eclipse.jdt.core.formatter.insert_space_after_colon_in_assert=insert 194 org.eclipse.jdt.core.formatter.insert_space_after_colon_in_case=insert 195 org.eclipse.jdt.core.formatter.insert_space_after_colon_in_conditional=insert 196 org.eclipse.jdt.core.formatter.insert_space_after_colon_in_for=insert 197 org.eclipse.jdt.core.formatter.insert_space_after_colon_in_labeled_statement=insert 198 org.eclipse.jdt.core.formatter.insert_space_after_comma_in_allocation_expression=insert 199 org.eclipse.jdt.core.formatter.insert_space_after_comma_in_annotation=insert 200 org.eclipse.jdt.core.formatter.insert_space_after_comma_in_array_initializer=insert 201 org.eclipse.jdt.core.formatter.insert_space_after_comma_in_constructor_declaration_parameters=insert 202 org.eclipse.jdt.core.formatter.insert_space_after_comma_in_constructor_declaration_throws=insert 203 org.eclipse.jdt.core.formatter.insert_space_after_comma_in_enum_constant_arguments=insert 204 org.eclipse.jdt.core.formatter.insert_space_after_comma_in_enum_declarations=insert 205 org.eclipse.jdt.core.formatter.insert_space_after_comma_in_explicitconstructorcall_arguments=insert 206 org.eclipse.jdt.core.formatter.insert_space_after_comma_in_for_increments=insert 207 org.eclipse.jdt.core.formatter.insert_space_after_comma_in_for_inits=insert 208 org.eclipse.jdt.core.formatter.insert_space_after_comma_in_method_declaration_parameters=insert 209 org.eclipse.jdt.core.formatter.insert_space_after_comma_in_method_declaration_throws=insert 210 org.eclipse.jdt.core.formatter.insert_space_after_comma_in_method_invocation_arguments=insert 211 org.eclipse.jdt.core.formatter.insert_space_after_comma_in_multiple_field_declarations=insert 212 org.eclipse.jdt.core.formatter.insert_space_after_comma_in_multiple_local_declarations=insert 213 org.eclipse.jdt.core.formatter.insert_space_after_comma_in_parameterized_type_reference=insert 214 org.eclipse.jdt.core.formatter.insert_space_after_comma_in_superinterfaces=insert 215 org.eclipse.jdt.core.formatter.insert_space_after_comma_in_type_arguments=insert 216 org.eclipse.jdt.core.formatter.insert_space_after_comma_in_type_parameters=insert 217 org.eclipse.jdt.core.formatter.insert_space_after_ellipsis=insert 218 org.eclipse.jdt.core.formatter.insert_space_after_opening_angle_bracket_in_parameterized_type_reference=do not insert 219 org.eclipse.jdt.core.formatter.insert_space_after_opening_angle_bracket_in_type_arguments=do not insert 220 org.eclipse.jdt.core.formatter.insert_space_after_opening_angle_bracket_in_type_parameters=do not insert 221 org.eclipse.jdt.core.formatter.insert_space_after_opening_brace_in_array_initializer=insert 222 org.eclipse.jdt.core.formatter.insert_space_after_opening_bracket_in_array_allocation_expression=do not insert 223 org.eclipse.jdt.core.formatter.insert_space_after_opening_bracket_in_array_reference=do not insert 224 org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_annotation=do not insert 225 org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_cast=do not insert 226 org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_catch=do not insert 227 org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_constructor_declaration=do not insert 228 org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_enum_constant=do not insert 229 org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_for=do not insert 230 org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_if=do not insert 231 org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_method_declaration=do not insert 232 org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_method_invocation=do not insert 233 org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_parenthesized_expression=do not insert 234 org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_switch=do not insert 235 org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_synchronized=do not insert 236 org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_try=do not insert 237 org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_while=do not insert 238 org.eclipse.jdt.core.formatter.insert_space_after_postfix_operator=do not insert 239 org.eclipse.jdt.core.formatter.insert_space_after_prefix_operator=do not insert 240 org.eclipse.jdt.core.formatter.insert_space_after_question_in_conditional=insert 241 org.eclipse.jdt.core.formatter.insert_space_after_question_in_wildcard=do not insert 242 org.eclipse.jdt.core.formatter.insert_space_after_semicolon_in_for=insert 243 org.eclipse.jdt.core.formatter.insert_space_after_semicolon_in_try_resources=insert 244 org.eclipse.jdt.core.formatter.insert_space_after_unary_operator=do not insert 245 org.eclipse.jdt.core.formatter.insert_space_before_and_in_type_parameter=insert 246 org.eclipse.jdt.core.formatter.insert_space_before_assignment_operator=insert 247 org.eclipse.jdt.core.formatter.insert_space_before_at_in_annotation_type_declaration=insert 248 org.eclipse.jdt.core.formatter.insert_space_before_binary_operator=insert 249 org.eclipse.jdt.core.formatter.insert_space_before_closing_angle_bracket_in_parameterized_type_reference=do not insert 250 org.eclipse.jdt.core.formatter.insert_space_before_closing_angle_bracket_in_type_arguments=do not insert 251 org.eclipse.jdt.core.formatter.insert_space_before_closing_angle_bracket_in_type_parameters=do not insert 252 org.eclipse.jdt.core.formatter.insert_space_before_closing_brace_in_array_initializer=insert 253 org.eclipse.jdt.core.formatter.insert_space_before_closing_bracket_in_array_allocation_expression=do not insert 254 org.eclipse.jdt.core.formatter.insert_space_before_closing_bracket_in_array_reference=do not insert 255 org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_annotation=do not insert 256 org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_cast=do not insert 257 org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_catch=do not insert 258 org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_constructor_declaration=do not insert 259 org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_enum_constant=do not insert 260 org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_for=do not insert 261 org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_if=do not insert 262 org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_method_declaration=do not insert 263 org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_method_invocation=do not insert 264 org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_parenthesized_expression=do not insert 265 org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_switch=do not insert 266 org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_synchronized=do not insert 267 org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_try=do not insert 268 org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_while=do not insert 269 org.eclipse.jdt.core.formatter.insert_space_before_colon_in_assert=insert 270 org.eclipse.jdt.core.formatter.insert_space_before_colon_in_case=do not insert 271 org.eclipse.jdt.core.formatter.insert_space_before_colon_in_conditional=insert 272 org.eclipse.jdt.core.formatter.insert_space_before_colon_in_default=do not insert 273 org.eclipse.jdt.core.formatter.insert_space_before_colon_in_for=insert 274 org.eclipse.jdt.core.formatter.insert_space_before_colon_in_labeled_statement=do not insert 275 org.eclipse.jdt.core.formatter.insert_space_before_comma_in_allocation_expression=do not insert 276 org.eclipse.jdt.core.formatter.insert_space_before_comma_in_annotation=do not insert 277 org.eclipse.jdt.core.formatter.insert_space_before_comma_in_array_initializer=do not insert 278 org.eclipse.jdt.core.formatter.insert_space_before_comma_in_constructor_declaration_parameters=do not insert 279 org.eclipse.jdt.core.formatter.insert_space_before_comma_in_constructor_declaration_throws=do not insert 280 org.eclipse.jdt.core.formatter.insert_space_before_comma_in_enum_constant_arguments=do not insert 281 org.eclipse.jdt.core.formatter.insert_space_before_comma_in_enum_declarations=do not insert 282 org.eclipse.jdt.core.formatter.insert_space_before_comma_in_explicitconstructorcall_arguments=do not insert 283 org.eclipse.jdt.core.formatter.insert_space_before_comma_in_for_increments=do not insert 284 org.eclipse.jdt.core.formatter.insert_space_before_comma_in_for_inits=do not insert 285 org.eclipse.jdt.core.formatter.insert_space_before_comma_in_method_declaration_parameters=do not insert 286 org.eclipse.jdt.core.formatter.insert_space_before_comma_in_method_declaration_throws=do not insert 287 org.eclipse.jdt.core.formatter.insert_space_before_comma_in_method_invocation_arguments=do not insert 288 org.eclipse.jdt.core.formatter.insert_space_before_comma_in_multiple_field_declarations=do not insert 289 org.eclipse.jdt.core.formatter.insert_space_before_comma_in_multiple_local_declarations=do not insert 290 org.eclipse.jdt.core.formatter.insert_space_before_comma_in_parameterized_type_reference=do not insert 291 org.eclipse.jdt.core.formatter.insert_space_before_comma_in_superinterfaces=do not insert 292 org.eclipse.jdt.core.formatter.insert_space_before_comma_in_type_arguments=do not insert 293 org.eclipse.jdt.core.formatter.insert_space_before_comma_in_type_parameters=do not insert 294 org.eclipse.jdt.core.formatter.insert_space_before_ellipsis=do not insert 295 org.eclipse.jdt.core.formatter.insert_space_before_opening_angle_bracket_in_parameterized_type_reference=do not insert 296 org.eclipse.jdt.core.formatter.insert_space_before_opening_angle_bracket_in_type_arguments=do not insert 297 org.eclipse.jdt.core.formatter.insert_space_before_opening_angle_bracket_in_type_parameters=do not insert 298 org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_annotation_type_declaration=insert 299 org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_anonymous_type_declaration=insert 300 org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_array_initializer=insert 301 org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_block=insert 302 org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_constructor_declaration=insert 303 org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_enum_constant=insert 304 org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_enum_declaration=insert 305 org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_method_declaration=insert 306 org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_switch=insert 307 org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_type_declaration=insert 308 org.eclipse.jdt.core.formatter.insert_space_before_opening_bracket_in_array_allocation_expression=do not insert 309 org.eclipse.jdt.core.formatter.insert_space_before_opening_bracket_in_array_reference=do not insert 310 org.eclipse.jdt.core.formatter.insert_space_before_opening_bracket_in_array_type_reference=do not insert 311 org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_annotation=do not insert 312 org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_annotation_type_member_declaration=do not insert 313 org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_catch=insert 314 org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_constructor_declaration=do not insert 315 org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_enum_constant=do not insert 316 org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_for=insert 317 org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_if=insert 318 org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_method_declaration=do not insert 319 org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_method_invocation=do not insert 320 org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_parenthesized_expression=do not insert 321 org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_switch=insert 322 org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_synchronized=insert 323 org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_try=insert 324 org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_while=insert 325 org.eclipse.jdt.core.formatter.insert_space_before_parenthesized_expression_in_return=insert 326 org.eclipse.jdt.core.formatter.insert_space_before_parenthesized_expression_in_throw=insert 327 org.eclipse.jdt.core.formatter.insert_space_before_postfix_operator=do not insert 328 org.eclipse.jdt.core.formatter.insert_space_before_prefix_operator=do not insert 329 org.eclipse.jdt.core.formatter.insert_space_before_question_in_conditional=insert 330 org.eclipse.jdt.core.formatter.insert_space_before_question_in_wildcard=do not insert 331 org.eclipse.jdt.core.formatter.insert_space_before_semicolon=do not insert 332 org.eclipse.jdt.core.formatter.insert_space_before_semicolon_in_for=do not insert 333 org.eclipse.jdt.core.formatter.insert_space_before_semicolon_in_try_resources=do not insert 334 org.eclipse.jdt.core.formatter.insert_space_before_unary_operator=do not insert 335 org.eclipse.jdt.core.formatter.insert_space_between_brackets_in_array_type_reference=do not insert 336 org.eclipse.jdt.core.formatter.insert_space_between_empty_braces_in_array_initializer=do not insert 337 org.eclipse.jdt.core.formatter.insert_space_between_empty_brackets_in_array_allocation_expression=do not insert 338 org.eclipse.jdt.core.formatter.insert_space_between_empty_parens_in_annotation_type_member_declaration=do not insert 339 org.eclipse.jdt.core.formatter.insert_space_between_empty_parens_in_constructor_declaration=do not insert 340 org.eclipse.jdt.core.formatter.insert_space_between_empty_parens_in_enum_constant=do not insert 341 org.eclipse.jdt.core.formatter.insert_space_between_empty_parens_in_method_declaration=do not insert 342 org.eclipse.jdt.core.formatter.insert_space_between_empty_parens_in_method_invocation=do not insert 343 org.eclipse.jdt.core.formatter.join_lines_in_comments=true 344 org.eclipse.jdt.core.formatter.join_wrapped_lines=true 345 org.eclipse.jdt.core.formatter.keep_else_statement_on_same_line=false 346 org.eclipse.jdt.core.formatter.keep_empty_array_initializer_on_one_line=false 347 org.eclipse.jdt.core.formatter.keep_imple_if_on_one_line=false 348 org.eclipse.jdt.core.formatter.keep_then_statement_on_same_line=false 349 org.eclipse.jdt.core.formatter.lineSplit=80 350 org.eclipse.jdt.core.formatter.never_indent_block_comments_on_first_column=false 351 org.eclipse.jdt.core.formatter.never_indent_line_comments_on_first_column=false 352 org.eclipse.jdt.core.formatter.number_of_blank_lines_at_beginning_of_method_body=0 353 org.eclipse.jdt.core.formatter.number_of_empty_lines_to_preserve=1 354 org.eclipse.jdt.core.formatter.put_empty_statement_on_new_line=true 355 org.eclipse.jdt.core.formatter.tabulation.char=space 356 org.eclipse.jdt.core.formatter.tabulation.size=4 357 org.eclipse.jdt.core.formatter.use_on_off_tags=false 358 org.eclipse.jdt.core.formatter.use_tabs_only_for_leading_indentations=true 359 org.eclipse.jdt.core.formatter.wrap_before_binary_operator=true 360 org.eclipse.jdt.core.formatter.wrap_before_or_operator_multicatch=true 361 org.eclipse.jdt.core.formatter.wrap_outer_expressions_when_nested=true -
applications/editors/josm/plugins/opendata/build.xml
r28591 r28696 179 179 <attribute name="Plugin-Link" value="http://wiki.openstreetmap.org/wiki/JOSM/Plugins/OpenData"/> 180 180 <attribute name="Plugin-Mainversion" value="${plugin.main.version}"/> 181 <attribute name="Plugin-Requires" value="jts "/>181 <attribute name="Plugin-Requires" value="jts;utilsplugin2"/> 182 182 <attribute name="Plugin-Version" value="${version.entry.commit.revision}"/> 183 183 </manifest> -
applications/editors/josm/plugins/opendata/modules/fr.toulouse/build.xml
r28000 r28696 30 30 <property name="plugin.dist.dir" value="../../../../dist"/> 31 31 <property name="opendata" location="${plugin.dist.dir}/opendata.jar"/> 32 <property name="utilsplugin2" location="${plugin.dist.dir}/utilsplugin2.jar"/> 32 33 <property name="module.build.dir" value="build"/> 33 34 <property name="module.src.dir" value="src"/> … … 64 65 <pathelement location="${josm}"/> 65 66 <pathelement location="${opendata}"/> 67 <pathelement location="${utilsplugin2}"/> 66 68 </classpath> 67 69 <compilerarg value="-Xlint:deprecation"/> -
applications/editors/josm/plugins/opendata/modules/fr.toulouse/src/org/openstreetmap/josm/plugins/opendata/modules/fr/toulouse/ToulouseModule.java
r28554 r28696 16 16 package org.openstreetmap.josm.plugins.opendata.modules.fr.toulouse; 17 17 18 import java.util.Collection; 19 import java.util.Comparator; 20 import java.util.TreeSet; 21 22 import org.openstreetmap.josm.Main; 23 import org.openstreetmap.josm.data.osm.DataSet; 24 import org.openstreetmap.josm.data.osm.Relation; 25 import org.openstreetmap.josm.gui.progress.NullProgressMonitor; 26 import org.openstreetmap.josm.io.OsmTransferException; 27 import org.openstreetmap.josm.plugins.opendata.core.io.NetworkReader; 18 28 import org.openstreetmap.josm.plugins.opendata.core.modules.AbstractModule; 19 29 import org.openstreetmap.josm.plugins.opendata.core.modules.ModuleInformation; 30 import org.openstreetmap.josm.plugins.opendata.modules.fr.toulouse.datasets.ToulouseDataSetHandler; 20 31 import org.openstreetmap.josm.plugins.opendata.modules.fr.toulouse.datasets.associations.Club3eAgeHandler; 21 32 import org.openstreetmap.josm.plugins.opendata.modules.fr.toulouse.datasets.citoyennete.BureauxVoteHandler; … … 102 113 handlers.add(InstallationSportiveToulouseHandler.class); 103 114 } 115 116 public static final DataSet data = new DataSet(); 117 118 private static final Collection<Relation> getBoundaries(int admin_level) { 119 Collection<Relation> result = new TreeSet<Relation>(new Comparator<Relation>() { 120 @Override 121 public int compare(Relation o1, Relation o2) { 122 return o1.get("ref").compareTo(o2.get("ref")); 123 } 124 }); 125 synchronized (data) { 126 for (Relation r : data.getRelations()) { 127 if (r.hasTag("admin_level", Integer.toString(admin_level)) && 128 (r.hasKey("name") || r.hasKey("ref") || r.hasKey("description"))) { 129 result.add(r); 130 } 131 } 132 } 133 return result; 134 } 135 136 public static final void downloadData() { 137 synchronized (data) { 138 if (data.allPrimitives().isEmpty()) { 139 for (final ToulouseDataSetHandler handler : new ToulouseDataSetHandler[]{ 140 new SecteursHandler(), new QuartiersHandler()}) { 141 Main.worker.submit(new Runnable() { 142 @Override 143 public void run() { 144 try { 145 DataSet ds = new NetworkReader(handler.getDataURL().toString(), handler, false). 146 parseOsm(NullProgressMonitor.INSTANCE); 147 handler.updateDataSet(ds); 148 synchronized (data) { 149 data.mergeFrom(ds); 150 } 151 } catch (OsmTransferException e) { 152 e.printStackTrace(); 153 } 154 } 155 }); 156 } 157 } 158 } 159 } 160 161 public static final Collection<Relation> getSectors() { 162 return getBoundaries(10); 163 } 164 165 public static final Collection<Relation> getNeighbourhoods() { 166 return getBoundaries(11); 167 } 104 168 } -
applications/editors/josm/plugins/opendata/modules/fr.toulouse/src/org/openstreetmap/josm/plugins/opendata/modules/fr/toulouse/datasets/ToulouseDataSetHandler.java
r28554 r28696 16 16 package org.openstreetmap.josm.plugins.opendata.modules.fr.toulouse.datasets; 17 17 18 import static org.openstreetmap.josm.tools.I18n.marktr; 19 import static org.openstreetmap.josm.tools.I18n.tr; 20 21 import java.awt.event.ActionEvent; 18 22 import java.net.MalformedURLException; 19 23 import java.util.Collection; 24 import java.util.Collections; 25 26 import org.openstreetmap.josm.Main; 27 import org.openstreetmap.josm.actions.JosmAction; 28 import org.openstreetmap.josm.data.osm.DataSet; 29 import org.openstreetmap.josm.data.osm.Node; 30 import org.openstreetmap.josm.data.osm.OsmPrimitive; 31 import org.openstreetmap.josm.data.osm.Relation; 20 32 import org.openstreetmap.josm.data.osm.Tag; 33 import org.openstreetmap.josm.data.osm.Way; 34 import org.openstreetmap.josm.data.osm.event.AbstractDatasetChangedEvent; 35 import org.openstreetmap.josm.data.osm.event.DataChangedEvent; 36 import org.openstreetmap.josm.data.osm.event.DataSetListener; 37 import org.openstreetmap.josm.data.osm.event.NodeMovedEvent; 38 import org.openstreetmap.josm.data.osm.event.PrimitivesAddedEvent; 39 import org.openstreetmap.josm.data.osm.event.PrimitivesRemovedEvent; 40 import org.openstreetmap.josm.data.osm.event.RelationMembersChangedEvent; 41 import org.openstreetmap.josm.data.osm.event.TagsChangedEvent; 42 import org.openstreetmap.josm.data.osm.event.WayNodesChangedEvent; 43 import org.openstreetmap.josm.plugins.opendata.OdPlugin; 21 44 import org.openstreetmap.josm.plugins.opendata.core.datasets.fr.FrenchDataSetHandler; 45 import org.openstreetmap.josm.plugins.opendata.core.layers.OdDataLayer; 22 46 import org.openstreetmap.josm.plugins.opendata.modules.fr.toulouse.ToulouseConstants; 23 47 import org.openstreetmap.josm.plugins.opendata.modules.fr.toulouse.ToulouseLicense; 48 import org.openstreetmap.josm.plugins.opendata.modules.fr.toulouse.ToulouseModule; 49 import org.openstreetmap.josm.plugins.utilsplugin2.selection.NodeWayUtils; 24 50 25 51 public abstract class ToulouseDataSetHandler extends FrenchDataSetHandler implements ToulouseConstants { … … 66 92 setDataURL(url+"/resource/document"); 67 93 } 94 addTool(new SplitBySector()); 95 addTool(new SplitByNeighbourhood()); 68 96 } catch (MalformedURLException e) { 69 97 e.printStackTrace(); … … 105 133 } 106 134 } 135 136 protected abstract class SplitAction extends JosmAction implements DataSetListener { 137 138 public SplitAction(String name, String desc) { 139 super(name, null, desc, null, false); 140 setEnabled(false); 141 ToulouseModule.data.addDataSetListener(this); 142 } 143 144 protected abstract Collection<Relation> getBoundaries(); 145 146 @Override 147 public void actionPerformed(ActionEvent e) { 148 final String baseName = OdPlugin.getInstance().getDialog().getDataLayer().getName(); 149 final DataSet baseDs = getCurrentDataSet(); 150 for (OsmPrimitive boundary : getBoundaries()) { 151 DataSet data = new DataSet(); 152 for (OsmPrimitive p : NodeWayUtils.selectAllInside(Collections.singleton(boundary), baseDs)) { 153 if (p instanceof Node) { 154 data.addPrimitive(new Node((Node)p)); 155 } else if (p instanceof Way) { 156 data.addPrimitive(new Way((Way)p)); 157 } else if (p instanceof Relation) { 158 data.addPrimitive(new Relation((Relation)p)); 159 } 160 } 161 Main.main.addLayer(new OdDataLayer(data, baseName+"/"+boundary.get("ref"), null, ToulouseDataSetHandler.this)); 162 } 163 } 164 @Override 165 public void dataChanged(DataChangedEvent event) { 166 setEnabled(!getBoundaries().isEmpty()); 167 } 168 @Override 169 public void primitivesAdded(PrimitivesAddedEvent event) { 170 } 171 @Override 172 public void primitivesRemoved(PrimitivesRemovedEvent event) { 173 } 174 @Override 175 public void tagsChanged(TagsChangedEvent event) { 176 } 177 @Override 178 public void nodeMoved(NodeMovedEvent event) { 179 } 180 @Override 181 public void wayNodesChanged(WayNodesChangedEvent event) { 182 } 183 @Override 184 public void relationMembersChanged(RelationMembersChangedEvent event) { 185 } 186 @Override 187 public void otherDatasetChange(AbstractDatasetChangedEvent event) { 188 } 189 } 190 191 protected class SplitBySector extends SplitAction { 192 public SplitBySector() { 193 super(marktr("Split by sector"), tr("Split this data by sector (admin_level=10).")); 194 } 195 @Override 196 protected Collection<Relation> getBoundaries() { 197 return ToulouseModule.getSectors(); 198 } 199 } 200 201 protected class SplitByNeighbourhood extends SplitAction { 202 public SplitByNeighbourhood() { 203 super(marktr("Split by neighbourhood"), tr("Split this data by neighbourhood (admin_level=11).")); 204 } 205 @Override 206 protected Collection<Relation> getBoundaries() { 207 return ToulouseModule.getNeighbourhoods(); 208 } 209 } 210 211 @Override 212 public void notifyActive() { 213 ToulouseModule.downloadData(); 214 } 107 215 } -
applications/editors/josm/plugins/opendata/src/org/openstreetmap/josm/plugins/opendata/OdPlugin.java
r28246 r28696 70 70 private final JMenu menu; 71 71 72 private OdDialog dialog; 73 72 74 public OdPlugin(PluginInformation info) { // NO_UCD 73 75 super(info); … … 167 169 public void mapFrameInitialized(MapFrame oldFrame, MapFrame newFrame) { 168 170 if (newFrame != null) { 169 newFrame.addToggleDialog(new OdDialog()); 171 newFrame.addToggleDialog(dialog = new OdDialog()); 172 } else { 173 dialog = null; 170 174 } 171 175 } … … 203 207 public final File getResourcesDirectory() { 204 208 return getSubDirectory("resources"); 209 } 210 211 public OdDialog getDialog() { 212 return dialog; 205 213 } 206 214 -
applications/editors/josm/plugins/opendata/src/org/openstreetmap/josm/plugins/opendata/core/actions/DownloadDataTask.java
r28143 r28696 53 53 @Override 54 54 public Future<?> loadUrl(boolean newLayer, String url, ProgressMonitor progressMonitor) { 55 downloadTask = new InternalDownloadTasK(newLayer, new NetworkReader(url, handler ), progressMonitor);55 downloadTask = new InternalDownloadTasK(newLayer, new NetworkReader(url, handler, true), progressMonitor); 56 56 currentBounds = null; 57 57 if (handler == null || !handler.hasLicenseToBeAccepted() || askLicenseAgreement(handler.getLicense())) { -
applications/editors/josm/plugins/opendata/src/org/openstreetmap/josm/plugins/opendata/core/datasets/AbstractDataSetHandler.java
r28191 r28696 24 24 import java.util.regex.Pattern; 25 25 26 import org.openstreetmap.josm.actions.JosmAction; 26 27 import org.openstreetmap.josm.data.Bounds; 27 28 import org.openstreetmap.josm.data.coor.LatLon; … … 478 479 } 479 480 } 481 482 // Tools 483 484 private final Collection<JosmAction> tools = new ArrayList<JosmAction>(); 485 486 public final Collection<JosmAction> getTools() { 487 return tools; 488 } 489 490 public final boolean addTool(JosmAction tool) { 491 return tool != null ? tools.add(tool) : false; 492 } 493 494 public final boolean removeTool(JosmAction tool) { 495 return tool != null ? tools.remove(tool) : false; 496 } 497 498 public void notifyActive() { 499 // To be overriden when the handler has specific treatments to perform when its layer becomes active 500 } 480 501 } -
applications/editors/josm/plugins/opendata/src/org/openstreetmap/josm/plugins/opendata/core/gui/OdDialog.java
r28616 r28696 6 6 import java.awt.event.ActionEvent; 7 7 import java.awt.event.KeyEvent; 8 import java.awt.event.MouseAdapter; 9 import java.awt.event.MouseEvent; 8 10 import java.util.Arrays; 9 11 import java.util.List; 10 12 13 import javax.swing.JPopupMenu; 11 14 import javax.swing.JTree; 12 15 import javax.swing.tree.DefaultTreeModel; … … 23 26 import org.openstreetmap.josm.gui.layer.OsmDataLayer; 24 27 import org.openstreetmap.josm.plugins.opendata.core.OdConstants; 25 import org.openstreetmap.josm.plugins.opendata.core.actions.ToolsAction;26 28 import org.openstreetmap.josm.plugins.opendata.core.layers.OdDataLayer; 27 29 import org.openstreetmap.josm.plugins.opendata.core.layers.OdLayer; … … 76 78 } 77 79 } 80 81 private class ToolsAction extends JosmAction { 82 public ToolsAction() { 83 super(marktr("Tools"), "dialogs/utils", tr("Open tools menu for this data."), null, false); 84 } 85 @Override 86 public void actionPerformed(ActionEvent e) { 87 // Done via mouseListener 88 } 89 } 78 90 79 91 public OdDialog() { … … 87 99 diffButton = new SideButton(new DiffAction()), 88 100 toolsButton = new SideButton(new ToolsAction()) 101 }); 102 103 this.toolsButton.addMouseListener(new MouseAdapter() { 104 @Override 105 public void mousePressed(MouseEvent e) { 106 if (Main.main.getEditLayer() instanceof OdLayer) { 107 JPopupMenu popup = new JPopupMenu(); 108 for (JosmAction tool : dataLayer.handler.getTools()) { 109 popup.add(tool); 110 } 111 popup.show(e.getComponent(), e.getX(), e.getY()); 112 } 113 } 89 114 }); 90 115 … … 124 149 diffButton.setEnabled(true); 125 150 } 151 toolsButton.setEnabled(dataLayer.handler != null && !dataLayer.handler.getTools().isEmpty()); 126 152 } else { 127 153 disableAllButtons(); … … 143 169 MapView.removeEditLayerChangeListener(this); 144 170 } 171 172 public OdDataLayer getDataLayer() { 173 return dataLayer; 174 } 145 175 } -
applications/editors/josm/plugins/opendata/src/org/openstreetmap/josm/plugins/opendata/core/io/NetworkReader.java
r28191 r28696 47 47 private final AbstractDataSetHandler handler; 48 48 private Class<? extends AbstractReader> readerClass; 49 private final boolean promptUser; 49 50 50 51 private File file; 51 52 private String filename; 52 53 53 public NetworkReader(String url, AbstractDataSetHandler handler ) {54 public NetworkReader(String url, AbstractDataSetHandler handler, boolean promptUser) { 54 55 CheckParameterUtil.ensureParameterNotNull(url, "url"); 55 56 this.url = url; 56 57 this.handler = handler; 57 58 this.readerClass = null; 59 this.promptUser = promptUser; 58 60 } 59 61 … … 150 152 instance = progressMonitor.createSubTaskMonitor(ProgressMonitor.ALL_TICKS, false); 151 153 if (readerClass.equals(ZipReader.class)) { 152 ZipReader zipReader = new ZipReader(in, handler );154 ZipReader zipReader = new ZipReader(in, handler, promptUser); 153 155 DataSet ds = zipReader.parseDoc(instance); 154 156 file = zipReader.getReadFile(); -
applications/editors/josm/plugins/opendata/src/org/openstreetmap/josm/plugins/opendata/core/io/archive/ZipImporter.java
r28000 r28696 33 33 throws IllegalDataException { 34 34 try { 35 return ZipReader.parseDataSet(in, handler, instance );35 return ZipReader.parseDataSet(in, handler, instance, true); 36 36 } catch (Exception e) { 37 37 throw new IllegalDataException(e); -
applications/editors/josm/plugins/opendata/src/org/openstreetmap/josm/plugins/opendata/core/io/archive/ZipReader.java
r28374 r28696 55 55 private final AbstractDataSetHandler handler; 56 56 private final ZipHandler zipHandler; 57 private final boolean promptUser; 57 58 58 59 private File file; 59 60 60 public ZipReader(InputStream in, AbstractDataSetHandler handler ) {61 public ZipReader(InputStream in, AbstractDataSetHandler handler, boolean promptUser) { 61 62 this.zis = in instanceof ZipInputStream ? (ZipInputStream) in : new ZipInputStream(in); 62 63 this.handler = handler; 63 64 this.zipHandler = handler != null ? handler.getZipHandler() : null; 65 this.promptUser = promptUser; 64 66 } 65 67 66 public static DataSet parseDataSet(InputStream in, AbstractDataSetHandler handler, ProgressMonitor instance) throws IOException, XMLStreamException, FactoryConfigurationError, JAXBException { 67 return new ZipReader(in, handler).parseDoc(instance); 68 public static DataSet parseDataSet(InputStream in, AbstractDataSetHandler handler, ProgressMonitor instance, boolean promptUser) 69 throws IOException, XMLStreamException, FactoryConfigurationError, JAXBException { 70 return new ZipReader(in, handler, promptUser).parseDoc(instance); 68 71 } 69 72 … … 156 159 file = null; 157 160 158 if ( candidates.size() > 1) {161 if (promptUser && candidates.size() > 1) { 159 162 DialogPrompter<CandidateChooser> prompt = new DialogPrompter() { 160 163 @Override … … 166 169 file = prompt.getDialog().getSelectedFile(); 167 170 } 168 } else if ( candidates.size() == 1) {171 } else if (!candidates.isEmpty()) { 169 172 file = candidates.get(0); 170 173 } -
applications/editors/josm/plugins/opendata/src/org/openstreetmap/josm/plugins/opendata/core/layers/OdDataLayer.java
r28185 r28696 115 115 @Override 116 116 public void activeLayerChange(Layer oldLayer, Layer newLayer) { 117 if (newLayer == this && this.handler != null) { 118 this.handler.notifyActive(); 119 } 117 120 } 118 121
Note:
See TracChangeset
for help on using the changeset viewer.