Changes between Initial Version and Version 7 of Ticket #12983


Ignore:
Timestamp:
2016-06-18T00:08:02+02:00 (8 years ago)
Author:
Don-vip
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #12983

    • Property Cc michael2402 added
    • Property Keywords gsoc-core added
    • Property Resolutionfixed
    • Property Status newclosed
    • Property Milestone16.06
    • Property Type defectenhancement
  • Ticket #12983 – Description

    initial v7  
    11The 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.
    22
     3{{{
     4#!java
    35package org.openstreetmap.josm.command:
    46
    5  /**
     7    /**
    68     * Creates a new command in the context of the current edit layer, if any
    79     */
     
    911        this.layer = Main.main == null ? null : Main.main.getEditLayer();
    1012    }
     13}}}