From 8472a6b474deaeffc72c86e8f8fc7d69ee0ebd4a Mon Sep 17 00:00:00 2001 From: Cristian Maglie Date: Wed, 21 Aug 2013 17:19:22 +0200 Subject: [PATCH] Slightly reorganized reports from 'Copy error' button --- app/src/processing/app/EditorStatus.java | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/app/src/processing/app/EditorStatus.java b/app/src/processing/app/EditorStatus.java index 4563ff220..e7030c569 100644 --- a/app/src/processing/app/EditorStatus.java +++ b/app/src/processing/app/EditorStatus.java @@ -457,15 +457,16 @@ public class EditorStatus extends JPanel /*implements ActionListener*/ { copyErrorButton.setVisible(false); copyErrorButton.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent e) { - String message=""; + String message = ""; + message += _("Arduino: ") + Base.VERSION_NAME + " (" + System.getProperty("os.name") + "), "; + message += _("Board: ") + "\"" + Base.getBoardPreferences().get("name") + "\"\n\n"; + message += editor.console.consoleTextPane.getText().trim(); if ((Preferences.getBoolean("build.verbose")) == false) { - message = " " + _("This report would have more information with") + "\n"; + message += "\n\n"; + message += " " + _("This report would have more information with") + "\n"; message += " \"" + _("Show verbose output during compilation") + "\"\n"; message += " " + _("enabled in File > Preferences.") + "\n"; } - message += _("Arduino: ") + Base.VERSION_NAME + " (" + System.getProperty("os.name") + "), "; - message += _("Board: ") + "\"" + Base.getBoardPreferences().get("name") + "\"\n"; - message += editor.console.consoleTextPane.getText().trim(); Clipboard clipboard = Toolkit.getDefaultToolkit().getSystemClipboard(); StringSelection data = new StringSelection(message); clipboard.setContents(data, null);