Last change
on this file since 3719 was 3719, checked in by bastiK, 14 years ago |
added missing license information
|
File size:
842 bytes
|
Line | |
---|
1 | // License: GPL. For details, see LICENSE file.
|
---|
2 | package org.openstreetmap.josm.plugins.imagery;
|
---|
3 |
|
---|
4 | import java.io.File;
|
---|
5 |
|
---|
6 | import org.openstreetmap.josm.Main;
|
---|
7 | import org.openstreetmap.josm.data.imagery.ImageryLayerInfo;
|
---|
8 | import org.openstreetmap.josm.data.imagery.OffsetBookmark;
|
---|
9 | import org.openstreetmap.josm.plugins.Plugin;
|
---|
10 | import org.openstreetmap.josm.plugins.PluginInformation;
|
---|
11 |
|
---|
12 | public class ImageryPlugin extends Plugin {
|
---|
13 |
|
---|
14 |
|
---|
15 | public ImageryLayerInfo info = new ImageryLayerInfo();
|
---|
16 | // remember state of menu item to restore on changed preferences
|
---|
17 |
|
---|
18 | public ImageryPlugin(PluginInformation info) {
|
---|
19 | super(info);
|
---|
20 | this.info.load();
|
---|
21 | OffsetBookmark.loadBookmarks();
|
---|
22 |
|
---|
23 | }
|
---|
24 |
|
---|
25 | @Override
|
---|
26 | public String getPluginDir()
|
---|
27 | {
|
---|
28 | return new File(Main.pref.getPluginsDirectory(), "imagery").getPath();
|
---|
29 | }
|
---|
30 |
|
---|
31 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.