﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	resolution	keywords	cc
12983	use layer manager in Command	anonymous	team	"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.

{{{
#!java
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();
    }
}}}"	enhancement	closed	normal	16.06	Core	latest	fixed	gsoc-core	michael2402
