diff --git a/swing/src/net/sf/openrocket/gui/dialogs/BugReportDialog.java b/swing/src/net/sf/openrocket/gui/dialogs/BugReportDialog.java index 4683a6a15..3c2077a32 100644 --- a/swing/src/net/sf/openrocket/gui/dialogs/BugReportDialog.java +++ b/swing/src/net/sf/openrocket/gui/dialogs/BugReportDialog.java @@ -108,31 +108,10 @@ public class BugReportDialog extends JDialog { * @param parent the parent window (may be null). */ public static void showBugReportDialog(Window parent) { - StringBuilder sb = new StringBuilder(); - - sb.append("---------- Bug report ----------\n"); - sb.append('\n'); - sb.append("Include detailed steps on how to trigger the bug:\n"); - sb.append("(You can edit text directly in this window)\n"); - sb.append('\n'); - sb.append("1. \n"); - sb.append("2. \n"); - sb.append("3. \n"); - sb.append('\n'); - - sb.append("What does the software do and what in your opinion should it do in the " + - "case described above:\n"); - sb.append('\n'); - sb.append('\n'); - sb.append('\n'); - - sb.append("Include your email address (optional; it helps if we can " + - "contact you in case we need additional information):\n"); - sb.append('\n'); - sb.append('\n'); - sb.append('\n'); - + + // ---------- Bug report ---------- + addBugReportInformation(sb); sb.append("(Do not modify anything below this line.)\n"); sb.append("---------- System information ----------\n"); @@ -157,28 +136,9 @@ public class BugReportDialog extends JDialog { */ public static void showExceptionDialog(Window parent, Thread t, Throwable e) { StringBuilder sb = new StringBuilder(); - - sb.append("---------- Bug report ----------\n"); - sb.append('\n'); - sb.append("Please include a description about what actions you were " + - "performing when the exception occurred:\n"); - sb.append("(You can edit text directly in this window)\n"); - sb.append('\n'); - sb.append("1. \n"); - sb.append("2. \n"); - sb.append("3. \n"); - sb.append("\n"); - sb.append("If possible, please send us the .ork file that caused the bug.\n"); - sb.append('\n'); - - - sb.append("Include your email address (optional; it helps if we can " + - "contact you in case we need additional information):\n"); - sb.append('\n'); - sb.append('\n'); - sb.append('\n'); - sb.append('\n'); + // ---------- Bug report ---------- + addBugReportInformation(sb); sb.append("(Do not modify anything below this line.)\n"); sb.append("---------- Exception stack trace ----------\n"); @@ -211,6 +171,30 @@ public class BugReportDialog extends JDialog { new BugReportDialog(parent, trans.get("bugreport.reportDialog.txt2"), sb.toString(), true); reportDialog.setVisible(true); } + + private static void addBugReportInformation(StringBuilder sb) { + sb.append("---------- Bug report ----------\n"); + sb.append('\n'); + sb.append("Please include a description about what actions you were " + + "performing when the exception occurred:\n"); + sb.append("(You can edit text directly in this window)\n"); + sb.append('\n'); + sb.append("1. \n"); + sb.append("2. \n"); + sb.append("3. \n"); + + sb.append("\n"); + sb.append("If possible, please send us the .ork file that caused the bug.\n"); + sb.append('\n'); + + + sb.append("Include your email address (optional; it helps if we can " + + "contact you in case we need additional information):\n"); + sb.append('\n'); + sb.append('\n'); + sb.append('\n'); + sb.append('\n'); + } private static void addSystemInformation(StringBuilder sb) { StringBuilder sbTemp = new StringBuilder();