Changeset 23964 in osm for applications/editors


Ignore:
Timestamp:
2010-10-31T15:22:21+01:00 (14 years ago)
Author:
oliverw
Message:
  • SelectIncompleteAddressesAction: Added action icon and show enabled state correctly
  • Added menu sep
Location:
applications/editors/josm/plugins/FixAddresses
Files:
1 added
2 edited

Legend:

Unmodified
Added
Removed
  • applications/editors/josm/plugins/FixAddresses/src/org/openstreetmap/josm/plugins/fixAddresses/FixAddressesPlugin.java

    r23951 r23964  
    3131                SelectIncompleteAddressesAction incAddrAction = new SelectIncompleteAddressesAction();
    3232                // ... and add it to the tools menu in main
     33                Main.main.menu.toolsMenu.addSeparator();
    3334        Main.main.menu.toolsMenu.add(action);
    3435        Main.main.menu.toolsMenu.add(incAddrAction);
  • applications/editors/josm/plugins/FixAddresses/src/org/openstreetmap/josm/plugins/fixAddresses/SelectIncompleteAddressesAction.java

    r23951 r23964  
    3333         */
    3434        public SelectIncompleteAddressesAction() {
    35                 super(tr("Select incomplete addresses"), null,
     35                super(tr("Select incomplete addresses"), "select_invaddr_24",
    3636                                tr("Selects all addresses with incomplete data."), null, false);       
    3737        }
     
    5252        }
    5353
     54        /* (non-Javadoc)
     55         * @see org.openstreetmap.josm.actions.JosmAction#updateEnabledState()
     56         */
     57        @Override
     58        protected void updateEnabledState() {
     59                setEnabled(getCurrentDataSet() != null);
     60        }
    5461}
Note: See TracChangeset for help on using the changeset viewer.