Changeset 103 in josm for src/org/openstreetmap/josm/gui/layer/GeoImageLayer.java
- Timestamp:
- 2006-07-01T00:56:23+02:00 (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/org/openstreetmap/josm/gui/layer/GeoImageLayer.java
r102 r103 36 36 import javax.swing.JOptionPane; 37 37 import javax.swing.JPanel; 38 import javax.swing.JPopupMenu;39 38 import javax.swing.JScrollPane; 39 import javax.swing.JSeparator; 40 40 import javax.swing.JTextField; 41 41 import javax.swing.JToggleButton; … … 51 51 import org.openstreetmap.josm.gui.MapView; 52 52 import org.openstreetmap.josm.gui.PleaseWaitRunnable; 53 import org.openstreetmap.josm.gui.dialogs.LayerList; 53 54 import org.openstreetmap.josm.gui.dialogs.LayerListPopup; 54 55 import org.openstreetmap.josm.gui.layer.RawGpsLayer.GpsPoint; … … 314 315 } 315 316 316 @Override public void addMenuEntries(JPopupMenu menu) {317 @Override public Component[] getMenuEntries() { 317 318 JMenuItem sync = new JMenuItem("Sync clock", ImageProvider.get("clock")); 318 319 sync.addActionListener(new ActionListener(){ … … 338 339 } 339 340 }); 340 menu.add(sync); 341 342 menu.addSeparator(); 343 menu.add(new LayerListPopup.InfoAction(this)); 341 return new Component[]{ 342 new JMenuItem(new LayerList.ShowHideLayerAction(this)), 343 new JMenuItem(new LayerList.DeleteLayerAction(this)), 344 new JSeparator(), 345 sync, 346 new JSeparator(), 347 new JMenuItem(new LayerListPopup.InfoAction(this))}; 344 348 } 345 349
Note:
See TracChangeset
for help on using the changeset viewer.