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

Adapt to latest josm

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

Legend:

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

    r21706 r22550  
    3333        <property name="commit.message" value="Changed the constructor signature of the plugin main class" />
    3434        <!-- enter the *lowest* JOSM version this plugin is currently compatible with -->
    35         <property name="plugin.main.version" value="2830" />
     35        <property name="plugin.main.version" value="3408" />
    3636
    3737        <property name="josm"                   location="../../core/dist/josm-custom.jar"/>
     
    103103
    104104        <!--
    105         ************************** Publishing the plugin *********************************** 
     105        ************************** Publishing the plugin ***********************************
    106106        -->
    107107        <!--
    108                 ** extracts the JOSM release for the JOSM version in ../core and saves it in the 
     108                ** extracts the JOSM release for the JOSM version in ../core and saves it in the
    109109                ** property ${coreversion.info.entry.revision}
    110110                **
     
    155155
    156156        <!--
    157                 ** commits the plugin.jar 
     157                ** commits the plugin.jar
    158158                -->
    159159        <target name="commit-dist">
    160160                <echo>
    161161        ***** Properties of published ${plugin.jar} *****
    162         Commit message    : '${commit.message}'                                 
     162        Commit message    : '${commit.message}'
    163163        Plugin-Mainversion: ${plugin.main.version}
    164164        JOSM build version: ${coreversion.info.entry.revision}
    165165        Plugin-Version    : ${version.entry.commit.revision}
    166         ***** / Properties of published ${plugin.jar} *****                                     
    167                                                
     166        ***** / Properties of published ${plugin.jar} *****
     167
    168168        Now commiting ${plugin.jar} ...
    169169        </echo>
     
    197197                </fail>
    198198        </target>
    199  
     199
    200200        <target name="publish" depends="ensure-svn-present,core-info,commit-current,update-current,clean,dist,commit-dist">
    201201        </target>
  • applications/editors/josm/plugins/openlayers/src/org/openstreetmap/josm/plugins/openLayers/OpenLayersLayer.java

    r19050 r22550  
    11package org.openstreetmap.josm.plugins.openLayers;
    22
    3 import java.awt.Component;
    43import java.awt.Dimension;
    54import java.awt.Graphics2D;
     
    76import java.beans.PropertyChangeListener;
    87
     8import javax.swing.Action;
    99import javax.swing.Icon;
    10 import javax.swing.JMenuItem;
    11 import javax.swing.JSeparator;
    1210
    1311import org.mozilla.javascript.NativeArray;
     
    7775
    7876    @Override
    79     public Component[] getMenuEntries() {
    80         return new Component[] {
    81             new JMenuItem(LayerListDialog.getInstance().createShowHideLayerAction(this)),
    82             new JMenuItem(LayerListDialog.getInstance().createDeleteLayerAction(this)),
    83             new JSeparator(),
     77    public Action[] getMenuEntries() {
     78        return new Action[] {
     79            LayerListDialog.getInstance().createShowHideLayerAction(),
     80            LayerListDialog.getInstance().createDeleteLayerAction(),
     81            SeparatorLayerAction.INSTANCE,
    8482            // color,
    85             new JMenuItem(new RenameLayerAction(getAssociatedFile(), this)),
    86             new JSeparator(),
    87             new JMenuItem(new LayerListPopup.InfoAction(this)) };
     83            new RenameLayerAction(getAssociatedFile(), this),
     84            SeparatorLayerAction.INSTANCE,
     85            new LayerListPopup.InfoAction(this) };
    8886    }
    8987
Note: See TracChangeset for help on using the changeset viewer.