Skip to content

Commit 30e13a4

Browse files
Display collection types, resolves #19
1 parent f9e3ad1 commit 30e13a4

File tree

2 files changed

+10
-2
lines changed

2 files changed

+10
-2
lines changed

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "CacheClassExplorer",
3-
"version": "1.21.2",
3+
"version": "1.21.3",
44
"description": "Class Explorer for InterSystems Caché",
55
"directories": {
66
"test": "test"

src/web/js/ClassView.js

+9-1
Original file line numberDiff line numberDiff line change
@@ -303,6 +303,10 @@ ClassView.prototype.getPropertyHoverText = function (prop, type) {
303303
},
304304
propText = {
305305
"Calculated": 1,
306+
"Collection": function (data) {
307+
return "<span class=\"syntax-keyword\">Collection</span>="
308+
+ data
309+
},
306310
"Final": 1,
307311
"Identity": 1,
308312
"InitialExpression": function (data) {
@@ -510,7 +514,11 @@ ClassView.prototype.createClassInstance = function (name, classMetaData, saved)
510514
keyWordsArray.push(n);
511515
arr.push({
512516
name: n,
513-
text: n + (ps[n]["Type"] ? ": " + ps[n]["Type"] : ""),
517+
text: n + (ps[n]["Type"]
518+
? ps[n]["Collection"]
519+
? ": " + ps[n]["Collection"] + " of " + ps[n]["Type"]
520+
: ": " + ps[n]["Type"]
521+
: ""),
514522
hover: self.getPropertyHoverText(ps[n], "property"),
515523
icons: self.getPropertyIcons(ps[n])
516524
});

0 commit comments

Comments
 (0)