Changeset 3363 in josm for trunk


Ignore:
Timestamp:
2010-07-06T09:29:05+02:00 (14 years ago)
Author:
stoecker
Message:

fix #5204 - wrong window title

Location:
trunk/src/org/openstreetmap/josm
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/actions/AddNodeAction.java

    r3266 r3363  
    3333            return;
    3434
    35         LatLonDialog dialog = new LatLonDialog(Main.parent);
     35        LatLonDialog dialog = new LatLonDialog(Main.parent, tr("Add Node..."), ht("/Action/AddNode"));
    3636        dialog.setVisible(true);
    3737        if (dialog.isCanceled())
  • trunk/src/org/openstreetmap/josm/actions/MoveNodeAction.java

    r3266 r3363  
    3232            return;
    3333
    34         LatLonDialog dialog = new LatLonDialog(Main.parent);
     34        LatLonDialog dialog = new LatLonDialog(Main.parent, tr("Move Node..."), ht("/Action/MoveNode"));
    3535        Node n = (Node) getCurrentDataSet().getSelectedNodes().toArray()[0];
    3636        dialog.setCoordinates(n.getCoor());
  • trunk/src/org/openstreetmap/josm/gui/dialogs/LatLonDialog.java

    r3266 r3363  
    4848    private JTextField tfLat;
    4949    private JTextField tfLon;
     50    private String help;
    5051    private boolean canceled = false;
    5152    private LatLon coordinates;
     
    9192        pnl.add(btn = new SideButton(actCancel = new CancelAction()));
    9293        makeButtonRespondToEnter(btn);
    93         pnl.add(new SideButton(new ContextSensitiveHelpAction(ht("/Action/AddNode"))));
     94        pnl.add(new SideButton(new ContextSensitiveHelpAction(help)));
    9495        return pnl;
    9596    }
     
    114115        // make dialog respond to F1
    115116        //
    116         HelpUtil.setHelpContext(getRootPane(), ht("/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) {
    120121        super(JOptionPane.getFrameForComponent(parent), true /* modal */);
    121         setTitle(tr("Add Node..."));
     122        this.help = help;
     123        setTitle(title);
    122124        build();
    123125        addWindowListener(new WindowEventHandler());
Note: See TracChangeset for help on using the changeset viewer.