source: osm/applications/editors/josm/plugins/reltoolbox/src/relcontext/RelContextPlugin.java@ 26802

Last change on this file since 26802 was 26802, checked in by zverik, 13 years ago

"mischief managed"

File size: 740 bytes
Line 
1package relcontext;
2
3import org.openstreetmap.josm.gui.DefaultNameFormatter;
4import org.openstreetmap.josm.gui.MapFrame;
5import org.openstreetmap.josm.plugins.Plugin;
6import org.openstreetmap.josm.plugins.PluginInformation;
7
8public class RelContextPlugin extends Plugin {
9 private RelContextDialog dialog;
10
11 public RelContextPlugin( PluginInformation info ) {
12 super(info);
13 DefaultNameFormatter.registerFormatHook(new ExtraNameFormatHook());
14 }
15
16 @Override
17 public void mapFrameInitialized( MapFrame oldFrame, MapFrame newFrame ) {
18 if( oldFrame == null && newFrame != null ) {
19 dialog = new RelContextDialog();
20 newFrame.addToggleDialog(dialog);
21 }
22 }
23}
Note: See TracBrowser for help on using the repository browser.