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

fix #12983 - replace calls to Main.main.get[Active|Edit]Layer() by Main.getLayerManager().get[Active|Edit]Layer() - gsoc-core

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/actions/UpdateSelectionAction.java

    r10382 r10413  
    4444        try {
    4545            DataSet ds = reader.parseOsm(NullProgressMonitor.INSTANCE);
    46             Main.main.getEditLayer().mergeFrom(ds);
     46            Main.getLayerManager().getEditLayer().mergeFrom(ds);
    4747        } catch (OsmTransferException e) {
    4848            ExceptionDialogUtil.explainException(e);
     
    5858     */
    5959    public static void updatePrimitives(final Collection<OsmPrimitive> selection) {
    60         UpdatePrimitivesTask task = new UpdatePrimitivesTask(Main.main.getEditLayer(), selection);
     60        UpdatePrimitivesTask task = new UpdatePrimitivesTask(Main.getLayerManager().getEditLayer(), selection);
    6161        Main.worker.submit(task);
    6262    }
Note: See TracChangeset for help on using the changeset viewer.