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

Last change on this file since 32075 was 30841, checked in by bastik, 10 years ago

applied #josm10682 - Added features to sorting route relation of public_transport version 2 scheme (patch by freeExec)

  • Property svn:eol-style set to native
File size: 770 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.