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

    r14149 r14153  
    2525import java.util.stream.Collectors;
    2626
    27 import org.openstreetmap.josm.Main;
    2827import org.openstreetmap.josm.data.Preferences;
    2928import org.openstreetmap.josm.data.Version;
     
    294293        DebugTextDisplay ta = new DebugTextDisplay(text.toString());
    295294
    296         ExtendedDialog ed = new ExtendedDialog(Main.parent,
     295        ExtendedDialog ed = new ExtendedDialog(MainApplication.getMainFrame(),
    297296                tr("Status Report"),
    298297                tr("Copy to clipboard and close"), tr("Report bug"), tr("Close"));
     
    300299        ed.setContent(ta, false);
    301300        ed.setMinimumSize(new Dimension(380, 200));
    302         ed.setPreferredSize(new Dimension(700, Main.parent.getHeight()-50));
     301        ed.setPreferredSize(new Dimension(700, MainApplication.getMainFrame().getHeight()-50));
    303302
    304303        switch (ed.showDialog().getValue()) {
Note: See TracChangeset for help on using the changeset viewer.