Ignore:
Timestamp:
2005-10-23T22:13:33+02:00 (20 years ago)
Author:
imi
Message:

starting restructure of dataset. Checkpoint is broken!

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/org/openstreetmap/josm/Main.java

    r21 r22  
    44import java.awt.BorderLayout;
    55import java.awt.Container;
     6import java.util.Collection;
     7import java.util.LinkedList;
    68
    79import javax.swing.JFrame;
     
    2022import org.openstreetmap.josm.actions.PreferencesAction;
    2123import org.openstreetmap.josm.actions.SaveGpxAction;
     24import org.openstreetmap.josm.command.Command;
     25import org.openstreetmap.josm.command.DataSet;
    2226import org.openstreetmap.josm.data.Preferences;
    2327import org.openstreetmap.josm.data.Preferences.PreferencesException;
     
    2630
    2731/**
    28  * Main window class consisting of the mainframe MDI application.
     32 * Main window class application.
    2933 * 
    3034 * @author imi
     
    4145         */
    4246        public final static Preferences pref = new Preferences();
     47
     48        /**
     49         * The global command queue since last save. So if you reload the data from disk
     50         * (or from OSM server, if nothing changed on server) and reapply the commands,
     51         * you should get the same result as currently displaying.
     52         */
     53        public Collection<Command> commands = new LinkedList<Command>();
     54
     55        /**
     56         * The global dataset.
     57         */
     58        public DataSet ds = new DataSet();
    4359       
    4460        /**
     
    105121                // creating toolbar
    106122                JToolBar toolBar = new JToolBar();
    107                 toolBar.setFloatable(false);
     123                toolBar.setFloatable(true);
    108124                toolBar.add(openServerAction);
    109125                toolBar.add(openGpxAction);
Note: See TracChangeset for help on using the changeset viewer.