Uploaded image for project: 'BlueJ'
  1. BlueJ
  2. BLUEJ-352

'Record method calls' format

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Medium
    • Resolution: Done
    • Affects Version/s: 3.0.4
    • Fix Version/s: 3.0.5
    • Component/s: Terminal

      Description

      Two issues: one cosmetic, one a bug.

      Bug: When 'Record method calls' is on in the terminal, and two projects are open, method calls get recorded to both terminals. They should appear only in one.

      Cosmetic: I want to change the format of the output of recording method calls. For void methods, currently it shows

      [ student1.changeName("Fred") ]

      [ void result ]

      Instead, I would like to show the exact Java statement (with semicolon, without square bracket):

      student1.changeName("Fred");

      But it must then be distinguished from other output (but still be mixed in to the sequence. I would like to show the recording output in either italics, or in dark red colour, or both. Can we do mixed fonts/colour in that pane?

      For non-void methods, it currently shows

      [ student1.getName() ]

      [ java.lang.String result = "Fred" ]

      Instead it should show

      student1.getName()
      returned String "Fred"

        Attachments

          Activity

            People

            • Assignee:
              davmac Davin McCall
              Reporter:
              mik Michael K├Âlling
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: