Ignore:
Timestamp:
2009-10-26T22:36:54+01:00 (14 years ago)
Author:
Gubaer
Message:

Slightly improved dialogs for way combining and node merging.
Added context sensitive help.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/gui/conflict/tags/RelationMemberConflictDecisionType.java

    r2099 r2326  
    33
    44import static org.openstreetmap.josm.tools.I18n.tr;
    5 
    6 import java.awt.Font;
    75
    86import javax.swing.DefaultComboBoxModel;
     
    1210public enum RelationMemberConflictDecisionType {
    1311    /**
    14      * replace the respective relation member with a member referring
    15      * to the new primitive
     12     * 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)
    1614     */
    17     REPLACE,
     15    KEEP,
    1816
    1917    /**
     
    3432            label.setToolTipText(tr("Remove this relation member from the relation"));
    3533            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"));
    3937            break;
    4038        case UNDECIDED:
     
    4442        }
    4543    }
    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     }
    6844}
Note: See TracChangeset for help on using the changeset viewer.