groovy git commit: GROOVY-8623: Show Groovy version in about help (closes #771)

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

groovy git commit: GROOVY-8623: Show Groovy version in about help (closes #771)

paulk
Repository: groovy
Updated Branches:
  refs/heads/GROOVY_2_5_X cca1bbbe9 -> bd9f879a4


GROOVY-8623: Show Groovy version in about help (closes #771)

Show current version of the Groovy in Groovy Object Browser in about->help


Project: http://git-wip-us.apache.org/repos/asf/groovy/repo
Commit: http://git-wip-us.apache.org/repos/asf/groovy/commit/bd9f879a
Tree: http://git-wip-us.apache.org/repos/asf/groovy/tree/bd9f879a
Diff: http://git-wip-us.apache.org/repos/asf/groovy/diff/bd9f879a

Branch: refs/heads/GROOVY_2_5_X
Commit: bd9f879a40bfa9412d6739c14d135bbd7d9f01aa
Parents: cca1bbb
Author: Jacek Musiał <[hidden email]>
Authored: Fri Jul 6 17:30:16 2018 +0200
Committer: Paul King <[hidden email]>
Committed: Mon Jul 9 16:38:51 2018 +1000

----------------------------------------------------------------------
 .../src/main/groovy/groovy/inspect/swingui/ObjectBrowser.groovy   | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/groovy/blob/bd9f879a/subprojects/groovy-console/src/main/groovy/groovy/inspect/swingui/ObjectBrowser.groovy
----------------------------------------------------------------------
diff --git a/subprojects/groovy-console/src/main/groovy/groovy/inspect/swingui/ObjectBrowser.groovy b/subprojects/groovy-console/src/main/groovy/groovy/inspect/swingui/ObjectBrowser.groovy
index 65a3c64..52939f2 100644
--- a/subprojects/groovy-console/src/main/groovy/groovy/inspect/swingui/ObjectBrowser.groovy
+++ b/subprojects/groovy-console/src/main/groovy/groovy/inspect/swingui/ObjectBrowser.groovy
@@ -152,7 +152,8 @@ class ObjectBrowser {
     void showAbout(EventObject evt) {
          def pane = swing.optionPane()
          // work around GROOVY-1048
-         pane.setMessage('An interactive GUI to explore object capabilities.')
+         def version = GroovySystem.version
+         pane.setMessage('An interactive GUI to explore object capabilities.\nVersion ' + version)
          def dialog = pane.createDialog(frame, 'About Groovy Object Browser')
          dialog.show()
     }