Changeset 34079 in osm for applications/editors/josm


Ignore:
Timestamp:
2018-02-20T21:31:41+01:00 (7 years ago)
Author:
donvip
Message:

see #josm15985 - fix help topic and javadoc warnings

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  
    1717org.eclipse.jdt.core.compiler.debug.localVariable=generate
    1818org.eclipse.jdt.core.compiler.debug.sourceFile=generate
     19org.eclipse.jdt.core.compiler.doc.comment.support=enabled
    1920org.eclipse.jdt.core.compiler.problem.annotationSuperInterface=warning
    2021org.eclipse.jdt.core.compiler.problem.assertIdentifier=error
     
    4041org.eclipse.jdt.core.compiler.problem.incompleteEnumSwitch=warning
    4142org.eclipse.jdt.core.compiler.problem.indirectStaticAccess=ignore
     43org.eclipse.jdt.core.compiler.problem.invalidJavadoc=warning
     44org.eclipse.jdt.core.compiler.problem.invalidJavadocTags=enabled
     45org.eclipse.jdt.core.compiler.problem.invalidJavadocTagsDeprecatedRef=enabled
     46org.eclipse.jdt.core.compiler.problem.invalidJavadocTagsNotVisibleRef=enabled
     47org.eclipse.jdt.core.compiler.problem.invalidJavadocTagsVisibility=private
    4248org.eclipse.jdt.core.compiler.problem.localVariableHiding=ignore
    4349org.eclipse.jdt.core.compiler.problem.methodWithConstructorName=warning
     
    4652org.eclipse.jdt.core.compiler.problem.missingEnumCaseDespiteDefault=disabled
    4753org.eclipse.jdt.core.compiler.problem.missingHashCodeMethod=ignore
     54org.eclipse.jdt.core.compiler.problem.missingJavadocComments=ignore
     55org.eclipse.jdt.core.compiler.problem.missingJavadocCommentsOverriding=disabled
     56org.eclipse.jdt.core.compiler.problem.missingJavadocCommentsVisibility=public
     57org.eclipse.jdt.core.compiler.problem.missingJavadocTagDescription=return_tag
     58org.eclipse.jdt.core.compiler.problem.missingJavadocTags=warning
     59org.eclipse.jdt.core.compiler.problem.missingJavadocTagsMethodTypeParameters=disabled
     60org.eclipse.jdt.core.compiler.problem.missingJavadocTagsOverriding=disabled
     61org.eclipse.jdt.core.compiler.problem.missingJavadocTagsVisibility=private
    4862org.eclipse.jdt.core.compiler.problem.missingOverrideAnnotation=ignore
    4963org.eclipse.jdt.core.compiler.problem.missingOverrideAnnotationForInterfaceMethodImplementation=enabled
  • applications/editors/josm/plugins/wikipedia/src/org/wikipedia/WikipediaApp.java

    r33993 r34079  
    2929import javax.xml.parsers.ParserConfigurationException;
    3030
    31 import org.openstreetmap.josm.Main;
    3231import org.openstreetmap.josm.data.coor.LatLon;
    3332import org.openstreetmap.josm.data.osm.OsmPrimitive;
     
    222221    /**
    223222     * Returns a map mapping wikipedia articles to wikidata ids.
     223     * @param articles wikipedia article names
     224     * @return article / wikidata id map
    224225     */
    225226    public Map<String, String> getWikidataForArticles(Collection<String> articles) {
     
    252253     * Get Wikidata IDs. For any unknown IDs, resolve them (normalize and get redirects),
    253254     * and try getting Wikidata IDs again
     255     * @param articles wikipedia article names
     256     * @return article / wikidata id map
    254257     */
    255258    private Map<String, String> resolveWikidataItems(Collection<String> articles) {
     
    323326     * Given a list of wikipedia titles, returns a map of corresponding normalized title names,
    324327     * 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
    325330     */
    326331    private Map<String, String> resolveRedirectsForArticles(Collection<String> articles) {
  • applications/editors/josm/plugins/wikipedia/src/org/wikipedia/actions/FetchWikidataAction.java

    r33541 r34079  
    1515import javax.swing.JOptionPane;
    1616
    17 import org.openstreetmap.josm.Main;
    1817import org.openstreetmap.josm.actions.JosmAction;
    1918import org.openstreetmap.josm.command.ChangePropertyCommand;
  • applications/editors/josm/plugins/wikipedia/src/org/wikipedia/actions/WikipediaCopyTemplate.java

    r33673 r34079  
    4747    /**
    4848     * Class to hold copy templates for serialization using {@link Preferences}.
    49      * Public visibility is needed for reflection used in {@link Preferences#getListOfStructs}.
     49     * Public visibility is needed for reflection used in {@link Preferences#getListOfMaps}.
    5050     */
    5151    @SuppressWarnings("WeakerAccess")
  • applications/editors/josm/plugins/wikipedia/src/org/wikipedia/gui/WikidataTagCellRenderer.java

    r33541 r34079  
    1919import javax.swing.table.DefaultTableCellRenderer;
    2020
    21 import org.openstreetmap.josm.Main;
    2221import org.openstreetmap.josm.gui.util.GuiHelper;
    2322import org.openstreetmap.josm.tools.Logging;
  • applications/editors/josm/plugins/wikipedia/src/org/wikipedia/gui/WikipediaToggleDialog.java

    r33696 r34079  
    22package org.wikipedia.gui;
    33
     4import static org.openstreetmap.josm.gui.help.HelpUtil.ht;
    45import static org.openstreetmap.josm.tools.I18n.tr;
    56
     
    367368
    368369    @Override
     370    public String helpTopic() {
     371        return ht("/Plugin/Wikipedia");
     372    }
     373
     374    @Override
    369375    public void showNotify() {
    370376        DatasetEventManager.getInstance().addDatasetListener(dataChangedAdapter, FireMode.IN_EDT_CONSOLIDATED);
  • applications/editors/josm/plugins/wikipedia/src/org/wikipedia/io/SophoxDownloadReader.java

    r33808 r34079  
    6868     * @param sophoxServer The Sophox server to use
    6969     * @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
    7073     */
    7174    public SophoxDownloadReader(Bounds downloadArea, String sophoxServer, String sophoxQuery,
  • applications/editors/josm/plugins/wikipedia/src/org/wikipedia/tools/Debouncer.java

    r32888 r34079  
    1818     * Debounces {@code callable} by {@code delay}, i.e., schedules it to be executed after {@code delay},
    1919     * 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
    2024     */
    2125    public void debounce(final Object key, final Runnable runnable, long delay, TimeUnit unit) {
Note: See TracChangeset for help on using the changeset viewer.