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

updated a lot

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

Legend:

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

    r11975 r12588  
    1717  <property name="plugin.jar" value="${plugin.name}.jar"/>
    1818 
    19   <!-- plugin meta data (enter new version number if anything changed!) -->
    20   <property name="plugin.version" value="0.2.3"/>
    2119  <property name="plugin.description" value="Allows opening gpx/osm files that intersect the currently visible screen area (V${plugin.version})."/>
    2220  <property name="plugin.stage" value="50"/>
     
    4745    <mkdir dir="${plugin.dist.dir}"/>
    4846   
     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"/>
    4955    <!-- create jar file -->
    5056    <jar destfile="${plugin.dist.dir}/${plugin.jar}" basedir="${plugin.build.dir}">
     
    5258        <attribute name="Plugin-Class" value="${plugin.class}" />
    5359        <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" />
    5563        <attribute name="Plugin-Dependencies" value="jgrapht-jdk1.5" />
    5664        <attribute name="Plugin-Stage" value="${plugin.stage}" />
  • applications/editors/josm/plugins/openvisible/src/at/dallermassl/josm/plugin/openvisible/OpenVisibleAction.java

    r7317 r12588  
    3131import org.openstreetmap.josm.io.GpxReader;
    3232import org.openstreetmap.josm.io.OsmReader;
     33import org.openstreetmap.josm.tools.Shortcut;
    3334import org.xml.sax.SAXException;
    3435
     
    4142   
    4243    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);
    4548    }
    4649
  • applications/editors/josm/plugins/openvisible/src/at/dallermassl/josm/plugin/openvisible/OpenVisiblePlugin.java

    r11974 r12588  
    88
    99import org.openstreetmap.josm.Main;
     10import org.openstreetmap.josm.gui.MainMenu;
    1011import org.openstreetmap.josm.plugins.Plugin;
    1112import org.openstreetmap.josm.actions.JosmAction;
     
    1617 */
    1718public class OpenVisiblePlugin extends Plugin {
    18    
     19
    1920    public OpenVisiblePlugin() {
    2021        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());
    2923    }
    3024
Note: See TracChangeset for help on using the changeset viewer.