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

updated a lot

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

Legend:

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

    r12022 r12588  
    2121    <echo message="creating ${plugin.jar}"/>
    2222    <javac srcdir="src" classpath="${josm}" destdir="build" debug="true" encoding="UTF-8">
     23      <compilerarg value="-Xlint:deprecation"/>
    2324      <include name="**/*.java" />
    2425    </javac>
     
    4546        <attribute name="Plugin-Author" value="Subhodip Biswas :subhodipbiswas@gmail.com" />
    4647        <attribute name="Plugin-Version" value="${version.entry.commit.revision}"/>
    47         <attribute name="Plugin-Mainversion" value="1"/>
     48        <attribute name="Plugin-Mainversion" value="1180"/>
    4849        <attribute name="Plugin-Date" value="${version.entry.commit.date}"/>
    4950      </manifest>
  • applications/editors/josm/plugins/DirectUpload/src/org/openstreetmap/josm/plugins/DirectUpload/UploadDataGuiPlugin.java

    r11949 r12588  
    1616import org.openstreetmap.josm.gui.layer.Layer;
    1717import org.openstreetmap.josm.plugins.Plugin;
     18import org.openstreetmap.josm.tools.Shortcut;
    1819/**
    1920 *
     
    2223public class UploadDataGuiPlugin extends Plugin{
    2324    UploadAction openaction;
    24        
    25 public UploadDataGuiPlugin() {
    26        
    27     openaction = new UploadAction();
    28     Main.main.menu.toolsMenu.add(openaction);
     25
     26    public UploadDataGuiPlugin() {
     27        openaction = new UploadAction();
     28        Main.main.menu.toolsMenu.add(openaction);
    2929    }
    3030
    31 class UploadAction extends JosmAction {
    32      
     31    class UploadAction extends JosmAction {
     32
    3333        public UploadAction(){
    34             super(tr("Upload Traces"), "UploadAction", tr("Uploads traces to openstreetmap.org"), KeyEvent.VK_G, KeyEvent.CTRL_MASK,
    35             false);
     34            super(tr("Upload Traces"), "UploadAction", tr("Uploads traces to openstreetmap.org"),
     35            Shortcut.registerShortcut("tools:uploadtraces", tr("Tool: {0}", tr("Upload Traces")),
     36            KeyEvent.VK_G, Shortcut.GROUP_MENU), false);
    3637        }
    3738        public void actionPerformed(ActionEvent e) {
    3839            UploadDataGui go = new UploadDataGui();
    3940            go.setVisible(true);
    40      
    41             }
    42      }
    43      
     41        }
     42    }
    4443}
Note: See TracChangeset for help on using the changeset viewer.