Changeset 2255 in josm for trunk/src/org/openstreetmap/josm/gui
- Timestamp:
- 2009-10-07T21:25:15+02:00 (16 years ago)
- Location:
- trunk/src/org/openstreetmap/josm/gui
- Files:
-
- 1 added
- 2 edited
-
HelpAwareOptionPane.java (added)
-
dialogs/ConflictDialog.java (modified) (5 diffs)
-
dialogs/ToggleDialog.java (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/dialogs/ConflictDialog.java
r2252 r2255 118 118 */ 119 119 public ConflictDialog() { 120 super(tr("Conflict"), "conflict", tr(" Mergingconflicts."),120 super(tr("Conflict"), "conflict", tr("Resolve conflicts."), 121 121 Shortcut.registerShortcut("subwindow:conflict", tr("Toggle: {0}", tr("Conflict")), KeyEvent.VK_C, Shortcut.GROUP_LAYER), 100); 122 122 … … 144 144 return; 145 145 int row = selectedRows[0]; 146 Conflict c = conflicts.get(row); 146 Conflict<?> c = conflicts.get(row); 147 147 OsmPrimitive my = c.getMy(); 148 148 OsmPrimitive their = c.getTheir(); … … 262 262 } 263 263 264 @Override 265 public String helpTopic() { 266 return "Dialogs/ConflictListDialog"; 267 } 268 264 269 /** 265 270 * The {@see ListModel} for conflicts … … 328 333 putValue(SHORT_DESCRIPTION, tr("Open a merge dialog of all selected items in the list above.")); 329 334 putValue(SMALL_ICON, ImageProvider.get("dialogs", "conflict")); 335 putValue("help", "Dialogs/ConflictListDialog#ResolveAction"); 330 336 } 331 337 … … 347 353 putValue(SHORT_DESCRIPTION, tr("Set the selected elements on the map to the selected items in the list above.")); 348 354 putValue(SMALL_ICON, ImageProvider.get("dialogs", "select")); 355 putValue("help", "Dialogs/ConflictListDialog#SelectAction"); 349 356 } 350 357 -
trunk/src/org/openstreetmap/josm/gui/dialogs/ToggleDialog.java
r2252 r2255 12 12 import java.awt.event.ActionEvent; 13 13 import java.awt.event.ActionListener; 14 import java.awt.event.ComponentAdapter;15 import java.awt.event.ComponentEvent;16 14 import java.awt.event.MouseAdapter; 17 15 import java.awt.event.MouseEvent; 18 16 import java.awt.event.WindowAdapter; 19 17 import java.awt.event.WindowEvent; 20 import java.util.logging.Logger;21 18 22 19 import javax.swing.AbstractAction; 23 20 import javax.swing.BorderFactory; 24 import javax.swing.Box;25 21 import javax.swing.ImageIcon; 26 22 import javax.swing.JButton; … … 34 30 import org.openstreetmap.josm.actions.JosmAction; 35 31 import org.openstreetmap.josm.gui.dialogs.DialogsPanel.Action; 32 import org.openstreetmap.josm.gui.help.HelpBuilder; 36 33 import org.openstreetmap.josm.gui.help.Helpful; 37 34 import org.openstreetmap.josm.tools.GBC; … … 348 345 * 349 346 */ 350 private class DetachedDialog extends JDialog {347 private class DetachedDialog extends JDialog{ 351 348 public DetachedDialog() { 352 349 super(JOptionPane.getFrameForComponent(Main.parent)); … … 362 359 } 363 360 }); 361 addMouseListener( 362 new MouseAdapter() { 363 @Override 364 public void mouseEntered(MouseEvent e) { 365 super.mouseEntered(e); 366 System.out.println("requesting focus ..."); 367 requestFocusInWindow(); 368 } 369 } 370 ); 371 364 372 String bounds = Main.pref.get(preferencePrefix+".bounds",null); 365 373 if (bounds != null) { … … 373 381 } 374 382 setTitle(titleBar.getTitle()); 383 HelpBuilder.setHelpContext(getRootPane(), helpTopic()); 375 384 } 376 385
Note:
See TracChangeset
for help on using the changeset viewer.
