groovy-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From pa...@apache.org
Subject groovy git commit: GROOVY-5501: When inspecting the AST, it would be nice to have the node metadata properties listed too (tweaks)
Date Mon, 18 Jul 2016 12:42:55 GMT
Repository: groovy
Updated Branches:
  refs/heads/master d096f801a -> d9f7f6ee5


GROOVY-5501: When inspecting the AST, it would be nice to have the node metadata properties
listed too (tweaks)


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

Branch: refs/heads/master
Commit: d9f7f6ee58762b52278575aed4a66c7361baad23
Parents: d096f80
Author: paulk <paulk@asert.com.au>
Authored: Mon Jul 18 22:42:47 2016 +1000
Committer: paulk <paulk@asert.com.au>
Committed: Mon Jul 18 22:42:47 2016 +1000

----------------------------------------------------------------------
 .../src/main/groovy/groovy/inspect/swingui/AstBrowser.groovy   | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/groovy/blob/d9f7f6ee/subprojects/groovy-console/src/main/groovy/groovy/inspect/swingui/AstBrowser.groovy
----------------------------------------------------------------------
diff --git a/subprojects/groovy-console/src/main/groovy/groovy/inspect/swingui/AstBrowser.groovy
b/subprojects/groovy-console/src/main/groovy/groovy/inspect/swingui/AstBrowser.groovy
index 5d83958..0525f0f 100644
--- a/subprojects/groovy-console/src/main/groovy/groovy/inspect/swingui/AstBrowser.groovy
+++ b/subprojects/groovy-console/src/main/groovy/groovy/inspect/swingui/AstBrowser.groovy
@@ -215,8 +215,8 @@ class AstBrowser {
                             actionPerformed: {
                                 def mapTable
                                 String title = titleSuffix ? propList[0] + " (" + titleSuffix
+ ")" : propList[0]
-                                swing.frame(title: title, defaultCloseOperation: JFrame.DISPOSE_ON_CLOSE,
-                                        size: [800, 600], show: true, locationRelativeTo:
null  ) {
+                                def props = swing.frame(title: title, defaultCloseOperation:
JFrame.DISPOSE_ON_CLOSE,
+                                        show: true, locationRelativeTo: null) {
                                     lookAndFeel("system")
                                     panel {
                                         scrollPane() {
@@ -235,6 +235,7 @@ class AstBrowser {
                                     if (kv)
                                         mapTable.model.rows << ["name": kv[0], "value":
kv[1]]
                                 }
+                                props.pack()
                             })
                         propertyTable.model.rows << ["name": propList[0], "value":
btnPanel, "type": propList[2]]
                         btnPanel.updateUI()
@@ -313,7 +314,6 @@ class AstBrowser {
         frame.size = prefs.frameSize
         splitterPane.dividerLocation = prefs.verticalDividerLocation
         mainSplitter.dividerLocation = prefs.horizontalDividerLocation
-        frame.pack()
         frame.visible = true
 
         String source = script()


Mime
View raw message