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/master 0a6e76dd2 -> c6a087ba4


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/c6a087ba
Tree: http://git-wip-us.apache.org/repos/asf/groovy/tree/c6a087ba
Diff: http://git-wip-us.apache.org/repos/asf/groovy/diff/c6a087ba

Branch: refs/heads/master
Commit: c6a087ba4b9c6a11c73216bc315c8506c678d496
Parents: 0a6e76d
Author: Jacek Musiał <[hidden email]>
Authored: Fri Jul 6 17:30:16 2018 +0200
Committer: Paul King <[hidden email]>
Committed: Mon Jul 9 16:37:02 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/c6a087ba/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()
     }