|
Last change
on this file since 26257 was 25649, checked in by zverik, 15 years ago |
|
new plugin for editing relations - in progress
|
|
File size:
613 bytes
|
| Line | |
|---|
| 1 | package relcontext;
|
|---|
| 2 |
|
|---|
| 3 | import org.openstreetmap.josm.gui.MapFrame;
|
|---|
| 4 | import org.openstreetmap.josm.plugins.Plugin;
|
|---|
| 5 | import org.openstreetmap.josm.plugins.PluginInformation;
|
|---|
| 6 |
|
|---|
| 7 | public 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.