Changeset 1343 in josm for trunk/src/org/openstreetmap


Ignore:
Timestamp:
2009-01-25T23:44:39+01:00 (16 years ago)
Author:
stoecker
Message:

java 1.5 patch

File:
1 edited

Legend:

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

    r1335 r1343  
    198198            public boolean importData(JComponent comp, Transferable t) {
    199199                try {
    200                     int dropIndex = selectedList.locationToIndex(selectedList.getDropLocation().getDropPoint());
     200                    int dropIndex = selectedList.locationToIndex(selectedList.getMousePosition(true));
    201201                    Object[] draggedData = (Object[]) t.getTransferData(ACTION_FLAVOR);
    202202
     
    409409
    410410    public boolean ok() {
    411         StringBuilder b = new StringBuilder();
    412411        Collection<String> t = new LinkedList<String>();
    413412        for (int i = 0; i < selected.size(); ++i) {
     
    426425     */
    427426    public Action register(Action action) {
    428 //        actions.put((String) action.getValue("toolbar"), action);
     427        actions.put((String) action.getValue("toolbar"), action);
    429428        return action;
    430429    }
Note: See TracChangeset for help on using the changeset viewer.