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

Last change on this file since 36431 was 36102, checked in by taylor.smock, 21 months ago

reltoolbox: Clean up a bunch of lint warnings

  • Property svn:eol-style set to native
File size: 867 bytes
Line 
1// License: GPL. For details, see LICENSE file.
2package relcontext;
3
4import org.openstreetmap.josm.data.osm.DefaultNameFormatter;
5import org.openstreetmap.josm.gui.MapFrame;
6import org.openstreetmap.josm.plugins.Plugin;
7import org.openstreetmap.josm.plugins.PluginInformation;
8
9/**
10 * The entry-point for the reltoolbox plugin
11 */
12public class RelContextPlugin extends Plugin {
13
14 public RelContextPlugin(PluginInformation info) {
15 super(info);
16 DefaultNameFormatter.registerFormatHook(new ExtraNameFormatHook());
17 }
18
19 @Override
20 public void mapFrameInitialized(MapFrame oldFrame, MapFrame newFrame) {
21 if (oldFrame == null && newFrame != null) {
22 // if (dialog!=null) dialog.destroy();
23 RelContextDialog dialog = new RelContextDialog();
24 newFrame.addToggleDialog(dialog);
25 }
26 }
27}
Note: See TracBrowser for help on using the repository browser.