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

Adapt to latest josm

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

Legend:

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

    r21706 r22549  
    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="Changed the constructor signature of the plugin main class" />
    30         <property name="plugin.main.version" value="2830" />
     30        <property name="plugin.main.version" value="3408" />
    3131
    3232        <!-- Define some properties -->
     
    106106
    107107        <!--
    108                  ************************** Publishing the plugin *********************************** 
    109                 -->
    110         <!--
    111                 ** extracts the JOSM release for the JOSM version in ../core and saves it in the 
     108                 ************************** Publishing the plugin ***********************************
     109                -->
     110        <!--
     111                ** extracts the JOSM release for the JOSM version in ../core and saves it in the
    112112                ** property ${coreversion.info.entry.revision}
    113113                **
     
    158158
    159159        <!--
    160                 ** commits the plugin.jar 
     160                ** commits the plugin.jar
    161161                -->
    162162        <target name="commit-dist">
    163163                <echo>
    164164        ***** Properties of published ${plugin.jar} *****
    165         Commit message    : '${commit.message}'                                 
     165        Commit message    : '${commit.message}'
    166166        Plugin-Mainversion: ${plugin.main.version}
    167167        JOSM build version: ${coreversion.info.entry.revision}
    168168        Plugin-Version    : ${version.entry.commit.revision}
    169         ***** / Properties of published ${plugin.jar} *****                                     
    170                                                
     169        ***** / Properties of published ${plugin.jar} *****
     170
    171171        Now commiting ${plugin.jar} ...
    172172        </echo>
  • applications/editors/josm/plugins/routing/src/com/innovant/josm/plugin/routing/RoutingLayer.java

    r18962 r22549  
    3030import java.awt.BasicStroke;
    3131import java.awt.Color;
    32 import java.awt.Component;
    3332import java.awt.Graphics;
    3433import java.awt.Graphics2D;
     
    3938import java.util.List;
    4039
     40import javax.swing.Action;
    4141import javax.swing.Icon;
    42 import javax.swing.JMenuItem;
    43 import javax.swing.JSeparator;
    4442
    4543import org.apache.log4j.Logger;
     
    182180     */
    183181    @Override
    184     public Component[] getMenuEntries() {
    185         Collection<Component> components = new ArrayList<Component>();
    186         components.add(new JMenuItem(LayerListDialog.getInstance().createShowHideLayerAction(this)));
     182    public Action[] getMenuEntries() {
     183        Collection<Action> components = new ArrayList<Action>();
     184        components.add(LayerListDialog.getInstance().createShowHideLayerAction());
    187185//        components.add(new JMenuItem(new LayerListDialog.ShowHideMarkerText(this)));
    188         components.add(new JMenuItem(LayerListDialog.getInstance().createDeleteLayerAction(this)));
    189         components.add(new JSeparator());
    190         components.add(new JMenuItem(new RenameLayerAction(getAssociatedFile(), this)));
    191         components.add(new JSeparator());
    192         components.add(new JMenuItem(new LayerListPopup.InfoAction(this)));
    193         return components.toArray(new Component[0]);
     186        components.add(LayerListDialog.getInstance().createDeleteLayerAction());
     187        components.add(SeparatorLayerAction.INSTANCE);
     188        components.add(new RenameLayerAction(getAssociatedFile(), this));
     189        components.add(SeparatorLayerAction.INSTANCE);
     190        components.add(new LayerListPopup.InfoAction(this));
     191        return components.toArray(new Action[0]);
    194192    }
    195193
Note: See TracChangeset for help on using the changeset viewer.