source: josm/trunk/src/org/openstreetmap/josm/tools/bugreport/BugReportSettingsPanel.java@ 12538

Last change on this file since 12538 was 10649, checked in by Don-vip, 8 years ago

fix #13193 - Use a new bug report dialog (patch by michael2402) - gsoc-core

File size: 1.5 KB
Line 
1// License: GPL. For details, see LICENSE file.
2package org.openstreetmap.josm.tools.bugreport;
3
4import static org.openstreetmap.josm.tools.I18n.tr;
5
6import javax.swing.BoxLayout;
7import javax.swing.JCheckBox;
8import javax.swing.JPanel;
9
10/**
11 * This panel displays the settings that can be changed before submitting a bug report to the web page.
12 * @author Michael Zangl
13 * @since 10585
14 */
15public class BugReportSettingsPanel extends JPanel {
16 /**
17 * Creates the new settings panel.
18 * @param report The report this panel should influence.
19 */
20 public BugReportSettingsPanel(BugReport report) {
21 setLayout(new BoxLayout(this, BoxLayout.Y_AXIS));
22
23 JCheckBox statusReport = new JCheckBox(tr("Include the system status report."));
24 statusReport.setSelected(report.isIncludeStatusReport());
25 statusReport.addChangeListener(e -> report.setIncludeStatusReport(statusReport.isSelected()));
26 add(statusReport);
27
28 JCheckBox data = new JCheckBox(tr("Include information about the data you were working on."));
29 data.setSelected(report.isIncludeData());
30 data.addChangeListener(e -> report.setIncludeData(data.isSelected()));
31 add(data);
32
33 JCheckBox allStackTraces = new JCheckBox(tr("Include all stack traces."));
34 allStackTraces.setSelected(report.isIncludeAllStackTraces());
35 allStackTraces.addChangeListener(e -> report.setIncludeAllStackTraces(allStackTraces.isSelected()));
36 add(allStackTraces);
37 }
38}
Note: See TracBrowser for help on using the repository browser.