Opened 10 years ago
Last modified 10 years ago
#12983 closed enhancement
use layer manager in Command — at Initial Version
| Reported by: | anonymous | Owned by: | team |
|---|---|---|---|
| Priority: | normal | Milestone: | 16.06 |
| Component: | Core | Version: | latest |
| Keywords: | gsoc-core | Cc: | michael2402 |
Description
The Command class should get the active layer from the layer manager. otherwise it does not seem possible to use the command in a test with JOSMTestRules, because "Main.main" is null.
package org.openstreetmap.josm.command:
/
- Creates a new command in the context of the current edit layer, if any */
public Command() {
this.layer = Main.main == null ? null : Main.main.getEditLayer();
}
Note:
See TracTickets
for help on using tickets.


