Changeset 32516 in osm for applications/editors


Ignore:
Timestamp:
2016-07-02T00:17:24+02:00 (8 years ago)
Author:
donvip
Message:

remove calls to deprecated methods

Location:
applications/editors/josm/plugins/reverter
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • applications/editors/josm/plugins/reverter/.settings/org.eclipse.jdt.core.prefs

    r30736 r32516  
    4444org.eclipse.jdt.core.compiler.problem.missingOverrideAnnotation=ignore
    4545org.eclipse.jdt.core.compiler.problem.missingOverrideAnnotationForInterfaceMethodImplementation=enabled
    46 org.eclipse.jdt.core.compiler.problem.missingSerialVersion=warning
     46org.eclipse.jdt.core.compiler.problem.missingSerialVersion=ignore
    4747org.eclipse.jdt.core.compiler.problem.missingSynchronizedOnInheritedMethod=ignore
    4848org.eclipse.jdt.core.compiler.problem.noEffectAssignment=warning
     
    6363org.eclipse.jdt.core.compiler.problem.redundantNullCheck=ignore
    6464org.eclipse.jdt.core.compiler.problem.redundantSpecificationOfTypeArguments=warning
    65 org.eclipse.jdt.core.compiler.problem.redundantSuperinterface=ignore
     65org.eclipse.jdt.core.compiler.problem.redundantSuperinterface=warning
    6666org.eclipse.jdt.core.compiler.problem.reportMethodCanBePotentiallyStatic=ignore
    6767org.eclipse.jdt.core.compiler.problem.reportMethodCanBeStatic=ignore
     
    8585org.eclipse.jdt.core.compiler.problem.unusedDeclaredThrownExceptionIncludeDocCommentReference=enabled
    8686org.eclipse.jdt.core.compiler.problem.unusedDeclaredThrownExceptionWhenOverriding=disabled
     87org.eclipse.jdt.core.compiler.problem.unusedExceptionParameter=ignore
    8788org.eclipse.jdt.core.compiler.problem.unusedImport=warning
    8889org.eclipse.jdt.core.compiler.problem.unusedLabel=warning
  • applications/editors/josm/plugins/reverter/build.xml

    r32005 r32516  
    44    <property name="commit.message" value="Reverter: Update MultiOsmReader to support null data after redaction"/>
    55    <!-- enter the *lowest* JOSM version this plugin is currently compatible with -->
    6     <property name="plugin.main.version" value="9514"/>
     6    <property name="plugin.main.version" value="10279"/>
    77
    88    <!-- Configure these properties (replace "..." accordingly).
  • applications/editors/josm/plugins/reverter/src/reverter/ChangesetIdQuery.java

    r31596 r32516  
    106106        super.setupDialog();
    107107       
    108         final DataSet ds = Main.main.getCurrentDataSet();
     108        final DataSet ds = Main.getLayerManager().getEditDataSet();
    109109       
    110110        // Disables "Download in new layer" choice if there is no current data set (i.e no data layer)
  • applications/editors/josm/plugins/reverter/src/reverter/ChangesetReverter.java

    r31897 r32516  
    136136            this.layer = new OsmDataLayer(this.ds, tr("Reverted changeset") + tr(" [id: {0}]", String.valueOf(changesetId)), null);
    137137        } else {
    138             this.layer = Main.main.getEditLayer();
     138            this.layer = Main.getLayerManager().getEditLayer();
    139139            this.ds = layer.data;
    140140        }
     
    155155                    @Override
    156156                    public void run() {
    157                         Main.main.addLayer(layer);
     157                        Main.getLayerManager().addLayer(layer);
    158158                    }
    159159                });
  • applications/editors/josm/plugins/reverter/src/reverter/ReverterUploadHook.java

    r32005 r32516  
    2323
    2424        if (hasRevertions) {
    25             Main.main.getCurrentDataSet().addChangeSetTag("created_by", "reverter");
     25            Main.getLayerManager().getEditDataSet().addChangeSetTag("created_by", "reverter");
    2626        }
    2727        return true;
Note: See TracChangeset for help on using the changeset viewer.