Ignore:
Timestamp:
2010-08-03T08:17:26+02:00 (15 years ago)
Author:
jttt
Message:

Adapt to latest josm

Location:
applications/editors/josm/plugins/walkingpapers
Files:
2 edited

Legend:

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

    r21706 r22549  
    1414**
    1515** To build against the core in ../../core, create a correct manifest and deploy to
    16 ** SVN, 
     16** SVN,
    1717**    set the properties commit.message and plugin.main.version
    1818** and run
     
    2323<project name="walkingpapers" default="dist" basedir=".">
    2424
    25         <!-- 
    26         ** update before publishing 
     25        <!--
     26        ** update before publishing
    2727        -->
    2828        <property name="commit.message" value="Changed the constructor signature of the plugin main class" />
    29         <property name="plugin.main.version" value="2830" />
     29        <property name="plugin.main.version" value="3408" />
    3030
    31        
     31
    3232        <property name="josm"                   location="../../core/dist/josm-custom.jar"/>
    3333        <property name="plugin.dist.dir"        value="../../dist"/>
     
    8787
    8888        <!--
    89                  ************************** Publishing the plugin *********************************** 
     89                 ************************** Publishing the plugin ***********************************
    9090                -->
    9191        <!--
    92                 ** extracts the JOSM release for the JOSM version in ../core and saves it in the 
     92                ** extracts the JOSM release for the JOSM version in ../core and saves it in the
    9393                ** property ${coreversion.info.entry.revision}
    9494                **
     
    139139
    140140        <!--
    141                 ** commits the plugin.jar 
     141                ** commits the plugin.jar
    142142                -->
    143143        <target name="commit-dist">
    144144                <echo>
    145145        ***** Properties of published ${plugin.jar} *****
    146         Commit message    : '${commit.message}'                                 
     146        Commit message    : '${commit.message}'
    147147        Plugin-Mainversion: ${plugin.main.version}
    148148        JOSM build version: ${coreversion.info.entry.revision}
    149149        Plugin-Version    : ${version.entry.commit.revision}
    150         ***** / Properties of published ${plugin.jar} *****                                     
    151                                                
     150        ***** / Properties of published ${plugin.jar} *****
     151
    152152        Now commiting ${plugin.jar} ...
    153153        </echo>
  • applications/editors/josm/plugins/walkingpapers/src/org/openstreetmap/josm/plugins/walkingpapers/WalkingPapersLayer.java

    r19074 r22549  
    44
    55import java.awt.Color;
    6 import java.awt.Component;
    76import java.awt.Graphics2D;
    87import java.awt.Image;
     
    1413import java.util.TreeSet;
    1514
     15import javax.swing.Action;
    1616import javax.swing.Icon;
    17 import javax.swing.JMenuItem;
    18 import javax.swing.JSeparator;
    1917
    2018import org.openstreetmap.josm.Main;
     
    119117        }
    120118
    121         class TileTimeComp implements Comparator<WalkingPapersTile> {
     119        static class TileTimeComp implements Comparator<WalkingPapersTile> {
    122120                public int compare(WalkingPapersTile s1, WalkingPapersTile s2) {
    123121                        long t1 = s1.access_time();
     
    349347
    350348        @Override
    351         public Component[] getMenuEntries() {
    352                 return new Component[] {
    353                                 new JMenuItem(LayerListDialog.getInstance().createShowHideLayerAction(this)),
    354                                 new JMenuItem(LayerListDialog.getInstance().createDeleteLayerAction(this)),
    355                                 new JSeparator(),
     349        public Action[] getMenuEntries() {
     350                return new Action[] {
     351                                LayerListDialog.getInstance().createShowHideLayerAction(),
     352                                LayerListDialog.getInstance().createDeleteLayerAction(),
     353                                SeparatorLayerAction.INSTANCE,
    356354                                // color,
    357355                                // new JMenuItem(new RenameLayerAction(associatedFile, this)),
    358                                 new JSeparator(),
    359                                 new JMenuItem(new LayerListPopup.InfoAction(this)) };
     356                                SeparatorLayerAction.INSTANCE,
     357                                new LayerListPopup.InfoAction(this) };
    360358        }
    361359
Note: See TracChangeset for help on using the changeset viewer.