Modify

Opened 8 years ago

Closed 8 years ago

Last modified 8 years ago

#12863 closed enhancement (fixed)

[Patch] LayerManager implementation

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

Description

This is the implementation of a new manager class that takes over all layer management the MapView once did.

There are new interfaces for layer listeners. All listeners fire in the EDT to make implementing UI listeners easier.

See #11838 for more information about the new layer manager.

Attachments (1)

patch-add-layer-manager.patch (100.1 KB ) - added by michael2402 8 years ago.

Download all attachments as: .zip

Change History (17)

by michael2402, 8 years ago

comment:1 by bastiK, 8 years ago

Looks good!

comment:2 by stoecker, 8 years ago

Resolution: fixed
Status: newclosed

In 10271/josm:

GSOC core rework - LayerManager, fix #12863, by Michael Zangl

comment:3 by stoecker, 8 years ago

Please for new functions, classes already add the "@since xxx". We'll fill in the number when doing the checkin. It's easier to search for "@since xxx" then to check the whole code :-)

BTW LayerManagerWithActive is not really a fancy name...

comment:4 by michael2402, 8 years ago

I agree that the name is not good. I could not really think of a better one. If you can come up with one, feel free to change it before it is used in any plugins or other places.

We could rename LayerManagerWithActive->LayerManager and LayerManager -> BasicLayerManager - since most people will be using the one that most people will use.

The LayerManager.java file seems to be missing in the commit.

comment:5 by stoecker, 8 years ago

In 10273/josm:

GSOC core rework - LayerManager, see #12863, by Micheel Zangl, add missing file

comment:6 by stoecker, 8 years ago

LayerManagerWithActive --> MainLayerManager? One rename less. :-)

comment:7 by stoecker, 8 years ago

In 10274/josm:

GSOC core rework - LayerManager, see #12863, by Micheel Zangl, fix version

in reply to:  6 comment:8 by michael2402, 8 years ago

Replying to stoecker:

LayerManagerWithActive --> MainLayerManager? One rename less. :-)

Yes, we can do that. Can you do it or should I do a patch?

comment:9 by Don-vip, 8 years ago

In 10277/josm:

GSOC core rework - LayerManager, see #12863, fix checkstyle violations

comment:10 by Don-vip, 8 years ago

In 10278/josm:

GSOC core rework - LayerManager, see #12863, fix checkstyle violations (unit tests)

comment:11 by Don-vip, 8 years ago

In 10279/josm:

GSOC core rework - LayerManager, see #12863, rename LayerManagerWithActive to MainLayerManager

comment:12 by Don-vip, 8 years ago

Milestone: 16.0616.05

comment:13 by Don-vip, 8 years ago

thanks for the patch!

comment:14 by Don-vip, 8 years ago

In 10281/josm:

GSOC core rework - LayerManager, see #12863, restore a public method as deprecated to ease plugin update

comment:15 by Don-vip, 8 years ago

In 10282/josm:

GSOC core rework - LayerManager, see #12863, need a LayerManager accessor from MapView for plugins creating custom ones

comment:16 by Don-vip, 8 years ago

In 10295/josm:

see #12863 - fix typo

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.