Skip to Content
Author's profile photo Christian Jianelli

SAPUI5 MVC Pattern and Eclipse Outline View

Hi All,

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.

SCNBlog6_01.JPG

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.

http://www.kajabity.com/2012/02/how-i-introduced-jsdoc-into-a-javascript-project-and-found-my-eclipse-outline/


To be brief, to get the outline view working it is necessary to use a JSDOC comment with the following tag:

     /**
     * @memberOf
parentNamepath
     */

SCNBlog6_02.JPG

I think it would be nice to have the SAPUI5 plugin creating the initial code with these comments. What you think?

Best regards,

Christian

Assigned tags

      7 Comments
      You must be Logged on to comment or reply to a post.
      Author's profile photo Bertram Ganz
      Bertram Ganz

      Hi Christian, a good tip! I forwarded your proposal to the UI5 tool dev colleagues. They'll have a look at it. Regards, Bertram

      Author's profile photo Christian Jianelli
      Christian Jianelli
      Blog Post Author

      Thanks Bertram! 🙂

      Regards,

      Author's profile photo Bertram Ganz
      Bertram Ganz

      Hi Christian,

      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).

      Regards, Bertram

      Author's profile photo Christian Jianelli
      Christian Jianelli
      Blog Post Author

      Hi Bertram,

      That's great. Thank you!

      Regards,

      Christian

      Author's profile photo Former Member
      Former Member

      Hi,

      this is very useful, thank you =)

      Is there also a way to do this with the controller?

      Regards,

      Jan

      Author's profile photo Silke Arians
      Silke Arians

      Hi Jan,

      yes, the same can be done for the controller (this will also be part of the next UI5 Eclipse Tools patch).

      Best regards

      Silke

      Author's profile photo Former Member
      Former Member

      Hi Christian, very good tips. Thanks.