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

Last change on this file since 26299 was 25649, checked in by zverik, 14 years ago

new plugin for editing relations - in progress

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