Changeset 30950 in osm for applications/editors


Ignore:
Timestamp:
2015-02-09T00:11:30+01:00 (10 years ago)
Author:
polyglot
Message:

mapillary plugins still doesn't do anything, but I finally managed to setup the JDK environment and removed stuff until it oompiles without errors now.

Location:
applications/editors/josm/plugins/mapillary
Files:
1 added
3 edited

Legend:

Unmodified
Added
Removed
  • applications/editors/josm/plugins/mapillary/src/org/openstreetmap/josm/plugins/mapillary/MapillaryAction.java

    r30944 r30950  
    22 *
    33 */
    4 package org.openstreetmap.josm.plugins.sumoconvert;
     4package org.openstreetmap.josm.plugins.mapillary;
    55
    66import static org.openstreetmap.josm.tools.I18n.tr;
     
    1818
    1919/**
    20  * @author ignacio_palermo
     20 * @author Polyglot
    2121 *
    2222 */
    23 public class SumoExportAction extends JosmAction {
     23public class MapillaryAction extends JosmAction {
    2424       
    25         public SumoExportAction(){
    26         super(tr("OSM Export"), "images/dialogs/logo-sumo.png",
    27         tr("Export traffic data to SUMO network file."),
    28         Shortcut.registerShortcut("menu:sumoexport", tr("Menu: {0}", tr("SUMO Export")),
    29         KeyEvent.VK_G, Shortcut.ALT_CTRL), false);
     25        public MapillaryAction(){
     26        super(tr("Mapillary"), "images/icon24.png",
     27        tr("Create Mapillary layer."),
     28        Shortcut.registerShortcut("menu:Mapillary", tr("Menu: {0}", tr("Mapillary")),
     29        KeyEvent.VK_M, Shortcut.ALT_CTRL), false);
    3030    }
    3131
     
    3535        @Override
    3636        public void actionPerformed(ActionEvent arg0) {
    37                 SumoExportDialog dialog = new SumoExportDialog();
     37                MapillaryDialog dialog = new MapillaryDialog();
    3838        JOptionPane pane = new JOptionPane(dialog, JOptionPane.PLAIN_MESSAGE, JOptionPane.OK_CANCEL_OPTION);
    3939        JDialog dlg = pane.createDialog(Main.parent, tr("Export"));
     
    4141        dlg.setVisible(true);
    4242        if(((Integer)pane.getValue()) == JOptionPane.OK_OPTION){
    43             ExportTask task = new ExportTask();
    44             Main.worker.execute(task);
     43            // MapillaryTask task = new MapillaryTask();
     44            // Main.worker.execute(task);
    4545        }
    4646        dlg.dispose();
  • applications/editors/josm/plugins/mapillary/src/org/openstreetmap/josm/plugins/mapillary/MapillaryDialog.java

    r30944 r30950  
    22 *
    33 */
    4 package org.openstreetmap.josm.plugins.sumoconvert;
     4package org.openstreetmap.josm.plugins.mapillary;
    55
    66import static org.openstreetmap.josm.tools.I18n.tr;
     
    2828/**
    2929 * Main export dialog
    30  * @author ignacio_palermo
     30 * @author Polyglot
    3131 *
    3232 */
    33 public class SumoExportDialog extends JPanel {
     33public class MapillaryDialog extends JPanel {
    3434        // the JOptionPane that contains this dialog. required for the closeDialog() method.
    3535    private JOptionPane optionPane;
     
    3838   
    3939
    40     public SumoExportDialog() {
     40    public MapillaryDialog() {
    4141        GridBagConstraints c = new GridBagConstraints();
    4242        JButton refreshBtn, configBtn;
     
    8888                        JOptionPane.showMessageDialog(Main.parent, tr("Connection Error.") + " " + ex.toString());
    8989                    }
    90                     System.out.println("configureing the device finised");
     90                    System.out.println("configuring the device finished");
    9191                }
    9292            });
  • applications/editors/josm/plugins/mapillary/src/org/openstreetmap/josm/plugins/mapillary/MapillaryPlugin.java

    r30944 r30950  
    1 package org.openstreetmap.josm.plugins.sumoconvert;
     1package org.openstreetmap.josm.plugins.mapillary;
    22
    33import java.util.ArrayList;
     
    99import org.openstreetmap.josm.plugins.Plugin;
    1010import org.openstreetmap.josm.plugins.PluginInformation;
    11 import org.openstreetmap.josm.plugins.turnrestrictions.list.TurnRestrictionsListDialog;
    12 import org.openstreetmap.josm.plugins.turnrestrictions.preferences.PreferenceEditor;
    13 import org.openstreetmap.josm.plugins.turnrestrictions.*;
    1411
    1512/**
    16  * This is the main class for the sumoconvert plugin.
     13 * This is the main class for the mapillary plugin.
    1714 *
    1815 */
    19 public class SumoConvertPlugin extends Plugin{
    20    
    21         private final ArrayList<Relation> turnrestrictions = new ArrayList<Relation>();
    22         private SumoExportAction exportAction;
     16public class MapillaryPlugin extends Plugin{
    2317       
    24     public SumoConvertPlugin(PluginInformation info) {
     18    public MapillaryPlugin(PluginInformation info) {
    2519        super(info);
    26         exportAction = new SumoExportAction();
    27         Main.main.menu.toolsMenu.add(exportAction);
    28         System.out.println(getPluginDir());
    2920    }
    3021   
     
    3627        if (oldFrame == null && newFrame != null) { // map frame added
    3728               
    38             //TurnRestrictionsListDialog dialog  = new TurnRestrictionsListDialog();
    39             //add the dialog
    40             //newFrame.addToggleDialog(dialog);
    41             //CreateOrEditTurnRestrictionAction.getInstance();
    4229        }
    4330    }
    44 
    45     @Override
    46     public PreferenceSetting getPreferenceSetting() {
    47         return new PreferenceEditor();
    48     }
    4931}
Note: See TracChangeset for help on using the changeset viewer.