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

Last change on this file since 29535 was 29535, checked in by donvip, 12 years ago

[josm_reltoolbox] Fix some warnings

File size: 791 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// if (dialog!=null) dialog.destroy();
20 dialog = new RelContextDialog();
21 newFrame.addToggleDialog(dialog);
22 }
23 }
24}
Note: See TracBrowser for help on using the repository browser.