Ignore:
Timestamp:
2018-08-13T02:18:54+02:00 (8 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/UploadDialog.java

    r14106 r14153  
    3636import javax.swing.JTabbedPane;
    3737
    38 import org.openstreetmap.josm.Main;
    3938import org.openstreetmap.josm.data.APIDataSet;
    4039import org.openstreetmap.josm.data.Version;
     
    4443import org.openstreetmap.josm.gui.ExtendedDialog;
    4544import org.openstreetmap.josm.gui.HelpAwareOptionPane;
     45import org.openstreetmap.josm.gui.MainApplication;
    4646import org.openstreetmap.josm.gui.help.ContextSensitiveHelpAction;
    4747import org.openstreetmap.josm.gui.help.HelpUtil;
     
    105105     */
    106106    public UploadDialog() {
    107         super(GuiHelper.getFrameForComponent(Main.parent), ModalityType.DOCUMENT_MODAL);
     107        super(GuiHelper.getFrameForComponent(MainApplication.getMainFrame()), ModalityType.DOCUMENT_MODAL);
    108108        build();
    109109        pack();
     
    384384                    getClass().getName() + ".geometry",
    385385                    WindowGeometry.centerInWindow(
    386                             Main.parent,
     386                            MainApplication.getMainFrame(),
    387387                            new Dimension(400, 600)
    388388                    )
     
    545545            }
    546546            if (!emptyChangesetTags.isEmpty() && JOptionPane.OK_OPTION != JOptionPane.showConfirmDialog(
    547                     Main.parent,
     547                    MainApplication.getMainFrame(),
    548548                    trn(
    549549                            "<html>The following changeset tag contains an empty key/value:<br>{0}<br>Continue?</html>",
Note: See TracChangeset for help on using the changeset viewer.