Changeset 12588 in osm for applications/editors/josm/plugins/tcxplugin
- Timestamp:
- 2008-12-25T19:01:06+01:00 (16 years ago)
- 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
-
Property svn:ignore
set to
-
applications/editors/josm/plugins/tcxplugin/build.xml
r11976 r12588 20 20 <property name="livegpsplugin.jar" value="../../dist/livegps.jar"/> 21 21 22 <!-- plugin meta data (enter new version number if anything changed!) -->23 <property name="plugin.version" value="1.1"/>24 22 <property name="plugin.description" value="Adds support for TCX files."/> 25 23 <property name="plugin.stage" value="100"/> … … 51 49 52 50 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"/> 53 59 <!-- create jar file --> 54 60 <jar destfile="${plugin.jar}" basedir="${plugin.build.dir}"> … … 56 62 <attribute name="Plugin-Class" value="${plugin.class}" /> 57 63 <attribute name="Plugin-Description" value="${plugin.description}" /> 58 <attribute name="Plugin-Version" value="${plugin.version}" />59 64 <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" /> 60 68 <!-- <attribute name="Class-Path" value="lib/jaxb-api.jar;lib/jaxb-impl.jar" />--> 61 69 </manifest> -
applications/editors/josm/plugins/tcxplugin/src/org/openstreetmap/josm/plugins/TcxPlugin.java
r11974 r12588 19 19 20 20 import org.openstreetmap.josm.Main; 21 import org.openstreetmap.josm.gui.MainMenu; 21 22 import org.openstreetmap.josm.actions.DiskAccessAction; 22 23 import org.openstreetmap.josm.actions.JosmAction; … … 25 26 import org.openstreetmap.josm.gui.layer.markerlayer.MarkerLayer; 26 27 import org.openstreetmap.josm.io.TcxReader; 28 import org.openstreetmap.josm.tools.Shortcut; 27 29 /** 28 30 * @author adrian … … 35 37 public OpenAction() 36 38 { 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)); 38 42 } 39 43 … … 98 102 public TcxPlugin() 99 103 { 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()); 107 105 } 108 106 }
Note:
See TracChangeset
for help on using the changeset viewer.