Changeset 2326 in josm for trunk/src/org/openstreetmap/josm/gui/conflict/tags/RelationMemberConflictDecisionType.java
- Timestamp:
- 2009-10-26T22:36:54+01:00 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/conflict/tags/RelationMemberConflictDecisionType.java
r2099 r2326 3 3 4 4 import static org.openstreetmap.josm.tools.I18n.tr; 5 6 import java.awt.Font;7 5 8 6 import javax.swing.DefaultComboBoxModel; … … 12 10 public enum RelationMemberConflictDecisionType { 13 11 /** 14 * replace the respective relation member with a member referring15 * to the new primitive12 * keep the respective relation member for the target primitive (the target node 13 * in a node merge operation or the target way in a combine way operation) 16 14 */ 17 REPLACE,15 KEEP, 18 16 19 17 /** … … 34 32 label.setToolTipText(tr("Remove this relation member from the relation")); 35 33 break; 36 case REPLACE:37 label.setText(tr(" Replace"));38 label.setToolTipText(tr(" Replace the way this member refers to with the combined way"));34 case KEEP: 35 label.setText(tr("Keep")); 36 label.setToolTipText(tr("Keep this relation member for the target object")); 39 37 break; 40 38 case UNDECIDED: … … 44 42 } 45 43 } 46 47 static public void prepareComboBox(RelationMemberConflictDecisionType decision, JComboBox comboBox) {48 DefaultComboBoxModel model = (DefaultComboBoxModel)comboBox.getModel();49 model.removeAllElements();50 switch(decision) {51 case REMOVE:52 model.addElement(tr("Remove"));53 comboBox.setToolTipText(tr("Remove this relation member from the relation"));54 comboBox.setSelectedIndex(0);55 break;56 case REPLACE:57 model.addElement(tr("Replace"));58 comboBox.setToolTipText(tr("Replace the way this member refers to with the combined way"));59 comboBox.setSelectedIndex(0);60 break;61 case UNDECIDED:62 model.addElement(tr("Undecided"));63 comboBox.setToolTipText(tr("Not decided yet"));64 comboBox.setSelectedIndex(0);65 break;66 }67 }68 44 }
Note:
See TracChangeset
for help on using the changeset viewer.