Changeset 1246 in josm for trunk/src/org/openstreetmap/josm/gui/dialogs
- Timestamp:
- 2009-01-11T16:41:49+01:00 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/dialogs/LayerListDialog.java
r1228 r1246 62 62 63 63 public DeleteLayerAction(Layer layer) { 64 super(tr("Delete"), ImageProvider.get("dialogs","delete"));64 super(tr("Delete"), SideButton.makeIcon("delete")); 65 65 putValue(SHORT_DESCRIPTION, tr("Delete the selected layer.")); 66 66 putValue("help", "Action/LayerDelete"); … … 98 98 99 99 public ShowHideLayerAction(Layer layer) { 100 super(tr("Show/Hide"), ImageProvider.get("dialogs","showhide"));100 super(tr("Show/Hide"), SideButton.makeIcon("showhide")); 101 101 putValue(SHORT_DESCRIPTION, tr("Toggle visible state of the selected layer.")); 102 102 putValue("help", "Action/LayerShowHide"); … … 254 254 buttonPanel.add(new SideButton(deleteAction)); 255 255 256 mergeButton = new SideButton(" Merge", "mergedown", "LayerList", tr("Merge the layer directly below into the selected layer."),256 mergeButton = new SideButton("mergedown", "LayerList", tr("Merge the layer directly below into the selected layer."), 257 257 new ActionListener(){ 258 258 public void actionPerformed(ActionEvent e) { … … 265 265 } 266 266 }); 267 mergeButton.setText(null);268 267 buttonPanel.add(mergeButton); 269 268 … … 286 285 downButton.setEnabled(sel >= 0 && sel < model.getSize()-1); 287 286 deleteAction.setEnabled(!model.isEmpty()); 288 287 289 288 if(model.getSize() != 0) { 290 289 setTitle(tr("Layers: {0}", model.getSize()), true);
Note:
See TracChangeset
for help on using the changeset viewer.