Changeset 4028 in josm


Ignore:
Timestamp:
2011-04-15T22:03:38+02:00 (13 years ago)
Author:
stoecker
Message:

remove migration stuff for old imagery, wms and remote control plugins

Location:
trunk/src/org/openstreetmap/josm
Files:
1 deleted
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/gui/preferences/ImageryPreference.java

    r4016 r4028  
    7373    ImageryLayerInfo layerInfo;
    7474
    75     static ImagerySettingsMigration settingsMigration;
    76 
    7775    // Common settings
    7876    private Color colFadeColor;
     
    137135        p.add(this.sharpen, GBC.eol().fill(GBC.HORIZONTAL));
    138136
    139         if (settingsMigration != null) {
    140             final JButton btnSettingsMigration = new JButton(tr("WMSPlugin/SlippyMap settings migration"));
    141             btnSettingsMigration.addActionListener(new ActionListener() {
    142                 @Override
    143                 public void actionPerformed(ActionEvent e) {
    144                     if (settingsMigration == null) return;
    145                     settingsMigration.settingsMigrationDialog(gui);
    146                     loadSettings();
    147                     imageryProviders.model.fireTableDataChanged();
    148                     if (!settingsMigration.hasConflicts()) {
    149                         btnSettingsMigration.setEnabled(false);
    150                         settingsMigration = null;
    151                     }
    152                 }
    153             });
    154             p.add(btnSettingsMigration,GBC.eol().insets(0,5,0,5));
    155         }
    156137        this.useOffsetServer = new JCheckBox(tr("Use offset server: "));
    157138        this.offsetServerUrl = new JTextField();
     
    855836
    856837    public static void initialize() {
    857         settingsMigration = new ImagerySettingsMigration();
    858         settingsMigration.migrateSettings();
    859         if (!settingsMigration.hasConflicts()) {
    860             settingsMigration = null;
    861         }
    862838        ImageryLayerInfo.instance.load();
    863839        ImageryLayerInfo.instance.loadDefaults(false);
  • trunk/src/org/openstreetmap/josm/plugins/PluginHandler.java

    r3874 r4028  
    7575        String IN_CORE = tr("integrated into main program");
    7676
    77         class RemotecontrolMigration implements Runnable {
    78             public void run() {
    79                 System.out.println("Migrating remotecontrol plugin...");
    80                 if (!RemoteControl.PROP_REMOTECONTROL_ENABLED.isSet()) {
    81                     System.out.println("  Setting "+RemoteControl.PROP_REMOTECONTROL_ENABLED.getKey()+"=true");
    82                     RemoteControl.PROP_REMOTECONTROL_ENABLED.put(true);
    83                 }
    84                 System.out.println("...Done.");
    85             }
    86         }
    87 
    8877        DEPRECATED_PLUGINS = Arrays.asList(new DeprecatedPlugin[] {
    8978            new DeprecatedPlugin("mappaint", IN_CORE),
     
    111100            new DeprecatedPlugin("validator", IN_CORE),
    112101            new DeprecatedPlugin("multipoly", IN_CORE),
    113             new DeprecatedPlugin("remotecontrol", IN_CORE, new RemotecontrolMigration()),
     102            new DeprecatedPlugin("remotecontrol", IN_CORE),
    114103            new DeprecatedPlugin("imagery", IN_CORE),
    115104            new DeprecatedPlugin("slippymap", IN_CORE),
Note: See TracChangeset for help on using the changeset viewer.