Changeset 10620 in josm


Ignore:
Timestamp:
2016-07-24T12:09:19+02:00 (4 years ago)
Author:
Don-vip
Message:

fix #13196 - remove FileDrop class (patch my michael2402) - gsoc-core

Location:
trunk/src/org/openstreetmap/josm/gui
Files:
1 added
1 deleted
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/gui/GettingStarted.java

    r10611 r10620  
    66import java.awt.BorderLayout;
    77import java.awt.EventQueue;
    8 import java.awt.GraphicsEnvironment;
    98import java.awt.event.InputEvent;
    109import java.awt.event.KeyEvent;
     
    2524import org.openstreetmap.josm.Main;
    2625import org.openstreetmap.josm.data.Version;
     26import org.openstreetmap.josm.gui.datatransfer.FileTransferHandler;
    2727import org.openstreetmap.josm.gui.preferences.server.ProxyPreference;
    2828import org.openstreetmap.josm.gui.preferences.server.ProxyPreferenceListener;
     
    125125        // clear the build-in command ctrl+shift+O, because it is used as shortcut in JOSM
    126126        lg.getInputMap(JComponent.WHEN_FOCUSED).put(KeyStroke.getKeyStroke(KeyEvent.VK_O, InputEvent.SHIFT_MASK | InputEvent.CTRL_MASK), "none");
     127        lg.setTransferHandler(null);
    127128
    128129        JScrollPane scroller = new JScrollPane(lg);
     
    132133        getMOTD();
    133134
    134         if (!GraphicsEnvironment.isHeadless()) {
    135             new FileDrop(scroller);
    136         }
     135        setTransferHandler(new FileTransferHandler());
    137136    }
    138137
Note: See TracChangeset for help on using the changeset viewer.