Ignore:
Timestamp:
2011-07-10T23:22:15+02:00 (13 years ago)
Author:
stoecker
Message:

i18n update, update to josm core cleanup

Location:
applications/editors/josm/plugins
Files:
85 edited

Legend:

Unmodified
Added
Removed
  • applications/editors/josm/plugins/FixAddresses/build.xml

    r26174 r26299  
    9494                <attribute name="de_Plugin-Description" value="Findet ungültige Addressen und bietet Unterstützung zur deren Korrektur."/>
    9595                <attribute name="Plugin-Link" value="http://wiki.openstreetmap.org/wiki/JOSM/Plugins/FixAddresses"/>
    96                 <attribute name="Plugin-Mainversion" value="3835"/>
     96                <attribute name="Plugin-Mainversion" value="4223"/>
    9797                <attribute name="Plugin-Version" value="${version.entry.commit.revision}"/>
    9898                <attribute name="Plugin-Icon" value="images/fixaddresses.png"/>
  • applications/editors/josm/plugins/FixAddresses/src/org/openstreetmap/josm/plugins/fixAddresses/AddressEditContainer.java

    r25373 r26299  
    644644
    645645        /* (non-Javadoc)
    646          * @see org.openstreetmap.josm.data.osm.event.DataSetListener#primtivesAdded(org.openstreetmap.josm.data.osm.event.PrimitivesAddedEvent)
    647          */
    648         @Override
    649         public void primtivesAdded(PrimitivesAddedEvent event) {
     646         * @see org.openstreetmap.josm.data.osm.event.DataSetListener#primitivesAdded(org.openstreetmap.josm.data.osm.event.PrimitivesAddedEvent)
     647         */
     648        @Override
     649        public void primitivesAdded(PrimitivesAddedEvent event) {
    650650                invalidate();
    651651        }
    652652
    653653        /* (non-Javadoc)
    654          * @see org.openstreetmap.josm.data.osm.event.DataSetListener#primtivesRemoved(org.openstreetmap.josm.data.osm.event.PrimitivesRemovedEvent)
    655          */
    656         @Override
    657         public void primtivesRemoved(PrimitivesRemovedEvent event) {
     654         * @see org.openstreetmap.josm.data.osm.event.DataSetListener#primitivesRemoved(org.openstreetmap.josm.data.osm.event.PrimitivesRemovedEvent)
     655         */
     656        @Override
     657        public void primitivesRemoved(PrimitivesRemovedEvent event) {
    658658                invalidate();
    659659        }
  • applications/editors/josm/plugins/FixAddresses/src/org/openstreetmap/josm/plugins/fixAddresses/gui/IncompleteAddressesDialog.java

    r25373 r26299  
    155155
    156156        /* (non-Javadoc)
    157          * @see org.openstreetmap.josm.data.osm.event.DataSetListener#primtivesAdded(org.openstreetmap.josm.data.osm.event.PrimitivesAddedEvent)
    158          */
    159         @Override
    160         public void primtivesAdded(PrimitivesAddedEvent event) {
    161                 container.invalidate();
    162 
    163         }
    164 
    165         /* (non-Javadoc)
    166          * @see org.openstreetmap.josm.data.osm.event.DataSetListener#primtivesRemoved(org.openstreetmap.josm.data.osm.event.PrimitivesRemovedEvent)
    167          */
    168         @Override
    169         public void primtivesRemoved(PrimitivesRemovedEvent event) {
     157         * @see org.openstreetmap.josm.data.osm.event.DataSetListener#primitivesAdded(org.openstreetmap.josm.data.osm.event.PrimitivesAddedEvent)
     158         */
     159        @Override
     160        public void primitivesAdded(PrimitivesAddedEvent event) {
     161                container.invalidate();
     162
     163        }
     164
     165        /* (non-Javadoc)
     166         * @see org.openstreetmap.josm.data.osm.event.DataSetListener#primitivesRemoved(org.openstreetmap.josm.data.osm.event.PrimitivesRemovedEvent)
     167         */
     168        @Override
     169        public void primitivesRemoved(PrimitivesRemovedEvent event) {
    170170                container.invalidate();
    171171        }
  • applications/editors/josm/plugins/czechaddress/build.xml

    r26174 r26299  
    3232            <attribute name="Plugin-Description" value="Creating and handling address nodes and buildings within Czech Republic."/>
    3333            <attribute name="Plugin-Link" value="http://wiki.openstreetmap.org/index.php/Cz:JOSM/Plugins/CzechAddress"/>
    34             <attribute name="Plugin-Mainversion" value="3835"/>
     34            <attribute name="Plugin-Mainversion" value="4126"/>
    3535            <attribute name="Plugin-Version" value="${version.entry.commit.revision}"/>
    3636        </manifest>
  • applications/editors/josm/plugins/czechaddress/src/org/openstreetmap/josm/plugins/czechaddress/actions/SplitAreaByEmptyWayAction.java

    r24784 r26299  
    5555
    5656        Collection<Way> selectedWays = Main.main.getCurrentDataSet().getSelectedWays();
    57         Collection<Way> newSelection = new LinkedList(Main.main.getCurrentDataSet().getSelectedWays());
     57        Collection<Way> newSelection = new LinkedList<Way>(Main.main.getCurrentDataSet().getSelectedWays());
    5858
    5959        for (Way area : selectedWays) {
  • applications/editors/josm/plugins/czechaddress/src/org/openstreetmap/josm/plugins/czechaddress/gui/FactoryDialog.java

    r23190 r26299  
    9191
    9292        if (message == MESSAGE_LOCATION_CHANGED) {
    93             DataSet.selListeners.add(this);
     93            DataSet.addSelectionListener(this);
    9494
    9595            streetModel.setParent(CzechAddressPlugin.getLocation());
  • applications/editors/josm/plugins/czechaddress/src/org/openstreetmap/josm/plugins/czechaddress/gui/LocationSelector.java

    r23190 r26299  
    101101
    102102        try {
    103             center = Main.proj.eastNorth2latlon(Main.map.mapView.getCenter());
     103            center = Main.getProjection().eastNorth2latlon(Main.map.mapView.getCenter());
    104104        } catch (Exception e) {
    105105            System.err.println("AUTO: No bounds to determine autolocation.");
  • applications/editors/josm/plugins/czechaddress/src/org/openstreetmap/josm/plugins/czechaddress/intelligence/SelectionMonitor.java

    r15585 r26299  
    2727        if (singleton == null) {
    2828            singleton = new SelectionMonitor();
    29             DataSet.selListeners.add(singleton);
     29            DataSet.addSelectionListener(singleton);
    3030        }
    3131        return singleton;
  • applications/editors/josm/plugins/openstreetbugs/build.xml

    r26174 r26299  
    2727<project name="openstreetbugs" default="dist" basedir=".">
    2828    <property name="commit.message" value="Changed the constructor signature of the plugin main class"/>
    29     <property name="plugin.main.version" value="3835"/>
     29    <property name="plugin.main.version" value="4223"/>
    3030    <property name="josm" location="../../core/dist/josm-custom.jar"/>
    3131    <property name="plugin.dist.dir" value="../../dist"/>
  • applications/editors/josm/plugins/openstreetbugs/src/org/openstreetmap/josm/plugins/osb/OsbLayer.java

    r22548 r26299  
    7979        this.data = dataSet;
    8080        this.dialog = dialog;
    81         DataSet.selListeners.add(new SelectionChangedListener() {
     81        DataSet.addSelectionListener(new SelectionChangedListener() {
    8282            public void selectionChanged(Collection<? extends OsmPrimitive> newSelection) {
    8383                selection = newSelection;
  • applications/editors/josm/plugins/openstreetbugs/src/org/openstreetmap/josm/plugins/osb/gui/OsbDialog.java

    r25520 r26299  
    451451    public void otherDatasetChange(AbstractDatasetChangedEvent event) {}
    452452
    453     public void primtivesAdded(PrimitivesAddedEvent event) {}
    454 
    455     public void primtivesRemoved(PrimitivesRemovedEvent event) {}
     453    public void primitivesAdded(PrimitivesAddedEvent event) {}
     454
     455    public void primitivesRemoved(PrimitivesRemovedEvent event) {}
    456456
    457457    public void relationMembersChanged(RelationMembersChangedEvent event) {}
  • applications/editors/josm/plugins/reltoolbox/build.xml

    r26174 r26299  
    3232    <property name="commit.message" value="RelToolbox"/>
    3333    <!-- enter the *lowest* JOSM version this plugin is currently compatible with -->
    34     <property name="plugin.main.version" value="3835"/>
     34    <property name="plugin.main.version" value="4223"/>
    3535    <!--
    3636      ************************************************
  • applications/editors/josm/plugins/reltoolbox/src/relcontext/ChosenRelation.java

    r26293 r26299  
    165165    }
    166166
    167     public void primtivesRemoved( PrimitivesRemovedEvent event ) {
     167    public void primitivesRemoved( PrimitivesRemovedEvent event ) {
    168168        if( chosenRelation != null && event.getPrimitives().contains(chosenRelation) )
    169169            clear();
     
    175175    }
    176176
    177     public void primtivesAdded( PrimitivesAddedEvent event ) {}
     177    public void primitivesAdded( PrimitivesAddedEvent event ) {}
    178178    public void nodeMoved( NodeMovedEvent event ) {}
    179179    public void otherDatasetChange( AbstractDatasetChangedEvent event ) {}
  • applications/editors/josm/plugins/tageditor/src/org/openstreetmap/josm/plugins/tageditor/LaunchAction.java

    r23189 r26299  
    3434        );
    3535
    36         DataSet.selListeners.add(this);
     36        DataSet.addSelectionListener(this);
    3737        setEnabled(false);
    3838    }
  • applications/editors/josm/plugins/turnlanes/build.xml

    r26175 r26299  
    3232    <property name="commit.message" value="Commit message"/>
    3333    <!-- enter the *lowest* JOSM version this plugin is currently compatible with -->
    34     <property name="plugin.main.version" value="4126"/>
     34    <property name="plugin.main.version" value="4223"/>
    3535    <!--
    3636      ************************************************
  • applications/editors/josm/plugins/turnlanes/src/org/openstreetmap/josm/plugins/turnlanes/gui/TurnLanesDialog.java

    r26192 r26299  
    9898       
    9999        @Override
    100         public void primtivesRemoved(PrimitivesRemovedEvent event) {
    101             refresh();
    102         }
    103        
    104         @Override
    105         public void primtivesAdded(PrimitivesAddedEvent event) {
     100        public void primitivesRemoved(PrimitivesRemovedEvent event) {
     101            refresh();
     102        }
     103       
     104        @Override
     105        public void primitivesAdded(PrimitivesAddedEvent event) {
    106106            refresh();
    107107        }
  • applications/editors/josm/plugins/turnrestrictions/build.xml

    r26174 r26299  
    3232    <property name="commit.message" value="Adapt to JOSM core change (DefaultNameFormatter)"/>
    3333    <!-- enter the *lowest* JOSM version this plugin is currently compatible with -->
    34     <property name="plugin.main.version" value="4100"/>
     34    <property name="plugin.main.version" value="4223"/>
    3535    <!--
    3636      ************************************************
  • applications/editors/josm/plugins/turnrestrictions/src/org/openstreetmap/josm/plugins/turnrestrictions/editor/JosmSelectionListModel.java

    r23571 r26299  
    213213    }
    214214
    215     public void primtivesAdded(PrimitivesAddedEvent event) {/* ignored - handled by SelectionChangeListener */}
    216     public void primtivesRemoved(PrimitivesRemovedEvent event) {/* ignored - handled by SelectionChangeListener*/}
     215    public void primitivesAdded(PrimitivesAddedEvent event) {/* ignored - handled by SelectionChangeListener */}
     216    public void primitivesRemoved(PrimitivesRemovedEvent event) {/* ignored - handled by SelectionChangeListener*/}
    217217 
    218218    /* ------------------------------------------------------------------------ */
  • applications/editors/josm/plugins/turnrestrictions/src/org/openstreetmap/josm/plugins/turnrestrictions/editor/TurnRestrictionEditorModel.java

    r24125 r26299  
    410410    public void otherDatasetChange(AbstractDatasetChangedEvent event) {/* irrelevant in this context */}
    411411
    412     public void primtivesAdded(PrimitivesAddedEvent event) {/* irrelevant in this context */}
    413     public void primtivesRemoved(PrimitivesRemovedEvent event) {
     412    public void primitivesAdded(PrimitivesAddedEvent event) {/* irrelevant in this context */}
     413    public void primitivesRemoved(PrimitivesRemovedEvent event) {
    414414        // relevant for the state of this model but not handled here. When the
    415415        // state of this model is applied to the dataset we check whether the
  • applications/editors/josm/plugins/turnrestrictions/src/org/openstreetmap/josm/plugins/turnrestrictions/list/TurnRestrictionsInDatasetListModel.java

    r23510 r26299  
    8787    }
    8888
    89     public void primtivesAdded(PrimitivesAddedEvent event) {
     89    public void primitivesAdded(PrimitivesAddedEvent event) {
    9090        List<Relation> turnRestrictions = filterTurnRestrictions(event.getPrimitives());
    9191        if (!turnRestrictions.isEmpty()) {
     
    9494    }
    9595
    96     public void primtivesRemoved(PrimitivesRemovedEvent event) {
     96    public void primitivesRemoved(PrimitivesRemovedEvent event) {
    9797        List<Relation> turnRestrictions = filterTurnRestrictions(event.getPrimitives());
    9898        if (!turnRestrictions.isEmpty()) {
  • applications/editors/josm/plugins/walkingpapers/build.xml

    r26174 r26299  
    2626    -->
    2727    <property name="commit.message" value="Changed the constructor signature of the plugin main class"/>
    28     <property name="plugin.main.version" value="3835"/>
     28    <property name="plugin.main.version" value="4126"/>
    2929    <property name="josm" location="../../core/dist/josm-custom.jar"/>
    3030    <property name="plugin.dist.dir" value="../../dist"/>
  • applications/editors/josm/plugins/walkingpapers/src/org/openstreetmap/josm/plugins/walkingpapers/WalkingPapersLayer.java

    r23190 r26299  
    238238            for (int y = viewportMinY - 1; y <= viewportMaxY + 1; y++) {
    239239                LatLon tmpLL = new LatLon(tileYToLat(y), lon);
    240                 pixelpos[x - viewportMinX + 1][y - viewportMinY + 1] = mv.getPoint(Main.proj
     240                pixelpos[x - viewportMinX + 1][y - viewportMinY + 1] = mv.getPoint(Main.getProjection()
    241241                        .latlon2eastNorth(tmpLL));
    242242            }
  • applications/editors/josm/plugins/wms-turbo-challenge2/build.xml

    r26174 r26299  
    6767                <attribute name="Plugin-Icon" value="images/wmsracer.png"/>
    6868                <attribute name="Plugin-Link" value="http://wiki.openstreetmap.org/wiki/JOSM/Plugins/WMS_Racer"/>
    69                 <attribute name="Plugin-Mainversion" value="4065"/>
     69                <attribute name="Plugin-Mainversion" value="4126"/>
    7070                <attribute name="Plugin-Version" value="${version.entry.commit.revision}"/>
    7171            </manifest>
  • applications/editors/josm/plugins/wms-turbo-challenge2/src/wmsturbochallenge/GameWindow.java

    r26174 r26299  
    104104             * have a fix and add any distortions.  */
    105105
    106             segment.add(new WayPoint(Main.proj.eastNorth2latlon(
     106            segment.add(new WayPoint(Main.getProjection().eastNorth2latlon(
    107107                    new EastNorth(lon, lat))));
    108108        }
Note: See TracChangeset for help on using the changeset viewer.