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

see #15229 - deprecate Main.parent and Main itself

Location:
trunk/src/org/openstreetmap/josm/gui/history
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/gui/history/HistoryBrowserDialog.java

    r12634 r14153  
    1818import javax.swing.JPanel;
    1919
    20 import org.openstreetmap.josm.Main;
    2120import org.openstreetmap.josm.data.osm.PrimitiveId;
    2221import org.openstreetmap.josm.data.osm.history.History;
     
    4847     */
    4948    public HistoryBrowserDialog(History history) {
    50         super(GuiHelper.getFrameForComponent(Main.parent), false);
     49        super(GuiHelper.getFrameForComponent(MainApplication.getMainFrame()), false);
    5150        build();
    5251        setHistory(history);
  • trunk/src/org/openstreetmap/josm/gui/history/HistoryBrowserDialogManager.java

    r13974 r14153  
    1919import javax.swing.SwingUtilities;
    2020
    21 import org.openstreetmap.josm.Main;
    2221import org.openstreetmap.josm.data.osm.PrimitiveId;
    2322import org.openstreetmap.josm.data.osm.history.History;
     
    225224        if (notNewPrimitives.isEmpty()) {
    226225            JOptionPane.showMessageDialog(
    227                     Main.parent,
     226                    MainApplication.getMainFrame(),
    228227                    tr("Please select at least one already uploaded node, way, or relation."),
    229228                    tr("Warning"),
Note: See TracChangeset for help on using the changeset viewer.