Changeset 31041 in osm for applications
- Timestamp:
- 2015-03-01T23:43:52+01:00 (10 years ago)
- Location:
- applications/editors/josm/plugins/mapillary
- Files:
-
- 3 added
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/mapillary/.classpath
r30944 r31041 2 2 <classpath> 3 3 <classpathentry kind="src" path="src"/> 4 <classpathentry kind="src" path="test/src"/> 5 <!-- <classpathentry exported="true" kind="con" path="GROOVY_SUPPORT"/> 6 <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/> 7 <classpathentry kind="con" path="org.eclipse.jdt.junit.JUNIT_CONTAINER/4"/> 8 <classpathentry kind="lib" path="/JOSM/dist/josm-custom.jar" sourcepath="/JOSM/src"/> 9 <classpathentry kind="lib" path="/JOSM/test/build" sourcepath="/JOSM/test/functional"/> 10 <classpathentry kind="lib" path="test/config"/> 11 <classpathentry kind="output" path="build"/> --> 4 <classpathentry combineaccessrules="false" kind="src" path="/JOSM"/> 5 <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.7"/> 6 <classpathentry kind="output" path="bin"/> 12 7 </classpath> -
applications/editors/josm/plugins/mapillary/src/org/openstreetmap/josm/plugins/mapillary/MapillaryDialog.java
r30950 r31041 1 1 /** 2 * 2 * 3 3 */ 4 4 package org.openstreetmap.josm.plugins.mapillary; … … 10 10 import java.awt.Insets; 11 11 import java.awt.event.ActionListener; 12 import java.util.Enumeration;13 import java.util.LinkedList;14 import java.util.List;15 12 16 13 import javax.swing.JButton; 17 14 import javax.swing.JCheckBox; 18 15 import javax.swing.JComboBox; 19 import javax.swing.JDialog;20 16 import javax.swing.JLabel; 21 import javax.swing.JList;22 17 import javax.swing.JOptionPane; 23 18 import javax.swing.JPanel; 24 import javax.swing.ListCellRenderer;25 19 26 20 import org.openstreetmap.josm.Main; … … 36 30 private JCheckBox delete; 37 31 private JComboBox portCombo; 38 32 39 33 40 34 public MapillaryDialog() { … … 45 39 46 40 portCombo = new JComboBox(); 47 41 48 42 refreshPorts(); 49 43 c.insets = new Insets(4,4,4,4); … … 63 57 refreshBtn = new JButton(tr("Refresh")); 64 58 refreshBtn.addActionListener(new ActionListener(){ 65 public void actionPerformed(java.awt.event.ActionEvent e){ 59 @Override 60 public void actionPerformed(java.awt.event.ActionEvent e){ 66 61 refreshPorts(); 67 62 } … … 77 72 configBtn = new JButton(tr("Configure")); 78 73 configBtn.addActionListener(new ActionListener(){ 79 public void actionPerformed(java.awt.event.ActionEvent e){ 80 System.out.println("configureing the device"); 74 @Override 75 public void actionPerformed(java.awt.event.ActionEvent e){ 76 System.out.println("configuring the device"); 81 77 try{ 82 78 83 84 85 79 80 81 86 82 87 83 }catch(Exception ex){ -
applications/editors/josm/plugins/mapillary/src/org/openstreetmap/josm/plugins/mapillary/MapillaryPlugin.java
r30951 r31041 1 1 package org.openstreetmap.josm.plugins.mapillary; 2 2 3 import java.util.ArrayList;4 5 import org.openstreetmap.josm.Main;6 3 import org.openstreetmap.josm.gui.MapFrame; 7 import org.openstreetmap.josm.gui.preferences.PreferenceSetting;8 4 import org.openstreetmap.josm.plugins.Plugin; 9 5 import org.openstreetmap.josm.plugins.PluginInformation; 10 6 11 import org.openstreetmap.josm.gui.layer.geoimage.GeoImageLayer;12 import org.openstreetmap.josm.gui.layer.geoimage.ImageDisplay;13 import org.openstreetmap.josm.gui.layer.geoimage.ImageEntry;14 import org.openstreetmap.josm.gui.layer.geoimage.ImageViewerDialog;15 16 7 /** 17 8 * This is the main class for the mapillary plugin. 18 * 9 * 19 10 */ 20 11 public class MapillaryPlugin extends Plugin{ 21 12 22 13 public MapillaryPlugin(PluginInformation info) { 23 14 super(info); 24 15 } 25 16 26 17 /** 27 * Called when the JOSM map frame is created or destroyed. 18 * Called when the JOSM map frame is created or destroyed. 28 19 */ 29 20 @Override 30 public void mapFrameInitialized(MapFrame oldFrame, MapFrame newFrame) { 21 public void mapFrameInitialized(MapFrame oldFrame, MapFrame newFrame) { 31 22 if (oldFrame == null && newFrame != null) { // map frame added 32 23 33 24 } 34 25 }
Note:
See TracChangeset
for help on using the changeset viewer.