From 30e13a424ba794d531a324aa0482ed450c549939 Mon Sep 17 00:00:00 2001 From: Nikita Savchenko Date: Sun, 8 Sep 2019 21:13:36 +0300 Subject: [PATCH] Display collection types, resolves #19 --- package.json | 2 +- src/web/js/ClassView.js | 10 +++++++++- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index 9cf8d51..d33ac29 100755 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "CacheClassExplorer", - "version": "1.21.2", + "version": "1.21.3", "description": "Class Explorer for InterSystems Caché", "directories": { "test": "test" diff --git a/src/web/js/ClassView.js b/src/web/js/ClassView.js index 404c317..3ee0c19 100644 --- a/src/web/js/ClassView.js +++ b/src/web/js/ClassView.js @@ -303,6 +303,10 @@ ClassView.prototype.getPropertyHoverText = function (prop, type) { }, propText = { "Calculated": 1, + "Collection": function (data) { + return "Collection=" + + data + }, "Final": 1, "Identity": 1, "InitialExpression": function (data) { @@ -510,7 +514,11 @@ ClassView.prototype.createClassInstance = function (name, classMetaData, saved) keyWordsArray.push(n); arr.push({ name: n, - text: n + (ps[n]["Type"] ? ": " + ps[n]["Type"] : ""), + text: n + (ps[n]["Type"] + ? ps[n]["Collection"] + ? ": " + ps[n]["Collection"] + " of " + ps[n]["Type"] + : ": " + ps[n]["Type"] + : ""), hover: self.getPropertyHoverText(ps[n], "property"), icons: self.getPropertyIcons(ps[n]) });