Skip to content

Commit

Permalink
Display collection types, resolves #19
Browse files Browse the repository at this point in the history
  • Loading branch information
nikitaeverywhere committed Sep 8, 2019
1 parent f9e3ad1 commit 30e13a4
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "CacheClassExplorer",
"version": "1.21.2",
"version": "1.21.3",
"description": "Class Explorer for InterSystems Caché",
"directories": {
"test": "test"
Expand Down
10 changes: 9 additions & 1 deletion src/web/js/ClassView.js
Original file line number Diff line number Diff line change
Expand Up @@ -303,6 +303,10 @@ ClassView.prototype.getPropertyHoverText = function (prop, type) {
},
propText = {
"Calculated": 1,
"Collection": function (data) {
return "<span class=\"syntax-keyword\">Collection</span>="
+ data
},
"Final": 1,
"Identity": 1,
"InitialExpression": function (data) {
Expand Down Expand Up @@ -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])
});
Expand Down

0 comments on commit 30e13a4

Please sign in to comment.