@@ -73,6 +73,127 @@ ClassView.prototype.openClassDoc = function (className, nameSpace) {
7373
7474} ;
7575
76+ /**
77+ * Render help info
78+ */
79+ ClassView . prototype . renderInfoGraphic = function ( ) {
80+
81+ this . cacheUMLExplorer . classTree . SELECTED_CLASS_NAME =
82+ this . cacheUMLExplorer . elements . className . innerHTML =
83+ "Welcome to Caché UML explorer!" ;
84+
85+ location . hash = "help" ;
86+
87+ this . showLoader ( ) ;
88+ this . render ( {
89+ basePackageName : "Welcome to Cach? UML explorer!" ,
90+ classes : {
91+ "Shared object" : {
92+ super : "Super object" ,
93+ parameters : {
94+ "Also inherit Super object" : { }
95+ } ,
96+ methods : { } ,
97+ properties : { }
98+ } ,
99+ "Class name" : {
100+ super : "Super object" ,
101+ ABSTRACT : 1 ,
102+ FINAL : 1 ,
103+ HIDDEN : 1 ,
104+ NAMESPACE : "SAMPLES" ,
105+ PROCEDUREBLOCK : 0 ,
106+ SYSTEM : 4 ,
107+ methods : {
108+ "Abstract public method" : {
109+ abstract : 1
110+ } ,
111+ "Class method" : {
112+ classMethod : 1
113+ } ,
114+ "Client method" : {
115+ clientMethod : 1
116+ } ,
117+ "Final method" : {
118+ final : 1
119+ } ,
120+ "Not inheritable method" : {
121+ notInheritable : 1
122+ } ,
123+ "Private method" : {
124+ private : 1
125+ } ,
126+ "Sql procedure" : {
127+ sqlProc : 1
128+ } ,
129+ "Web method" : {
130+ webMethod : 1
131+ } ,
132+ "ZEN method" : {
133+ zenMethod : 1
134+ } ,
135+ "Method" : {
136+ returns : "%Return type"
137+ }
138+ } ,
139+ parameters : {
140+ "PARAMETER WITHOUT TYPE" : { } ,
141+ "PARAMETER" : {
142+ type : "Type"
143+ }
144+ } ,
145+ properties : {
146+ "Public property name" : {
147+ private : 0
148+ } ,
149+ "Private property name" : {
150+ private : 1
151+ } ,
152+ "Public read-only property" : {
153+ private : 0 ,
154+ readOnly : 1
155+ } ,
156+ "Property" : {
157+ type : "Type of property"
158+ } ,
159+ "Other object" : {
160+ private : 0 ,
161+ type : "Shared object"
162+ } ,
163+ "Another object" : {
164+ private : 1 ,
165+ type : "Not shared object"
166+ }
167+ }
168+ } ,
169+ "Super object" : {
170+ methods : { } ,
171+ properties : { } ,
172+ parameters : { }
173+ } ,
174+ "HELP" : {
175+ parameters : {
176+ "See the basics here!" : { }
177+ }
178+ }
179+ } ,
180+ composition : { } ,
181+ aggregation : {
182+ "Class name" : {
183+ "Shared object" : "1..1"
184+ }
185+ } ,
186+ inheritance : {
187+ "Class name" : { "Super object" : 1 } ,
188+ "Shared object" : { "Super object" : 1 }
189+ } ,
190+ restrictPackage : 1
191+ } ) ;
192+
193+ this . removeLoader ( ) ;
194+
195+ } ;
196+
76197/**
77198 * Returns array of signs to render or empry array.
78199 *
@@ -368,7 +489,7 @@ ClassView.prototype.loadClass = function (className) {
368489 self . showLoader ( "Unable to get " + self . cacheUMLExplorer . classTree . SELECTED_CLASS_NAME ) ;
369490 console . error . call ( console , err ) ;
370491 } else {
371- self . cacheUMLExplorer . classView . render ( data ) ;
492+ self . render ( data ) ;
372493 }
373494 } ) ;
374495
@@ -390,7 +511,7 @@ ClassView.prototype.loadPackage = function (packageName) {
390511 self . showLoader ( "Unable to get package " + packageName ) ;
391512 console . error . call ( console , err ) ;
392513 } else {
393- self . cacheUMLExplorer . classView . render ( data ) ;
514+ self . render ( data ) ;
394515 }
395516 } ) ;
396517
@@ -502,6 +623,9 @@ ClassView.prototype.init = function () {
502623 this . cacheUMLExplorer . elements . closeMethodCodeView . addEventListener ( "click" , function ( ) {
503624 self . hideMethodCode ( ) ;
504625 } ) ;
626+ this . cacheUMLExplorer . elements . helpButton . addEventListener ( "click" , function ( ) {
627+ self . renderInfoGraphic ( ) ;
628+ } ) ;
505629
506630 this . SYMBOL_12_WIDTH = ( function ( ) {
507631 var e = document . createElementNS ( "http://www.w3.org/2000/svg" , "text" ) ,
0 commit comments