Changeset 12588 in osm for applications/editors/josm/plugins/openvisible
- Timestamp:
- 2008-12-25T19:01:06+01:00 (16 years ago)
- Location:
- applications/editors/josm/plugins/openvisible
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/openvisible/build.xml
r11975 r12588 17 17 <property name="plugin.jar" value="${plugin.name}.jar"/> 18 18 19 <!-- plugin meta data (enter new version number if anything changed!) -->20 <property name="plugin.version" value="0.2.3"/>21 19 <property name="plugin.description" value="Allows opening gpx/osm files that intersect the currently visible screen area (V${plugin.version})."/> 22 20 <property name="plugin.stage" value="50"/> … … 47 45 <mkdir dir="${plugin.dist.dir}"/> 48 46 47 <exec append="false" output="REVISION" executable="svn" failifexecutionfails="false"> 48 <env key="LANG" value="C"/> 49 <arg value="info"/> 50 <arg value="--xml"/> 51 <arg value="."/> 52 </exec> 53 <xmlproperty file="REVISION" prefix="version" keepRoot="false" collapseAttributes="true"/> 54 <delete file="REVISION"/> 49 55 <!-- create jar file --> 50 56 <jar destfile="${plugin.dist.dir}/${plugin.jar}" basedir="${plugin.build.dir}"> … … 52 58 <attribute name="Plugin-Class" value="${plugin.class}" /> 53 59 <attribute name="Plugin-Description" value="${plugin.description}" /> 54 <attribute name="Plugin-Version" value="${plugin.version}" /> 60 <attribute name="Plugin-Version" value="${version.entry.commit.revision}"/> 61 <attribute name="Plugin-Date" value="${version.entry.commit.date}"/> 62 <attribute name="Plugin-Mainversion" value="1180" /> 55 63 <attribute name="Plugin-Dependencies" value="jgrapht-jdk1.5" /> 56 64 <attribute name="Plugin-Stage" value="${plugin.stage}" /> -
applications/editors/josm/plugins/openvisible/src/at/dallermassl/josm/plugin/openvisible/OpenVisibleAction.java
r7317 r12588 31 31 import org.openstreetmap.josm.io.GpxReader; 32 32 import org.openstreetmap.josm.io.OsmReader; 33 import org.openstreetmap.josm.tools.Shortcut; 33 34 import org.xml.sax.SAXException; 34 35 … … 41 42 42 43 public OpenVisibleAction() { 43 super(tr("Open Visible ..."), "openvisible", tr("Open only files that are visible in current view."), KeyEvent.VK_O, 44 InputEvent.CTRL_DOWN_MASK | InputEvent.SHIFT_DOWN_MASK, true); 44 super(tr("Open Visible ..."), "openvisible", 45 tr("Open only files that are visible in current view."), 46 Shortcut.registerShortcut("tools:openvisible", tr("Menu: {0}", tr("Open Visible ...")), 47 KeyEvent.VK_I, Shortcut.GROUP_MENU, Shortcut.SHIFT_DEFAULT), true); 45 48 } 46 49 -
applications/editors/josm/plugins/openvisible/src/at/dallermassl/josm/plugin/openvisible/OpenVisiblePlugin.java
r11974 r12588 8 8 9 9 import org.openstreetmap.josm.Main; 10 import org.openstreetmap.josm.gui.MainMenu; 10 11 import org.openstreetmap.josm.plugins.Plugin; 11 12 import org.openstreetmap.josm.actions.JosmAction; … … 16 17 */ 17 18 public class OpenVisiblePlugin extends Plugin { 18 19 19 20 public OpenVisiblePlugin() { 20 21 super(); 21 JMenu fileMenu = Main.main.menu.fileMenu; 22 JosmAction openVisible = new OpenVisibleAction(); 23 24 //JMenu navigatorMenu = new JMenu("Open Visible"); 25 JMenuItem menuItem = new JMenuItem(openVisible); 26 27 fileMenu.add(menuItem,2); 28 menuItem.setAccelerator(openVisible.shortcut); 22 MainMenu.add(Main.main.menu.fileMenu, new OpenVisibleAction()); 29 23 } 30 24
Note:
See TracChangeset
for help on using the changeset viewer.