@@ -96,13 +96,11 @@ qx.Class.define("qxl.packagebrowser.PackageBrowser", {
96
96
this . widgets = { } ;
97
97
this . tests = { } ;
98
98
99
-
100
99
// Commands & Menu Bar
101
100
this . __makeCommands ( ) ;
102
101
this . __menuBar = this . __makeToolBar ( ) ;
103
102
this . add ( this . __menuBar ) ;
104
103
105
-
106
104
// Main Split Pane
107
105
var mainsplit = new qx . ui . splitpane . Pane ( "horizontal" ) ;
108
106
mainsplit . setAppearance ( "app-splitpane" ) ;
@@ -163,7 +161,6 @@ qx.Class.define("qxl.packagebrowser.PackageBrowser", {
163
161
this . _demoView = this . __makeDemoView ( ) ;
164
162
infosplit . add ( this . _demoView , 2 ) ;
165
163
166
-
167
164
// Back button and bookmark support
168
165
this . _history = qx . bom . History . getInstance ( ) ;
169
166
this . _history . addListener ( "changeState" , function ( e ) {
@@ -178,18 +175,10 @@ qx.Class.define("qxl.packagebrowser.PackageBrowser", {
178
175
} , this ) ;
179
176
180
177
this . __menuElements = [ this . __ownWindowButton , this . __viewPart ] ;
181
-
182
178
this . __infoWindow = new qxl . packagebrowser . InfoWindow ( this . tr ( "Info" ) ) ;
183
179
this . __infoWindow . setAutoCenter ( true ) ;
184
180
} ,
185
181
186
-
187
- /*
188
- *****************************************************************************
189
- MEMBERS
190
- *****************************************************************************
191
- */
192
-
193
182
members : {
194
183
// ------------------------------------------------------------------------
195
184
// CONSTRUCTOR HELPERS
@@ -199,7 +188,6 @@ qx.Class.define("qxl.packagebrowser.PackageBrowser", {
199
188
__logDone : null ,
200
189
_tree : null ,
201
190
_searchTextField : null ,
202
- __currentJSCode : null ,
203
191
__menuElements : null ,
204
192
_versionFilter : null ,
205
193
_navPart : null ,
@@ -220,9 +208,6 @@ qx.Class.define("qxl.packagebrowser.PackageBrowser", {
220
208
welcomeUrl : null ,
221
209
222
210
__makeCommands : function ( ) {
223
- this . _cmdObjectSummary = new qx . ui . command . Command ( "Ctrl+O" ) ;
224
- this . _cmdObjectSummary . addListener ( "execute" , this . __getObjectSummary , this ) ;
225
-
226
211
this . _cmdRunSample = new qx . ui . command . Command ( "F5" ) ;
227
212
this . _cmdRunSample . addListener ( "execute" , this . runSample , this ) ;
228
213
@@ -236,55 +221,11 @@ qx.Class.define("qxl.packagebrowser.PackageBrowser", {
236
221
this . _cmdSampleInOwnWindow . addListener ( "execute" , this . __openWindow , this ) ;
237
222
} ,
238
223
239
- /**
240
- * TODOC
241
- *
242
- */
243
- __getObjectSummary : function ( ) {
244
- var cw = this . _iframe . getWindow ( ) ;
245
- var msg ;
246
- if ( cw && cw . qx ) {
247
- msg = cw . qx . dev . ObjectSummary . getInfo ( ) ;
248
- } else {
249
- msg = "Unable to access namespace. Maybe no demo loaded." ;
250
- }
251
-
252
- var area = new qx . ui . form . TextArea ( msg ) ;
253
- area . setDecorator ( null ) ;
254
- area . setAutoSize ( true ) ;
255
- area . setMaxHeight ( qx . bom . Viewport . getHeight ( ) - 100 ) ;
256
- this . __infoWindow . setContent ( area ) ;
257
- this . __infoWindow . setWidth ( 400 ) ;
258
- this . __infoWindow . show ( ) ;
259
- } ,
260
-
261
224
__openWindow : function ( ) {
262
225
var sampUrl = this . _iframe . getSource ( ) ;
263
226
window . open ( sampUrl , "_blank" ) ;
264
227
} ,
265
228
266
-
267
- __setCurrentJSCode : function ( code ) {
268
- this . __currentJSCode = code ;
269
- } ,
270
-
271
-
272
- /**
273
- * Handler for opening the api viewer.
274
- */
275
- __onApiOpen : function ( ) {
276
- window . open ( "./apiviewer" ) ;
277
- } ,
278
-
279
-
280
- /**
281
- * Handler for opening the manual.
282
- */
283
- __onManualOpen : function ( ) {
284
- window . open ( "../docs" ) ;
285
- } ,
286
-
287
-
288
229
__makeToolBar : function ( ) {
289
230
var bar = new qx . ui . toolbar . ToolBar ( ) ;
290
231
@@ -478,7 +419,7 @@ qx.Class.define("qxl.packagebrowser.PackageBrowser", {
478
419
479
420
/**
480
421
* Tree View in Left Pane
481
- * - only make root node; rest will befilled when iframe has loaded (with
422
+ * - only make root node; rest will be filled when iframe has loaded (with
482
423
* leftReloadTree)
483
424
*
484
425
* @return {var } TODOC
@@ -554,9 +495,7 @@ qx.Class.define("qxl.packagebrowser.PackageBrowser", {
554
495
555
496
556
497
/**
557
- * TODOC
558
- *
559
- * @param e {Event} TODOC
498
+ * @param e {Event}
560
499
* @return {void }
561
500
*/
562
501
leftReloadTree : function ( e ) {
@@ -566,7 +505,7 @@ qx.Class.define("qxl.packagebrowser.PackageBrowser", {
566
505
var _initialNode = null ;
567
506
568
507
// set a section to open initially
569
- var state = this . _history . getState ( ) . replace ( / \ ~/ g, "/" ) ;
508
+ var state = this . _history . getState ( ) . replace ( / ~ / g, "/" ) ;
570
509
571
510
let icons = this . self ( arguments ) . icons ;
572
511
@@ -877,6 +816,7 @@ qx.Class.define("qxl.packagebrowser.PackageBrowser", {
877
816
* @param {qxl.packagebrowser.Tree } modelNode
878
817
* @return {string }
879
818
* @private
819
+ * @ignore (top)
880
820
*/
881
821
__getProblemsHtml ( modelNode ) {
882
822
let { data :{ compilation_log} , manifest :{ info, requires= { } } } = modelNode ;
@@ -937,7 +877,8 @@ qx.Class.define("qxl.packagebrowser.PackageBrowser", {
937
877
description :
938
878
`The <span class="code">Manifest.json</span> file of the class
939
879
<span class="code">$2</span> declares to provide a path
940
- <span class="code">$1</span>, which does not exist.`
880
+ <span class="code">$1</span>, which does not exist.
881
+ If no such path is needed, consider removing the entry in Manifest.json.`
941
882
} ,
942
883
{
943
884
regex : / ^ ( .* ) E r r o r v a l i d a t i n g d a t a f o r ( [ ^ : ] + ) : ( .+ ) $ / ,
@@ -1339,6 +1280,6 @@ qx.Class.define("qxl.packagebrowser.PackageBrowser", {
1339
1280
1340
1281
destruct : function ( ) {
1341
1282
this . widgets = this . tests = this . _sampleToTreeNodeMap = this . tree = this . logelem = null ;
1342
- this . _disposeObjects ( "mainsplit" , "tree1" , "left" , "toolbar" , "f1" , "f2" , "_history" , "logappender" , "_cmdObjectSummary" , " _cmdRunSample", "_cmdPrevSample" , "_cmdNextSample" , "_cmdSampleInOwnWindow" , "_navPart" , "__ownWindowButton" , "__viewPart" , "__viewGroup" , "__menuBar" , "_infosplit" , "_searchTextField" , "_tree" , "_iframe" , "_demoView" , "__menuElements" , "__logSync" , "_leftComposite" , "_urlWindow" , "_nextButton" , "_prevButton" , "__menuItemStore" , "__overflowMenu" ) ;
1283
+ this . _disposeObjects ( "mainsplit" , "tree1" , "left" , "toolbar" , "f1" , "f2" , "_history" , "logappender" , "_cmdRunSample" , "_cmdPrevSample" , "_cmdNextSample" , "_cmdSampleInOwnWindow" , "_navPart" , "__ownWindowButton" , "__viewPart" , "__viewGroup" , "__menuBar" , "_infosplit" , "_searchTextField" , "_tree" , "_iframe" , "_demoView" , "__menuElements" , "__logSync" , "_leftComposite" , "_urlWindow" , "_nextButton" , "_prevButton" , "__menuItemStore" , "__overflowMenu" ) ;
1343
1284
}
1344
1285
} ) ;
0 commit comments