Ignore:
Timestamp:
2017-09-07T21:10:49+02:00 (4 years ago)
Author:
bastiK
Message:

see #15229 - remove GUI references from BugReport and BugReportQueue

signature of BugReport#getReportText changed without deprecation
(probably not used by any external plugin)

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

Legend:

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

    r12766 r12770  
    8888import org.openstreetmap.josm.gui.ProgramArguments.Option;
    8989import org.openstreetmap.josm.gui.SplashScreen.SplashProgressMonitor;
     90import org.openstreetmap.josm.gui.bugreport.BugReportDialog;
    9091import org.openstreetmap.josm.gui.download.DownloadDialog;
    9192import org.openstreetmap.josm.gui.io.CustomConfigurator.XMLCommandProcessor;
     
    143144import org.openstreetmap.josm.tools.bugreport.BugReport;
    144145import org.openstreetmap.josm.tools.bugreport.BugReportExceptionHandler;
     146import org.openstreetmap.josm.tools.bugreport.BugReportQueue;
    145147import org.xml.sax.SAXException;
    146148
     
    754756        }
    755757
     758        if (!GraphicsEnvironment.isHeadless()) {
     759            BugReportQueue.getInstance().setBugReportHandler(BugReportDialog::showFor);
     760        }
     761
    756762        Level logLevel = args.getLogLevel();
    757763        Logging.setLogLevel(logLevel);
  • trunk/src/org/openstreetmap/josm/gui/bugreport/DebugTextDisplay.java

    r12649 r12770  
    66import javax.swing.JScrollPane;
    77
     8import org.openstreetmap.josm.actions.ShowStatusReportAction;
    89import org.openstreetmap.josm.gui.datatransfer.ClipboardUtils;
    910import org.openstreetmap.josm.gui.widgets.JosmTextArea;
     
    4950    public DebugTextDisplay(BugReport report) {
    5051        this();
    51         setCodeText(report.getReportText());
    52         report.addChangeListener(e -> setCodeText(report.getReportText()));
     52        setCodeText(report.getReportText(ShowStatusReportAction.getReportHeader()));
     53        report.addChangeListener(e -> setCodeText(report.getReportText(ShowStatusReportAction.getReportHeader())));
    5354    }
    5455
Note: See TracChangeset for help on using the changeset viewer.