Changeset 1674 in josm for trunk/src/org


Ignore:
Timestamp:
2009-06-16T10:40:40+02:00 (15 years ago)
Author:
stoecker
Message:

add memory size to bug report

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

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/actions/ShowStatusReportAction.java

    r1484 r1674  
    4141    }
    4242
    43     public void actionPerformed(ActionEvent e) {
     43    public static String getReportHeader()
     44    {
    4445        StringBuilder text = new StringBuilder();
    4546        text.append(AboutAction.getTextBlock());
     
    5758        text.append(PluginHandler.getBugReportText());
    5859        text.append("\n\n");
     60        return text.toString();
     61    }
     62
     63    public void actionPerformed(ActionEvent e) {
     64        StringBuilder text = new StringBuilder();
     65        text.append(getReportHeader());
    5966        try {
    6067            BufferedReader input = new BufferedReader(new FileReader(Main.pref
  • trunk/src/org/openstreetmap/josm/tools/BugReportExceptionHandler.java

    r1415 r1674  
    2121import org.openstreetmap.josm.Main;
    2222import org.openstreetmap.josm.actions.AboutAction;
     23import org.openstreetmap.josm.actions.ShowStatusReportAction;
    2324import org.openstreetmap.josm.plugins.PluginHandler;
    2425
     
    5960                    e.printStackTrace(new PrintWriter(stack));
    6061
    61                     String text = AboutAction.getTextBlock();
    62                     text += "Java version: " + System.getProperty("java.version")+"\n";
    63                     text += PluginHandler.getBugReportText();
    64                     text += "\n" + stack.getBuffer().toString();
     62                    String text = ShowStatusReportAction.getReportHeader()
     63                    + stack.getBuffer().toString();
    6564
    6665                    JPanel p = new JPanel(new GridBagLayout());
Note: See TracChangeset for help on using the changeset viewer.