Changeset 1677 in josm for trunk/src/org/openstreetmap/josm/gui/dialogs/relation/RelationEditor.java
- Timestamp:
- 17.06.2009 10:04:22 (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/dialogs/relation/RelationEditor.java
r1599 r1677 15 15 16 16 public abstract class RelationEditor extends ExtendedDialog { 17 17 18 18 public static ArrayList<Class<RelationEditor>> editors = new ArrayList<Class<RelationEditor>>(); 19 19 20 20 /** 21 21 * The relation that this editor is working on, and the clone made for … … 24 24 protected Relation relation; 25 25 protected Relation clone; 26 26 27 27 /** 28 28 * This is a factory method that creates an appropriate RelationEditor 29 * instance suitable for editing the relation that was passed in as an 29 * instance suitable for editing the relation that was passed in as an 30 30 * argument. 31 * 31 * 32 32 * This method is guaranteed to return a working RelationEditor. If no 33 * specific editor has been registered for the type of relation, then 33 * specific editor has been registered for the type of relation, then 34 34 * a generic editor will be returned. 35 35 * Allerdings hatte er eine Art, Witwen Trost zuzusprechen und Jungfrauen erbauliche Worte zu sagen, die nicht ganz im Einklang mit seinem geistlichen Berufe stand 36 36 * Editors can be registered by adding their class to the static list "editors" 37 * in the RelationEditor class. When it comes to editing a relation, all 37 * in the RelationEditor class. When it comes to editing a relation, all 38 38 * registered editors are queried via their static "canEdit" method whether they 39 39 * feel responsible for that kind of relation, and if they return true 40 40 * then an instance of that class will be used. 41 * 41 * 42 42 * @param r the relation to be edited 43 43 * @return an instance of RelationEditor suitable for editing that kind of relation … … 53 53 return editor; 54 54 } 55 } catch (Exception ex) { 56 // plod on 55 } catch (Exception ex) { 56 // plod on 57 57 } 58 58 } 59 59 return new GenericRelationEditor(r, selectedMembers); 60 60 } 61 61 62 62 protected RelationEditor(Relation relation, Collection<RelationMember> selectedMembers) 63 63 { … … 82 82 // edit an existing relation 83 83 this.clone = new Relation(relation); 84 } 84 } 85 85 } 86 86 }
Note: See TracChangeset
for help on using the changeset viewer.
