Ignore:
Timestamp:
2012-02-02T19:44:03+01:00 (12 years ago)
Author:
stoecker
Message:

cleanup shortcut handling a lot, fix some more deprecations

File:
1 edited

Legend:

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

    r4869 r4897  
    7676import org.openstreetmap.josm.gui.progress.PleaseWaitProgressMonitor;
    7777import org.openstreetmap.josm.gui.progress.ProgressMonitorExecutor;
     78import org.openstreetmap.josm.gui.util.RedirectInputMap;
    7879import org.openstreetmap.josm.io.OsmApi;
    7980import org.openstreetmap.josm.plugins.PluginHandler;
     
    378379    protected static final JPanel contentPanePrivate = new JPanel(new BorderLayout());
    379380
    380     /**
    381      * @deprecated If you just need to register shortcut for action, use registerActionShortcut instead of accessing InputMap directly
    382      */
    383     @Deprecated
    384     public static final JPanel contentPane = contentPanePrivate;
     381    public static void redirectToMainContentPane(JComponent source) {
     382        RedirectInputMap.redirect(source, contentPanePrivate);
     383    }
    385384
    386385    public static void registerActionShortcut(Action action, Shortcut shortcut) {
     
    843842    /**
    844843     * The projection method used.
    845      * @deprecated use {@link #getProjection()} and {@link #setProjection(Projection)} instead.
    846      * For the time being still publicly available, but avoid/migrate write access to it. Use
    847      * {@link #setProjection(Projection)} in order to trigger a projection change event.
    848      */
    849     @Deprecated
    850     public static Projection proj;
     844     * use {@link #getProjection()} and {@link #setProjection(Projection)} for access.
     845     * Use {@link #setProjection(Projection)} in order to trigger a projection change event.
     846     */
     847    private static Projection proj;
    851848
    852849    /**
Note: See TracChangeset for help on using the changeset viewer.