Modify

Opened 7 years ago

Closed 7 years ago

Last modified 7 years ago

#12953 closed enhancement (fixed)

[Patch] Replace most uses of MapView.getActiveLayer and similar methods

Reported by: michael2402 Owned by: michael2402
Priority: normal Milestone: 16.06
Component: Core Version:
Keywords: gsoc-core Cc: Don-vip, bastiK, stoecker

Description

Replace most uses of:

  • MapView.getActiveLayer()
  • MapView.setActiveLayer()
  • MapView.getEditLayer()
  • MapView.getLayers()
  • MapView.getLayersAsList()
  • MapView.hasLayer()

I added a patch for core and the plugins repository.

Attachments (2)

patch-layer-manager-migrate-from-mapview.patch (25.0 KB) - added by michael2402 7 years ago.
patch-layer-manager-migrate-from-mapview-plugins.patch (68.6 KB) - added by michael2402 7 years ago.

Download all attachments as: .zip

Change History (9)

Changed 7 years ago by michael2402

comment:1 Changed 7 years ago by stoecker

In 10364/josm:

gsoc-core - patch by Michael Zangl - see #12953 - remove deprecation usage

comment:2 Changed 7 years ago by stoecker

For the plugins you must in each case increase the minimum JOSM version in build.xml to the minimum version required for the change to work.

comment:3 Changed 7 years ago by michael2402

I'll update the patch the next few days.

comment:4 in reply to:  3 Changed 7 years ago by stoecker

Minimum JOSM version build.xml is the main reason for all these @since statements :-)

comment:5 Changed 7 years ago by Don-vip

Owner: changed from team to michael2402
Status: newneedinfo

comment:6 Changed 7 years ago by Don-vip

Resolution: fixed
Status: needinfoclosed

Patch applied in [o32329]. Plugins jars need to be updated, I think I'll do an i18n update soon and update them all.

comment:7 Changed 7 years ago by michael2402

Thanks. I was just going through the build.xml files and changing the version :-( ;-)

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain michael2402.
as The resolution will be set.
The resolution will be deleted.

Add Comment


E-mail address and name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.