Changeset 32387 in osm for applications/editors/josm/plugins/wikipedia/src
- Timestamp:
- 2016-06-23T18:39:46+02:00 (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/wikipedia/src/org/wikipedia/WikipediaToggleDialog.java
r32114 r32387 119 119 120 120 public WikipediaLoadCoordinatesAction() { 121 super(tr("Coordinates"), ImageProvider.get("dialogs", "refresh")); 121 super(tr("Coordinates")); 122 new ImageProvider("dialogs", "refresh").getResource().attachImageIcon(this, true); 122 123 putValue(SHORT_DESCRIPTION, tr("Fetches all coordinates from Wikipedia in the current view")); 123 124 } … … 176 177 177 178 public WikipediaLoadCategoryAction() { 178 super(tr("Category"), ImageProvider.get("dialogs", "refresh")); 179 super(tr("Category")); 180 new ImageProvider("dialogs", "refresh").getResource().attachImageIcon(this, true); 179 181 putValue(SHORT_DESCRIPTION, tr("Fetches a list of all Wikipedia articles of a category")); 180 182 } … … 205 207 206 208 public PasteWikipediaArticlesAction() { 207 super(tr("Clipboard"), ImageProvider.get("paste")); 209 super(tr("Clipboard")); 210 new ImageProvider("paste").getResource().attachImageIcon(this, true); 208 211 putValue(SHORT_DESCRIPTION, tr("Pastes Wikipedia articles from the system clipboard")); 209 212 } … … 226 229 227 230 public OpenWikipediaArticleAction() { 228 super(tr("Open Article"), ImageProvider.getIfAvailable("browser")); 231 super(tr("Open Article")); 232 new ImageProvider("browser").getResource().attachImageIcon(this); 229 233 putValue(SHORT_DESCRIPTION, tr("Opens the Wikipedia article of the selected item in a browser")); 230 234 } … … 243 247 244 248 public WikipediaSettingsAction() { 245 super(tr("Language"), ImageProvider.get("dialogs/settings")); 249 super(tr("Language")); 250 new ImageProvider("dialogs/settings").getResource().attachImageIcon(this, true); 246 251 putValue(SHORT_DESCRIPTION, tr("Sets the default language for the Wikipedia articles")); 247 252 } … … 264 269 265 270 public AddWikipediaTagAction() { 266 super(tr("Add Tag"), ImageProvider.get("pastetags")); 271 super(tr("Add Tag")); 272 new ImageProvider("pastetags").getResource().attachImageIcon(this, true); 267 273 putValue(SHORT_DESCRIPTION, tr("Adds a ''wikipedia'' tag corresponding to this article to the selected objects")); 268 274 } … … 290 296 291 297 ZoomToWikipediaArticleAction() { 292 super(tr("Zoom to selection"), ImageProvider.get("dialogs/autoscale", "selection")); 298 super(tr("Zoom to selection")); 299 new ImageProvider("dialogs/autoscale", "selection").getResource().attachImageIcon(this); 293 300 putValue(SHORT_DESCRIPTION, tr("Zoom to selection")); 294 301 }
Note:
See TracChangeset
for help on using the changeset viewer.