- Timestamp:
- 2010-02-06T22:38:42+01:00 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/io/UploadSelectionDialog.java
r2824 r2947 8 8 import java.awt.FlowLayout; 9 9 import java.awt.event.ActionEvent; 10 import java.awt.event.KeyEvent;11 10 import java.awt.event.WindowAdapter; 12 11 import java.awt.event.WindowEvent; … … 20 19 import javax.swing.AbstractListModel; 21 20 import javax.swing.Action; 22 import javax.swing.ActionMap;23 21 import javax.swing.BorderFactory; 24 import javax.swing.InputMap;25 import javax.swing.JComponent;26 22 import javax.swing.JDialog; 27 23 import javax.swing.JLabel; … … 31 27 import javax.swing.JScrollPane; 32 28 import javax.swing.JSplitPane; 33 import javax.swing.KeyStroke;34 29 import javax.swing.ListSelectionModel; 35 30 import javax.swing.event.ListSelectionEvent; … … 42 37 import org.openstreetmap.josm.gui.OsmPrimitivRenderer; 43 38 import org.openstreetmap.josm.gui.SideButton; 39 import org.openstreetmap.josm.gui.help.ContextSensitiveHelpAction; 40 import org.openstreetmap.josm.gui.help.HelpUtil; 44 41 import org.openstreetmap.josm.tools.ImageProvider; 45 42 import org.openstreetmap.josm.tools.WindowGeometry; … … 81 78 JPanel pnl = new JPanel(); 82 79 pnl.setLayout(new FlowLayout()); 83 pnl.add(new SideButton(new CancelAction()));84 80 ContinueAction continueAction = new ContinueAction(); 85 81 pnl.add(btnContinue = new SideButton(continueAction)); … … 87 83 lstDeletedPrimitives.getSelectionModel().addListSelectionListener(continueAction); 88 84 lstSelectedPrimitives.getSelectionModel().addListSelectionListener(continueAction); 85 86 pnl.add(new SideButton(new CancelAction())); 87 pnl.add(new SideButton(new ContextSensitiveHelpAction(HelpUtil.ht("/Dialog/UploadSelection")))); 89 88 return pnl; 90 89 } … … 112 111 ); 113 112 setTitle(tr("Select objects to upload")); 114 ActionMap am = getRootPane().getActionMap(); 115 InputMap im = getRootPane().getInputMap(JComponent.WHEN_ANCESTOR_OF_FOCUSED_COMPONENT); 116 im.put(KeyStroke.getKeyStroke(KeyEvent.VK_F1, 0), "help"); 117 am.put("help", Main.main.menu.help); 118 getRootPane().putClientProperty("help", "Dialog/UploadSelection"); 113 HelpUtil.setHelpContext(getRootPane(), HelpUtil.ht("/Dialog/UploadSelection")); 119 114 } 120 115
Note:
See TracChangeset
for help on using the changeset viewer.