Changeset 18540 in josm for trunk/src/org/openstreetmap
- Timestamp:
- 2022-08-23T15:04:23+02:00 (2 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/dialogs/NotesDialog.java
r18483 r18540 28 28 import javax.swing.JOptionPane; 29 29 import javax.swing.JPanel; 30 import javax.swing.JPopupMenu; 30 31 import javax.swing.JScrollPane; 31 32 import javax.swing.ListCellRenderer; … … 55 56 import org.openstreetmap.josm.gui.widgets.FilterField; 56 57 import org.openstreetmap.josm.gui.widgets.JosmTextField; 58 import org.openstreetmap.josm.gui.widgets.PopupMenuLauncher; 57 59 import org.openstreetmap.josm.spi.preferences.Config; 58 60 import org.openstreetmap.josm.tools.ImageProvider; … … 135 137 new SideButton(uploadAction, false))); 136 138 updateButtonStates(); 139 140 JPopupMenu notesPopupMenu = new JPopupMenu(); 141 notesPopupMenu.add(addCommentAction); 142 notesPopupMenu.add(openInBrowserAction); 143 notesPopupMenu.add(closeAction); 144 notesPopupMenu.add(reopenAction); 145 displayList.addMouseListener(new PopupMenuLauncher(notesPopupMenu)); 137 146 } 138 147 … … 490 499 class OpenInBrowserAction extends AbstractAction { 491 500 OpenInBrowserAction() { 501 super(tr("Open in browser")); 492 502 putValue(SHORT_DESCRIPTION, tr("Open the note in an external browser")); 493 503 new ImageProvider("help", "internet").getResource().attachImageIcon(this, true);
Note:
See TracChangeset
for help on using the changeset viewer.