Ignore:
Timestamp:
2009-08-02T23:15:26+02:00 (15 years ago)
Author:
Gubaer
Message:

update: rewrite of layer dialog
new: allows multiple selection of layers in the dialog
new: move up, move down, toggle visibility, and delete on multiple layers
new: merge from an arbitrary layer into another layer, not only from the first into the second
new: new action for merging of the currently selected primitives on an arbitrary layer
new: make "active" layer explicit (special icon); activating a layer automatically moves it in the first position
refactoring: public fields 'name' and 'visible' on Layer are @deprecated. Use the setter/getters instead, Layer now emits PropertyChangeEvents if name or visibility are changed.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/actions/RenameLayerAction.java

    r1861 r1890  
    4343    public void actionPerformed(ActionEvent e) {
    4444        Box panel = Box.createVerticalBox();
    45         final JTextField name = new JTextField(layer.name);
     45        final JTextField name = new JTextField(layer.getName());
    4646        panel.add(name);
    4747        JCheckBox filerename = new JCheckBox(tr("Also rename the file"));
     
    105105            }
    106106        }
    107         layer.name = nameText;
     107        layer.setName(nameText);
    108108        Main.parent.repaint();
    109109    }
Note: See TracChangeset for help on using the changeset viewer.