Changeset 34079 in osm for applications/editors/josm
- Timestamp:
- 2018-02-20T21:31:41+01:00 (7 years ago)
- Location:
- applications/editors/josm/plugins/wikipedia
- Files:
-
- 8 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/wikipedia/.settings/org.eclipse.jdt.core.prefs
r32699 r34079 17 17 org.eclipse.jdt.core.compiler.debug.localVariable=generate 18 18 org.eclipse.jdt.core.compiler.debug.sourceFile=generate 19 org.eclipse.jdt.core.compiler.doc.comment.support=enabled 19 20 org.eclipse.jdt.core.compiler.problem.annotationSuperInterface=warning 20 21 org.eclipse.jdt.core.compiler.problem.assertIdentifier=error … … 40 41 org.eclipse.jdt.core.compiler.problem.incompleteEnumSwitch=warning 41 42 org.eclipse.jdt.core.compiler.problem.indirectStaticAccess=ignore 43 org.eclipse.jdt.core.compiler.problem.invalidJavadoc=warning 44 org.eclipse.jdt.core.compiler.problem.invalidJavadocTags=enabled 45 org.eclipse.jdt.core.compiler.problem.invalidJavadocTagsDeprecatedRef=enabled 46 org.eclipse.jdt.core.compiler.problem.invalidJavadocTagsNotVisibleRef=enabled 47 org.eclipse.jdt.core.compiler.problem.invalidJavadocTagsVisibility=private 42 48 org.eclipse.jdt.core.compiler.problem.localVariableHiding=ignore 43 49 org.eclipse.jdt.core.compiler.problem.methodWithConstructorName=warning … … 46 52 org.eclipse.jdt.core.compiler.problem.missingEnumCaseDespiteDefault=disabled 47 53 org.eclipse.jdt.core.compiler.problem.missingHashCodeMethod=ignore 54 org.eclipse.jdt.core.compiler.problem.missingJavadocComments=ignore 55 org.eclipse.jdt.core.compiler.problem.missingJavadocCommentsOverriding=disabled 56 org.eclipse.jdt.core.compiler.problem.missingJavadocCommentsVisibility=public 57 org.eclipse.jdt.core.compiler.problem.missingJavadocTagDescription=return_tag 58 org.eclipse.jdt.core.compiler.problem.missingJavadocTags=warning 59 org.eclipse.jdt.core.compiler.problem.missingJavadocTagsMethodTypeParameters=disabled 60 org.eclipse.jdt.core.compiler.problem.missingJavadocTagsOverriding=disabled 61 org.eclipse.jdt.core.compiler.problem.missingJavadocTagsVisibility=private 48 62 org.eclipse.jdt.core.compiler.problem.missingOverrideAnnotation=ignore 49 63 org.eclipse.jdt.core.compiler.problem.missingOverrideAnnotationForInterfaceMethodImplementation=enabled -
applications/editors/josm/plugins/wikipedia/src/org/wikipedia/WikipediaApp.java
r33993 r34079 29 29 import javax.xml.parsers.ParserConfigurationException; 30 30 31 import org.openstreetmap.josm.Main;32 31 import org.openstreetmap.josm.data.coor.LatLon; 33 32 import org.openstreetmap.josm.data.osm.OsmPrimitive; … … 222 221 /** 223 222 * Returns a map mapping wikipedia articles to wikidata ids. 223 * @param articles wikipedia article names 224 * @return article / wikidata id map 224 225 */ 225 226 public Map<String, String> getWikidataForArticles(Collection<String> articles) { … … 252 253 * Get Wikidata IDs. For any unknown IDs, resolve them (normalize and get redirects), 253 254 * and try getting Wikidata IDs again 255 * @param articles wikipedia article names 256 * @return article / wikidata id map 254 257 */ 255 258 private Map<String, String> resolveWikidataItems(Collection<String> articles) { … … 323 326 * Given a list of wikipedia titles, returns a map of corresponding normalized title names, 324 327 * or if the title is a redirect page, the result is the redirect target. 328 * @param articles wikipedia articles 329 * @return article / wikidata id map 325 330 */ 326 331 private Map<String, String> resolveRedirectsForArticles(Collection<String> articles) { -
applications/editors/josm/plugins/wikipedia/src/org/wikipedia/actions/FetchWikidataAction.java
r33541 r34079 15 15 import javax.swing.JOptionPane; 16 16 17 import org.openstreetmap.josm.Main;18 17 import org.openstreetmap.josm.actions.JosmAction; 19 18 import org.openstreetmap.josm.command.ChangePropertyCommand; -
applications/editors/josm/plugins/wikipedia/src/org/wikipedia/actions/WikipediaCopyTemplate.java
r33673 r34079 47 47 /** 48 48 * Class to hold copy templates for serialization using {@link Preferences}. 49 * Public visibility is needed for reflection used in {@link Preferences#getListOf Structs}.49 * Public visibility is needed for reflection used in {@link Preferences#getListOfMaps}. 50 50 */ 51 51 @SuppressWarnings("WeakerAccess") -
applications/editors/josm/plugins/wikipedia/src/org/wikipedia/gui/WikidataTagCellRenderer.java
r33541 r34079 19 19 import javax.swing.table.DefaultTableCellRenderer; 20 20 21 import org.openstreetmap.josm.Main;22 21 import org.openstreetmap.josm.gui.util.GuiHelper; 23 22 import org.openstreetmap.josm.tools.Logging; -
applications/editors/josm/plugins/wikipedia/src/org/wikipedia/gui/WikipediaToggleDialog.java
r33696 r34079 2 2 package org.wikipedia.gui; 3 3 4 import static org.openstreetmap.josm.gui.help.HelpUtil.ht; 4 5 import static org.openstreetmap.josm.tools.I18n.tr; 5 6 … … 367 368 368 369 @Override 370 public String helpTopic() { 371 return ht("/Plugin/Wikipedia"); 372 } 373 374 @Override 369 375 public void showNotify() { 370 376 DatasetEventManager.getInstance().addDatasetListener(dataChangedAdapter, FireMode.IN_EDT_CONSOLIDATED); -
applications/editors/josm/plugins/wikipedia/src/org/wikipedia/io/SophoxDownloadReader.java
r33808 r34079 68 68 * @param sophoxServer The Sophox server to use 69 69 * @param sophoxQuery The Sophox query 70 * @param asNewLayer if the data should be downloaded into a new layer 71 * @param downloadReferrers if the referrers of the object should be downloaded as well 72 * @param downloadFull if the members of a relation should be downloaded as well 70 73 */ 71 74 public SophoxDownloadReader(Bounds downloadArea, String sophoxServer, String sophoxQuery, -
applications/editors/josm/plugins/wikipedia/src/org/wikipedia/tools/Debouncer.java
r32888 r34079 18 18 * Debounces {@code callable} by {@code delay}, i.e., schedules it to be executed after {@code delay}, 19 19 * or cancels its execution if the method is called with the same key within the {@code delay} again. 20 * @param key key 21 * @param runnable runnable to be scheduled 22 * @param delay delay value 23 * @param unit delay time unit 20 24 */ 21 25 public void debounce(final Object key, final Runnable runnable, long delay, TimeUnit unit) {
Note:
See TracChangeset
for help on using the changeset viewer.