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

remove calls to deprecated methods

Location:
applications/editors/josm/plugins/pdfimport/src/pdfimport
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • applications/editors/josm/plugins/pdfimport/src/pdfimport/LoadPdfDialog.java

    r30532 r32515  
    715715
    716716        private EastNorth getSelectedCoor() {
    717                 Collection<OsmPrimitive> selected = Main.main.getCurrentDataSet().getSelected();
     717                Collection<OsmPrimitive> selected = Main.getLayerManager().getEditDataSet().getSelected();
    718718
    719719                if (selected.size() != 1 || !(selected.iterator().next() instanceof Node)){
     
    10611061                this.removeLayer();
    10621062                this.layer = _layer;
    1063                 Main.main.addLayer(this.layer);
     1063                Main.getLayerManager().addLayer(this.layer);
    10641064                Main.map.mapView.zoomTo(placement.getWorldBounds(this.data));
    10651065        }
     
    10671067        private void removeLayer() {
    10681068                if (this.layer != null) {
    1069                         Main.main.removeLayer(this.layer);
     1069                        Main.getLayerManager().removeLayer(this.layer);
    10701070                        this.layer.data.clear(); //saves memory
    10711071                        this.layer = null;
  • applications/editors/josm/plugins/pdfimport/src/pdfimport/pdfbox/operators/Invoke.java

    r23991 r32515  
    5757                PDPage page = drawer.getPage();
    5858                COSName objectName = (COSName)arguments.get( 0 );
    59                 Map xobjects = drawer.getResources().getXObjects();
     59                Map<?, ?> xobjects = drawer.getResources().getXObjects();
    6060                PDXObject xobject = (PDXObject)xobjects.get( objectName.getName() );
    6161                if( xobject instanceof PDXObjectImage )
Note: See TracChangeset for help on using the changeset viewer.