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

Last change on this file since 27927 was 27927, checked in by akks, 13 years ago

reltoolbox, turnlanes: fix shortcut and toolbar warnings

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