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

Adapt to latest josm

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

Legend:

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

    r21706 r22547  
    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
     
    2626-->
    2727<project name="graphview" default="dist" basedir=".">
    28  
     28
    2929        <property name="commit.message" value="prevent stack overflows; closes bug 4695 in JOSM Trac" />
    30         <property name="plugin.main.version" value="3314" />
    31        
     30        <property name="plugin.main.version" value="3408" />
     31
    3232    <property name="josm"                   location="../../core/dist/josm-custom.jar"/>
    3333    <property name="plugin.build.dir"       value="build"/>
     
    136136        <copy file="${plugin.jar}" todir="${josm.plugins.dir}"/>
    137137    </target>
    138        
    139        
     138
     139
    140140        <!--
    141                  ************************** Publishing the plugin *********************************** 
    142                 -->
    143                 <!--
    144                 ** extracts the JOSM release for the JOSM version in ../core and saves it in the 
     141                 ************************** Publishing the plugin ***********************************
     142                -->
     143                <!--
     144                ** extracts the JOSM release for the JOSM version in ../core and saves it in the
    145145                ** property ${coreversion.info.entry.revision}
    146146                **
     
    191191
    192192                <!--
    193                 ** commits the plugin.jar 
     193                ** commits the plugin.jar
    194194                -->
    195195                <target name="commit-dist">
    196196                        <echo>
    197197        ***** Properties of published ${plugin.jar} *****
    198         Commit message    : '${commit.message}'                                 
     198        Commit message    : '${commit.message}'
    199199        Plugin-Mainversion: ${plugin.main.version}
    200200        JOSM build version: ${coreversion.info.entry.revision}
    201201        Plugin-Version    : ${version.entry.commit.revision}
    202         ***** / Properties of published ${plugin.jar} *****                                     
    203                                                
     202        ***** / Properties of published ${plugin.jar} *****
     203
    204204        Now commiting ${plugin.jar} ...
    205205        </echo>
  • applications/editors/josm/plugins/graphview/src/org/openstreetmap/josm/plugins/graphview/plugin/layer/GraphViewLayer.java

    r19054 r22547  
    33import java.awt.BasicStroke;
    44import java.awt.Color;
    5 import java.awt.Component;
    65import java.awt.Graphics;
    76import java.awt.Graphics2D;
     
    1312import java.util.List;
    1413
     14import javax.swing.Action;
    1515import javax.swing.Icon;
    16 import javax.swing.JMenuItem;
    17 import javax.swing.JSeparator;
    1816
    1917import org.openstreetmap.josm.Main;
     
    324322
    325323        @Override
    326         public Component[] getMenuEntries() {
    327                 return new Component[] { new JMenuItem(LayerListDialog.getInstance().createShowHideLayerAction(this)),
    328                                 new JMenuItem(LayerListDialog.getInstance().createDeleteLayerAction(this)), new JSeparator(),
    329                                 new JMenuItem(new RenameLayerAction(null, this)), new JSeparator(),
    330                                 new JMenuItem(new LayerListPopup.InfoAction(this)) };
     324        public Action[] getMenuEntries() {
     325                return new Action[] {
     326                                LayerListDialog.getInstance().createShowHideLayerAction(),
     327                                LayerListDialog.getInstance().createDeleteLayerAction(),
     328                                SeparatorLayerAction.INSTANCE,
     329                                new RenameLayerAction(null, this),
     330                                SeparatorLayerAction.INSTANCE,
     331                                new LayerListPopup.InfoAction(this)};
    331332        }
    332333
Note: See TracChangeset for help on using the changeset viewer.