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
|
Rev | Line | |
---|
[32395] | 1 | // License: GPL. For details, see LICENSE file.
|
---|
[30841] | 2 | package relcontext;
|
---|
| 3 |
|
---|
[33530] | 4 | import org.openstreetmap.josm.data.osm.DefaultNameFormatter;
|
---|
[30841] | 5 | import org.openstreetmap.josm.gui.MapFrame;
|
---|
| 6 | import org.openstreetmap.josm.plugins.Plugin;
|
---|
| 7 | import org.openstreetmap.josm.plugins.PluginInformation;
|
---|
| 8 |
|
---|
[36102] | 9 | /**
|
---|
| 10 | * The entry-point for the reltoolbox plugin
|
---|
| 11 | */
|
---|
[30841] | 12 | public 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.