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.
|
---|
2 | package relcontext;
|
---|
3 |
|
---|
4 | import org.openstreetmap.josm.data.osm.DefaultNameFormatter;
|
---|
5 | import org.openstreetmap.josm.gui.MapFrame;
|
---|
6 | import org.openstreetmap.josm.plugins.Plugin;
|
---|
7 | import org.openstreetmap.josm.plugins.PluginInformation;
|
---|
8 |
|
---|
9 | /**
|
---|
10 | * The entry-point for the reltoolbox plugin
|
---|
11 | */
|
---|
12 | public 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.