SAPUI5 MVC Pattern and Eclipse Outline View
I didn’t notice at first, but a few weeks ago, when I opened the Outline view when editing the view and controller files (created by the SAPUI5 plugin using the MVC Pattern), I found out that it was empty.
As the code grows and get more complex it became a bit of a pain jumping around to each of the functions, so I decided to look for a solution for this problem.
I found out a reference of a very good blog in the stackoverflow forum with the solution.
To be brief, to get the outline view working it is necessary to use a JSDOC comment with the following tag:
* @memberOf parentNamepath
I think it would be nice to have the SAPUI5 plugin creating the initial code with these comments. What you think?
Hi Christian, a good tip! I forwarded your proposal to the UI5 tool dev colleagues. They'll have a look at it. Regards, Bertram
Thanks Bertram! 🙂
your proposal gets implemented in the UI5 Eclipse Tools and will be available with the next SAPUI5 Eclipse tools version. See Note 1747308 - Installation Guide UI development toolkit for HTML5 (SAPUI5) and have a look at the related SAP note for the 1.12.6 Eclipse plugins installation that gets released on July 22 (bi-weekly patches).
That's great. Thank you!
this is very useful, thank you =)
Is there also a way to do this with the controller?
yes, the same can be done for the controller (this will also be part of the next UI5 Eclipse Tools patch).
Hi Christian, very good tips. Thanks.