Changeset 33621 in osm for applications/editors
- Timestamp:
- 2017-09-18T03:55:08+02:00 (7 years ago)
- Location:
- applications/editors/josm/plugins/wikipedia
- Files:
-
- 6 added
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/wikipedia/src/org/wikipedia/WikipediaPlugin.java
r33541 r33621 7 7 import org.openstreetmap.josm.gui.MainMenu; 8 8 import org.openstreetmap.josm.gui.MapFrame; 9 import org.openstreetmap.josm.gui.download.DownloadDialog; 10 import org.openstreetmap.josm.gui.preferences.PreferenceSetting; 9 11 import org.openstreetmap.josm.plugins.Plugin; 10 12 import org.openstreetmap.josm.plugins.PluginInformation; … … 12 14 import org.wikipedia.actions.WikipediaAddNamesAction; 13 15 import org.wikipedia.actions.WikipediaCopyTemplate; 14 import org.wikipedia.gui.WikidataItemSearchDialog; 15 import org.wikipedia.gui.WikidataTagCellRenderer; 16 import org.wikipedia.gui.WikipediaToggleDialog; 16 import org.wikipedia.gui.*; 17 17 18 18 public class WikipediaPlugin extends Plugin { 19 20 private PreferenceSetting preferences; 19 21 20 22 public WikipediaPlugin(PluginInformation info) { … … 25 27 MainMenu.add(dataMenu, new FetchWikidataAction()); 26 28 MainMenu.add(dataMenu, new WikidataItemSearchDialog.Action()); 29 30 DownloadDialog.getInstance().addDownloadSource(new WikosmDownloadSource()); 27 31 } 28 32 … … 34 38 } 35 39 } 40 41 @Override 42 public PreferenceSetting getPreferenceSetting() { 43 if (preferences == null) { 44 preferences = (new WikosmServerPreference.Factory()).createPreferenceSetting(); 45 } 46 return preferences; 47 } 36 48 }
Note:
See TracChangeset
for help on using the changeset viewer.