Ignore:
Timestamp:
2008-12-25T19:01:06+01:00 (16 years ago)
Author:
stoecker
Message:

updated a lot

Location:
applications/editors/josm/plugins/tcxplugin
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • applications/editors/josm/plugins/tcxplugin

    • Property svn:ignore set to
      build
      josm-site.xml
  • applications/editors/josm/plugins/tcxplugin/build.xml

    r11976 r12588  
    2020  <property name="livegpsplugin.jar" value="../../dist/livegps.jar"/>
    2121 
    22   <!-- plugin meta data (enter new version number if anything changed!) -->
    23   <property name="plugin.version" value="1.1"/>
    2422  <property name="plugin.description" value="Adds support for TCX files."/>
    2523  <property name="plugin.stage" value="100"/>
     
    5149       
    5250   
     51    <exec append="false" output="REVISION" executable="svn" failifexecutionfails="false">
     52      <env key="LANG" value="C"/>
     53      <arg value="info"/>
     54      <arg value="--xml"/>
     55      <arg value="."/>
     56    </exec>
     57    <xmlproperty file="REVISION" prefix="version" keepRoot="false" collapseAttributes="true"/>
     58    <delete file="REVISION"/>
    5359    <!-- create jar file -->
    5460    <jar destfile="${plugin.jar}" basedir="${plugin.build.dir}">
     
    5662        <attribute name="Plugin-Class" value="${plugin.class}" />
    5763        <attribute name="Plugin-Description" value="${plugin.description}" />
    58         <attribute name="Plugin-Version" value="${plugin.version}" />
    5964        <attribute name="Plugin-Stage" value="${plugin.stage}" />
     65        <attribute name="Plugin-Version" value="${version.entry.commit.revision}"/>
     66        <attribute name="Plugin-Date" value="${version.entry.commit.date}"/>
     67        <attribute name="Plugin-Mainversion" value="1180" />
    6068<!--        <attribute name="Class-Path" value="lib/jaxb-api.jar;lib/jaxb-impl.jar" />-->
    6169      </manifest>
  • applications/editors/josm/plugins/tcxplugin/src/org/openstreetmap/josm/plugins/TcxPlugin.java

    r11974 r12588  
    1919
    2020import org.openstreetmap.josm.Main;
     21import org.openstreetmap.josm.gui.MainMenu;
    2122import org.openstreetmap.josm.actions.DiskAccessAction;
    2223import org.openstreetmap.josm.actions.JosmAction;
     
    2526import org.openstreetmap.josm.gui.layer.markerlayer.MarkerLayer;
    2627import org.openstreetmap.josm.io.TcxReader;
     28import org.openstreetmap.josm.tools.Shortcut;
    2729/**
    2830 * @author adrian
     
    3537        public OpenAction()
    3638        {
    37             super("Import TCX File...", "tcxicon", "", KeyEvent.VK_T, KeyEvent.CTRL_MASK);
     39            super(tr("Import TCX File..."), "tcxicon", tr("Import TCX file as GPS track"),
     40            Shortcut.registerShortcut("menu:importtcx", tr("Menu: {0}", tr("Import TCX File...")),
     41            KeyEvent.VK_T, Shortcut.GROUP_MENU));
    3842        }
    3943       
     
    98102    public TcxPlugin()
    99103    {
    100         JMenu menu = Main.main.menu.getMenu(0);
    101 
    102         JosmAction openAction = new OpenAction();
    103         JMenuItem actionItem = new JMenuItem(openAction);
    104         menu.insert(actionItem, 2);
    105         actionItem.setAccelerator(openAction.shortcut);
    106        
     104        MainMenu.add(Main.main.menu.fileMenu, new OpenAction());
    107105    }
    108106}
Note: See TracChangeset for help on using the changeset viewer.