Skip to content

Change TOCTable and TOCLayer managers to a static approach. #24

@jorgelf

Description

@jorgelf

In my opinion, both TOCTable and TOCLayer manager could work perfectly in a static approach, with no need to spend memory in storing a real object. When you want to retrieve a layer or table, you want to retrieve it among the ones opened at that moment, not from any previous state. Therefore, I think what we usually do in our code (we always create a new object and directly call the method onto it) doesn't make much sense and is a small waste of resources.
Maybe we could provide both options, both as an object (the only situation I think it could be useful is when you want to retrieve a series of layers/tables at the same point, as it will retrieve and traverse the windows only once) and as a static method, which will fit for most situations.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions