Changeset 12588 in osm for applications/editors/josm/plugins/DirectUpload
- Timestamp:
- 2008-12-25T19:01:06+01:00 (16 years ago)
- Location:
- applications/editors/josm/plugins/DirectUpload
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/DirectUpload/build.xml
r12022 r12588 21 21 <echo message="creating ${plugin.jar}"/> 22 22 <javac srcdir="src" classpath="${josm}" destdir="build" debug="true" encoding="UTF-8"> 23 <compilerarg value="-Xlint:deprecation"/> 23 24 <include name="**/*.java" /> 24 25 </javac> … … 45 46 <attribute name="Plugin-Author" value="Subhodip Biswas :subhodipbiswas@gmail.com" /> 46 47 <attribute name="Plugin-Version" value="${version.entry.commit.revision}"/> 47 <attribute name="Plugin-Mainversion" value="1 "/>48 <attribute name="Plugin-Mainversion" value="1180"/> 48 49 <attribute name="Plugin-Date" value="${version.entry.commit.date}"/> 49 50 </manifest> -
applications/editors/josm/plugins/DirectUpload/src/org/openstreetmap/josm/plugins/DirectUpload/UploadDataGuiPlugin.java
r11949 r12588 16 16 import org.openstreetmap.josm.gui.layer.Layer; 17 17 import org.openstreetmap.josm.plugins.Plugin; 18 import org.openstreetmap.josm.tools.Shortcut; 18 19 /** 19 20 * … … 22 23 public class UploadDataGuiPlugin extends Plugin{ 23 24 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); 29 29 } 30 30 31 class UploadAction extends JosmAction {32 31 class UploadAction extends JosmAction { 32 33 33 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); 36 37 } 37 38 public void actionPerformed(ActionEvent e) { 38 39 UploadDataGui go = new UploadDataGui(); 39 40 go.setVisible(true); 40 41 } 42 } 43 41 } 42 } 44 43 }
Note:
See TracChangeset
for help on using the changeset viewer.