Index: plugins/utilsplugin2/src/org/openstreetmap/josm/plugins/utilsplugin2/actions/PasteRelationsAction.java
===================================================================
--- plugins/utilsplugin2/src/org/openstreetmap/josm/plugins/utilsplugin2/actions/PasteRelationsAction.java	(révision 30377)
+++ plugins/utilsplugin2/src/org/openstreetmap/josm/plugins/utilsplugin2/actions/PasteRelationsAction.java	(copie de travail)
@@ -55,7 +55,18 @@
             boolean changed = false;
             for( OsmPrimitive p : selection ) {
                 if( !r.getMemberPrimitives().contains(p) && !r.equals(p) ) {
-                    r.addMember(new RelationMember(relations.get(rel), p));
+                    String role = relations.get(rel);              
+                    if ("associatedStreet".equals(r.get("type"))) {
+                    	if (p.get("highway") != null) {
+                    		role="street";
+                        	if ((p.get("name") == null) && (r.get("name") != null)) {
+                        		commands.add(new ChangePropertyCommand(p, "name", r.get("name")));
+                        	}                    	
+                    	} else if (p.get("addr:housenumber") != null) {
+                    		role="house";
+                    	}
+                    }
+                    r.addMember(new RelationMember(role, p));
                     changed = true;
                 }
             }
