Last change
on this file since 27927 was 27927, checked in by akks, 13 years ago |
reltoolbox, turnlanes: fix shortcut and toolbar warnings
|
File size:
828 bytes
|
Line | |
---|
1 | package relcontext;
|
---|
2 |
|
---|
3 | import org.openstreetmap.josm.Main;
|
---|
4 | import org.openstreetmap.josm.gui.DefaultNameFormatter;
|
---|
5 | import org.openstreetmap.josm.gui.MapFrame;
|
---|
6 | import org.openstreetmap.josm.plugins.Plugin;
|
---|
7 | import org.openstreetmap.josm.plugins.PluginInformation;
|
---|
8 |
|
---|
9 | public class RelContextPlugin extends Plugin {
|
---|
10 | private RelContextDialog dialog;
|
---|
11 |
|
---|
12 | public RelContextPlugin( PluginInformation info ) {
|
---|
13 | super(info);
|
---|
14 | DefaultNameFormatter.registerFormatHook(new ExtraNameFormatHook());
|
---|
15 | }
|
---|
16 |
|
---|
17 | @Override
|
---|
18 | public void mapFrameInitialized( MapFrame oldFrame, MapFrame newFrame ) {
|
---|
19 | if( oldFrame == null && newFrame != null ) {
|
---|
20 | // if (dialog!=null) dialog.destroy();
|
---|
21 | dialog = new RelContextDialog();
|
---|
22 | newFrame.addToggleDialog(dialog);
|
---|
23 | }
|
---|
24 | }
|
---|
25 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.