The Welkin Suite Forum

Folders for organising classes



Folders for organising classes

  • Please log in to reply

#1
windows version welkinsuite

danbryce

    Posted 13 Mar 2017

    I am painfully aware that Salesforce does not support sorting classes into folders - but that doesn't mean they can't be implemented in TWS in the form of project metadata.

    What I mean is, TWS could offer the illusion of folders by keeping track of a mapping of class name -> containing folder. This fake directory structure could then be presented in the solution explorer as if the classes really were organised into folders.

    This mapping would ideally be saved in its own file so that it can easily be shared between team members.

    This would be a huge productivity boost as it would save a lot of time scanning the currently-flat list of potentially hundreds of files.



    6 replies to this topic

    #2

    vlgubanovich

      Posted 13 Mar 2017

      Hi danbryce,

      We absolutely understand the pain of having "flat" project structure as it is implemented in Salesforce itself - this was one of the first reasons why we have started building The Welkin Suite for our own Salesforce development team.

      In The Welkin Suite you can easily create as many folders as you want, with any level of nesting and move files across the folders as you wish. Even more - you can mix different types of files in the same folder (for example put an object, it's layouts and trigger handler class in the same folder).

      And as you have mentioned about sharing this structure with your team members - this is also implemented in TWS, however in a bit different way. When you create a project in TWS you can enable "Project structure synchronization" which will create a Static Resource on your organization with project structure information. Each time something is changed in the project structure locally - this change will be uploaded to the org immediately. At the same time your team members will get the same project structure next time they create a project from the same organization or next time they pull project from the org.

      For some more information on how this works you can read an article in our blog Using custom Salesforce project structure to boost productivity, take a quick demo on YouTube Customizable Salesforce Projects Structure in The Welkin Suite and read our documentation about Project Structure Synchronization.

      Hope this helps.

      Looking forward hearing back your feedback on this features!


      Thank you,

      Vladimir


      Vladimir Gubanovich
      Head of Product
       
      The Welkin Suite
      skype id: vladimir.gubanovich
      e-mail: vladimir.gubanovich@welkinsuite.com


      #3

      danbryce

        Posted 14 Mar 2017

        Wow thanks, I had no idea this was already a feature! That's just revolutionised my project.

        A couple of things...

        • It would be nice to be able to drag one folder into another.
        • Dragging multiple classes into a folder is quite slow.
        • I work with quite a lot of branch orgs, each in a different project - is there an easy way to copy my directory structure across different projects?

        Many thanks,

        Dan



        #4

        danbryce

          Posted 14 Mar 2017

          I can't seem to edit my post, but a few more things I noticed...

          • Folders aren't sorted by name.
          • Every time a file is moved, all folders are collapsed, which is a tad annoying when trying to organise a project for the first time!


          #5

          vlgubanovich

            Posted 15 Mar 2017

            Hi danbryce,


            Thank you for your feedback - it is very helpful for us.

            • Regarding dragging folders this makes sense and we will add this to the backlog.
            • In case of slow moving of multiple files at a time - do you have project structure synchronization? If yes, we usually recommend enabling it only after you're done with initial structure organization - this way you'll save some time. Otherwise please let me know and we'll take a look on what should be the reason and what can we do to improve the situation.
            • Right now you can apply the same project structure on different sandboxes if you'll copy TWS_Sync_Data static resource from one sandbox to another. You can read a bit more about this file in our wiki - https://docs.welkinsuite.com/?id=windows:how_does_it_work:tools_in_tws:synchronization_of_the_project_structure:syncdata_file
            • We will add an option to sort folders in the Solution Explorer automatically to our backlog, however right now as a workaround I can propose you such way - you can open *.sfproj file in any text editor and find almost in the beginning of the file a set of entries like <Folder Include="AnonymousApex" />. If you change their order in the sfproj it will be then the same in the Solution Explorer
            • This is a known issue at the moment and we know that it can be annoying, especially if configuring structure for the first time. We will do our best to reprioritize it and fix it.

            Thank you once more for sharing your feedback and reporting bugs!

            Vladimir


            Vladimir Gubanovich
            Head of Product
             
            The Welkin Suite
            skype id: vladimir.gubanovich
            e-mail: vladimir.gubanovich@welkinsuite.com


            #6

            danbryce

              Posted 16 Mar 2017

              Thanks Vladimir.


              I can confirm that project structure synchronisation is disabled. Dragging files into folders seems to take ~1 second per item, so dragging 30 items into a folder will cause TWS to hang for ~30 seconds.



              #7

              vlgubanovich

                Posted 16 Mar 2017

                Hi danbryce,

                Thank you for the additional details. We will add the ticket to investigate this situation and improve the performance of drag&drop to our backlog.

                Please let us know if you find any other areas in The Welkin Suite which can be improved or if you face any other issues while working with the IDE.


                Thank you,

                Vladimir


                Vladimir Gubanovich
                Head of Product
                 
                The Welkin Suite
                skype id: vladimir.gubanovich
                e-mail: vladimir.gubanovich@welkinsuite.com





                Boost Your Productivity. Get Started Today

                Try Free Trial