Changeset 3363 in josm
- Timestamp:
- 2010-07-06T09:29:05+02:00 (14 years ago)
- Location:
- trunk/src/org/openstreetmap/josm
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/actions/AddNodeAction.java
r3266 r3363 33 33 return; 34 34 35 LatLonDialog dialog = new LatLonDialog(Main.parent );35 LatLonDialog dialog = new LatLonDialog(Main.parent, tr("Add Node..."), ht("/Action/AddNode")); 36 36 dialog.setVisible(true); 37 37 if (dialog.isCanceled()) -
trunk/src/org/openstreetmap/josm/actions/MoveNodeAction.java
r3266 r3363 32 32 return; 33 33 34 LatLonDialog dialog = new LatLonDialog(Main.parent );34 LatLonDialog dialog = new LatLonDialog(Main.parent, tr("Move Node..."), ht("/Action/MoveNode")); 35 35 Node n = (Node) getCurrentDataSet().getSelectedNodes().toArray()[0]; 36 36 dialog.setCoordinates(n.getCoor()); -
trunk/src/org/openstreetmap/josm/gui/dialogs/LatLonDialog.java
r3266 r3363 48 48 private JTextField tfLat; 49 49 private JTextField tfLon; 50 private String help; 50 51 private boolean canceled = false; 51 52 private LatLon coordinates; … … 91 92 pnl.add(btn = new SideButton(actCancel = new CancelAction())); 92 93 makeButtonRespondToEnter(btn); 93 pnl.add(new SideButton(new ContextSensitiveHelpAction(h t("/Action/AddNode"))));94 pnl.add(new SideButton(new ContextSensitiveHelpAction(help))); 94 95 return pnl; 95 96 } … … 114 115 // make dialog respond to F1 115 116 // 116 HelpUtil.setHelpContext(getRootPane(), h t("/Action/AddNode"));117 } 118 119 public LatLonDialog(Component parent ) {117 HelpUtil.setHelpContext(getRootPane(), help); 118 } 119 120 public LatLonDialog(Component parent, String title, String help) { 120 121 super(JOptionPane.getFrameForComponent(parent), true /* modal */); 121 setTitle(tr("Add Node...")); 122 this.help = help; 123 setTitle(title); 122 124 build(); 123 125 addWindowListener(new WindowEventHandler());
Note:
See TracChangeset
for help on using the changeset viewer.