Changeset 26705 in osm for applications/editors/josm/plugins/merge-overlap/src/mergeoverlap/MyCombinePrimitiveResolverDialog.java
- Timestamp:
- 2011-09-24T18:48:53+02:00 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/merge-overlap/src/mergeoverlap/MyCombinePrimitiveResolverDialog.java
r26575 r26705 173 173 protected void updateTitle() { 174 174 if (targetPrimitive == null) { 175 setTitle(tr("Conflicts when combining primitives")); 175 setTitle(tr("Conflicts when combining primitives", null)); 176 176 return; 177 177 } … … 324 324 JPanel pnl = new JPanel(); 325 325 pnl.setLayout(new BorderLayout()); 326 pnl.add(new JLabel(tr("No conflicts to resolve"))); 326 pnl.add(new JLabel(tr("No conflicts to resolve", null))); 327 327 return pnl; 328 328 } … … 386 386 387 387 public CancelAction() { 388 putValue(Action.SHORT_DESCRIPTION, tr("Cancel conflict resolution")); 389 putValue(Action.NAME, tr("Cancel")); 388 putValue(Action.SHORT_DESCRIPTION, tr("Cancel conflict resolution", null)); 389 putValue(Action.NAME, tr("Cancel", null)); 390 390 putValue(Action.SMALL_ICON, ImageProvider.get("", "cancel")); 391 391 setEnabled(true); … … 401 401 402 402 public ApplyAction() { 403 putValue(Action.SHORT_DESCRIPTION, tr("Apply resolved conflicts")); 404 putValue(Action.NAME, tr("Apply")); 403 putValue(Action.SHORT_DESCRIPTION, tr("Apply resolved conflicts", null)); 404 putValue(Action.NAME, tr("Apply", null)); 405 405 putValue(Action.SMALL_ICON, ImageProvider.get("ok")); 406 406 updateEnabledState(); … … 800 800 JPanel pnl = new JPanel(); 801 801 pnl.setLayout(new FlowLayout(FlowLayout.LEFT)); 802 pnl.add(new JLabel(tr("Role:"))); 802 pnl.add(new JLabel(tr("Role:", null))); 803 803 pnl.add(tfRole = new AutoCompletingTextField(10)); 804 tfRole.setToolTipText(tr("Enter a role for all relation memberships")); 804 tfRole.setToolTipText(tr("Enter a role for all relation memberships", null)); 805 805 pnl.add(new JButton(new ApplyRoleAction())); 806 806 tfRole.addActionListener(new ApplyRoleAction()); … … 819 819 JPanel pnl = new JPanel(); 820 820 pnl.setLayout(new FlowLayout(FlowLayout.LEFT)); 821 cbTagRelations = new JCheckBox(tr("Tag modified relations with ")); 821 cbTagRelations = new JCheckBox(tr("Tag modified relations with ", null)); 822 822 cbTagRelations.addChangeListener(new ToggleTagRelationsAction()); 823 823 cbTagRelations.setToolTipText( 824 824 tr("<html>Select to enable entering a tag which will be applied<br>" 825 + "to all modified relations.</html>")); 825 + "to all modified relations.</html>", null)); 826 826 pnl.add(cbTagRelations); 827 827 pnl.add(new JLabel(trc("tag", "Key:"))); 828 828 pnl.add(tfKey = new AutoCompletingTextField(10)); 829 tfKey.setToolTipText(tr("<html>Enter a tag key, i.e. <strong><tt>fixme</tt></strong></html>")); 830 pnl.add(new JLabel(tr("Value:"))); 829 tfKey.setToolTipText(tr("<html>Enter a tag key, i.e. <strong><tt>fixme</tt></strong></html>", null)); 830 pnl.add(new JLabel(tr("Value:", null))); 831 831 pnl.add(tfValue = new AutoCompletingTextField(10)); 832 tfValue.setToolTipText(tr("<html>Enter a tag value, i.e. <strong><tt>check members</tt></strong></html>")); 832 tfValue.setToolTipText(tr("<html>Enter a tag value, i.e. <strong><tt>check members</tt></strong></html>", null)); 833 833 cbTagRelations.setSelected(false); 834 834 tfKey.setEnabled(false); … … 848 848 + "the other ways that are members of the same relation: the combined way will " 849 849 + "take the place of the original way in the relation." 850 + "</html>")); 850 + "</html>", null)); 851 851 invalidate(); 852 852 } … … 859 859 + "the other nodes that are members of the same relation: the target node will " 860 860 + "take the place of the original node in the relation." 861 + "</html>")); 861 + "</html>", null)); 862 862 invalidate(); 863 863 } … … 865 865 class ApplyRoleAction extends AbstractAction { 866 866 public ApplyRoleAction() { 867 putValue(NAME, tr("Apply")); 867 putValue(NAME, tr("Apply", null)); 868 868 putValue(SMALL_ICON, ImageProvider.get("ok")); 869 putValue(SHORT_DESCRIPTION, tr("Apply this role to all members")); 869 putValue(SHORT_DESCRIPTION, tr("Apply this role to all members", null)); 870 870 } 871 871 … … 1270 1270 gc.weightx = 1.0; 1271 1271 gc.anchor = GridBagConstraints.LINE_START; 1272 pnl.add(new JLabel(tr("<html>Please select the values to keep for the following tags.</html>")), gc); 1272 pnl.add(new JLabel(tr("<html>Please select the values to keep for the following tags.</html>", null)), gc); 1273 1273 1274 1274 gc.gridy = 1; 1275 1275 gc.fill = GridBagConstraints.HORIZONTAL; 1276 1276 gc.weighty = 0.0; 1277 pnl.add(cbShowTagsWithConflictsOnly = new JCheckBox(tr("Show tags with conflicts only")), gc); 1278 pnl.add(cbShowTagsWithMultiValuesOnly = new JCheckBox(tr("Show tags with multiple values only")), gc); 1277 pnl.add(cbShowTagsWithConflictsOnly = new JCheckBox(tr("Show tags with conflicts only", null)), gc); 1278 pnl.add(cbShowTagsWithMultiValuesOnly = new JCheckBox(tr("Show tags with multiple values only", null)), gc); 1279 1279 cbShowTagsWithConflictsOnly.addChangeListener( 1280 1280 new ChangeListener() {
Note:
See TracChangeset
for help on using the changeset viewer.
