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

Last change on this file was 36102, checked in by taylor.smock, 2 years ago

reltoolbox: Clean up a bunch of lint warnings

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