Changeset 1890 in josm for trunk/src/org/openstreetmap/josm/gui/layer/OsmDataLayer.java
- Timestamp:
- 2009-08-02T23:15:26+02:00 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/layer/OsmDataLayer.java
r1865 r1890 407 407 } 408 408 final JPanel p = new JPanel(new GridBagLayout()); 409 p.add(new JLabel(tr("{0} consists of:", name)), GBC.eol());409 p.add(new JLabel(tr("{0} consists of:", getName())), GBC.eol()); 410 410 for (int i = 0; i < counter.normal.length; ++i) { 411 411 String s = counter.normal[i]+" "+trn(counter.names[i],counter.names[i]+"s",counter.normal[i]); … … 423 423 if (Main.applet) 424 424 return new Component[]{ 425 new JMenuItem(new LayerListDialog.ShowHideLayerAction(this)), 426 new JMenuItem(new LayerListDialog.DeleteLayerAction(this)), 425 new JMenuItem(LayerListDialog.getInstance().createActivateLayerAction(this)), 426 new JMenuItem(LayerListDialog.getInstance().createShowHideLayerAction(this)), 427 new JMenuItem(LayerListDialog.getInstance().createDeleteLayerAction(this)), 428 new JSeparator(), 429 new JMenuItem(LayerListDialog.getInstance().createMergeLayerAction(this)), 427 430 new JSeparator(), 428 431 new JMenuItem(new RenameLayerAction(getAssociatedFile(), this)), … … 430 433 new JMenuItem(new LayerListPopup.InfoAction(this))}; 431 434 return new Component[]{ 432 new JMenuItem(new LayerListDialog.ShowHideLayerAction(this)), 433 new JMenuItem(new LayerListDialog.DeleteLayerAction(this)), 435 new JMenuItem(LayerListDialog.getInstance().createActivateLayerAction(this)), 436 new JMenuItem(LayerListDialog.getInstance().createShowHideLayerAction(this)), 437 new JMenuItem(LayerListDialog.getInstance().createDeleteLayerAction(this)), 434 438 new JSeparator(), 439 new JMenuItem(LayerListDialog.getInstance().createMergeLayerAction(this)), 435 440 new JMenuItem(new LayerSaveAction(this)), 436 441 new JMenuItem(new LayerSaveAsAction(this)), … … 515 520 } 516 521 public void actionPerformed(ActionEvent e) { 517 Main.main.addLayer(new GpxLayer(toGpxData(), tr("Converted from: {0}", name)));522 Main.main.addLayer(new GpxLayer(toGpxData(), tr("Converted from: {0}", getName()))); 518 523 Main.main.removeLayer(OsmDataLayer.this); 519 524 }
Note:
See TracChangeset
for help on using the changeset viewer.