Ignore:
Timestamp:
2018-08-13T02:18:54+02:00 (7 years ago)
Author:
Don-vip
Message:

see #15229 - deprecate Main.parent and Main itself

File:
1 edited

Legend:

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

    r13130 r14153  
    2525import javax.swing.event.ListSelectionListener;
    2626
    27 import org.openstreetmap.josm.Main;
    2827import org.openstreetmap.josm.data.osm.Changeset;
     28import org.openstreetmap.josm.gui.MainApplication;
    2929import org.openstreetmap.josm.gui.SideButton;
    3030import org.openstreetmap.josm.gui.util.GuiHelper;
     
    9797            new WindowGeometry(
    9898                    getClass().getName() + ".geometry",
    99                     WindowGeometry.centerInWindow(Main.parent, new Dimension(300, 300))
     99                    WindowGeometry.centerInWindow(MainApplication.getMainFrame(), new Dimension(300, 300))
    100100            ).applySafe(this);
    101101        } else if (isShowing()) { // Avoid IllegalComponentStateException like in #8775
     
    109109     */
    110110    public CloseChangesetDialog() {
    111         super(GuiHelper.getFrameForComponent(Main.parent), ModalityType.DOCUMENT_MODAL);
     111        super(GuiHelper.getFrameForComponent(MainApplication.getMainFrame()), ModalityType.DOCUMENT_MODAL);
    112112        build();
    113113    }
Note: See TracChangeset for help on using the changeset viewer.