Ignore:
Timestamp:
2010-08-03T08:21:38+02:00 (14 years ago)
Author:
jttt
Message:

Adapt to latest josm

Location:
applications/editors/josm/plugins/slippymap
Files:
1 deleted
2 edited

Legend:

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

    r21706 r22550  
    1818**
    1919** To build against the core in ../../core, create a correct manifest and deploy to
    20 ** SVN, 
     20** SVN,
    2121**    set the properties commit.message and plugin.main.version
    2222** and run
     
    2828
    2929        <property name="commit.message" value="Added haiti imagery tile source" />
    30         <property name="plugin.main.version" value="2830" />
     30        <property name="plugin.main.version" value="3408" />
    3131
    3232        <property name="josm"                   location="../../core/dist/josm-custom.jar"/>
     
    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>
     
    184184        <target name="publish" depends="ensure-svn-present,core-info,commit-current,update-current,clean,dist,commit-dist">
    185185        </target>
    186        
     186
    187187        <target name="dev-install">
    188188                <copy file="${plugin.jar}" todir="c:/data/projekte/osm/josm-dev/plugins" />
  • applications/editors/josm/plugins/slippymap/src/org/openstreetmap/josm/plugins/slippymap/SlippyMapLayer.java

    r21136 r22550  
    44
    55import java.awt.Color;
    6 import java.awt.Component;
    76import java.awt.Graphics;
    87import java.awt.Graphics2D;
     
    2120
    2221import javax.swing.AbstractAction;
     22import javax.swing.Action;
    2323import javax.swing.Icon;
    2424import javax.swing.JCheckBoxMenuItem;
    2525import javax.swing.JMenuItem;
    2626import javax.swing.JPopupMenu;
    27 import javax.swing.JSeparator;
    2827import javax.swing.SwingUtilities;
    2928
     
    4443import org.openstreetmap.josm.data.osm.visitor.BoundingXYVisitor;
    4544import org.openstreetmap.josm.gui.MapView;
     45import org.openstreetmap.josm.gui.MapView.LayerChangeListener;
    4646import org.openstreetmap.josm.gui.dialogs.LayerListDialog;
    4747import org.openstreetmap.josm.gui.dialogs.LayerListPopup;
    4848import org.openstreetmap.josm.gui.layer.Layer;
    4949import org.openstreetmap.josm.tools.ImageProvider;
    50 import org.openstreetmap.josm.gui.MapView.LayerChangeListener;
    5150
    5251/**
     
    993992
    994993    @Override
    995     public Component[] getMenuEntries() {
    996         return new Component[] {
    997                 new JMenuItem(LayerListDialog.getInstance().createShowHideLayerAction(this)),
    998                 new JMenuItem(LayerListDialog.getInstance().createDeleteLayerAction(this)),
    999                 new JSeparator(),
     994    public Action[] getMenuEntries() {
     995        return new Action[] {
     996                LayerListDialog.getInstance().createShowHideLayerAction(),
     997                LayerListDialog.getInstance().createDeleteLayerAction(),
     998                SeparatorLayerAction.INSTANCE,
    1000999                // color,
    1001                 new JMenuItem(new RenameLayerAction(this.getAssociatedFile(), this)),
    1002                 new JSeparator(),
    1003                 new JMenuItem(new LayerListPopup.InfoAction(this)) };
     1000                new RenameLayerAction(this.getAssociatedFile(), this),
     1001                SeparatorLayerAction.INSTANCE,
     1002                new LayerListPopup.InfoAction(this) };
    10041003    }
    10051004
Note: See TracChangeset for help on using the changeset viewer.