Modify

Opened 8 years ago

Closed 8 years ago

Last modified 8 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 8 years ago.
patch-layer-manager-migrate-from-mapview-plugins.patch (68.6 KB ) - added by michael2402 8 years ago.

Download all attachments as: .zip

Change History (9)

comment:1 by stoecker, 8 years ago

In 10364/josm:

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

comment:2 by stoecker, 8 years ago

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 by michael2402, 8 years ago

I'll update the patch the next few days.

in reply to:  3 comment:4 by stoecker, 8 years ago

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

comment:5 by Don-vip, 8 years ago

Owner: changed from team to michael2402
Status: newneedinfo

comment:6 by Don-vip, 8 years ago

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 by michael2402, 8 years ago

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. Next status will be 'reopened'.

Add Comment


E-mail address and name can be saved in the Preferences .
 
Note: See TracTickets for help on using tickets.