source: josm/trunk/src/org/openstreetmap/josm/gui/conflict/tags/RelationMemberConflictDecisionType.java@ 10378

Last change on this file since 10378 was 6883, checked in by Don-vip, 10 years ago

fix some Sonar issues

  • Property svn:eol-style set to native
File size: 1.1 KB
Line 
1// License: GPL. For details, see LICENSE file.
2package org.openstreetmap.josm.gui.conflict.tags;
3
4import static org.openstreetmap.josm.tools.I18n.tr;
5
6import javax.swing.JLabel;
7
8public enum RelationMemberConflictDecisionType {
9 /**
10 * keep the respective relation member for the target primitive (the target node
11 * in a node merge operation or the target way in a combine way operation)
12 */
13 KEEP,
14
15 /**
16 * remove the respective relation member
17 */
18 REMOVE,
19
20 /**
21 * not yet decided
22 */
23 UNDECIDED;
24
25 public static void prepareLabel(RelationMemberConflictDecisionType decision, JLabel label) {
26 switch(decision) {
27 case REMOVE:
28 label.setText(tr("Remove"));
29 label.setToolTipText(tr("Remove this relation member from the relation"));
30 break;
31 case KEEP:
32 label.setText(tr("Keep"));
33 label.setToolTipText(tr("Keep this relation member for the target object"));
34 break;
35 case UNDECIDED:
36 label.setText(tr("Undecided"));
37 label.setToolTipText(tr("Not decided yet"));
38 break;
39 }
40 }
41}
Note: See TracBrowser for help on using the repository browser.