Changeset 3831 in osm for applications


Ignore:
Timestamp:
2007-07-29T01:02:24+02:00 (17 years ago)
Author:
christofd
Message:

add navigator to toggle group

File:
1 edited

Legend:

Unmodified
Added
Removed
  • applications/editors/josm/plugins/navigator/src/at/dallermassl/josm/plugin/navigator/NavigatorPlugin.java

    r3766 r3831  
    1111import java.util.List;
    1212
     13import javax.swing.AbstractButton;
    1314import javax.swing.JMenu;
    1415import javax.swing.JMenuBar;
     
    6566    public void mapFrameInitialized(MapFrame oldFrame, MapFrame newFrame) {
    6667        if(newFrame != null) {
    67             newFrame.toolBarActions.add(
    68                 new IconToggleButton(new NavigatorModeAction(newFrame, navigatorModel, navigatorLayer)));
     68            IconToggleButton button = new IconToggleButton(new NavigatorModeAction(newFrame, navigatorModel, navigatorLayer));
     69            newFrame.toolBarActions.add(button);
     70            newFrame.toolGroup.add(button);
    6971        }
    7072    }
Note: See TracChangeset for help on using the changeset viewer.