New feature: modules groups and more

Discussion in 'Chit Chat' started by Erel, Nov 9, 2017.

  1. Erel

    Erel Administrator Staff Member Licensed User

    Easier to organize large projects:

    modules.gif

    Note that the module files are not moved.

    You can also rename and remove modules directly from the tree.
    The current page, sub and groups are marked in bold.
    Groups can be nested.
     
    corwin42, LucaMs, Kiffi and 23 others like this.
  2. Emme Developer

    Emme Developer Active Member Licensed User

    Code:
    Do While True
        Post.Like   
    Loop
     
  3. UFOCoder13

    UFOCoder13 Well-Known Member Licensed User

    In that case, I recommend creating a folder called "Modules" and having modules be created in that folder from now on. (Plus that make it look more organized in Windows Explorer and would make for better search results for larger projects.)
     
    Last edited: Nov 9, 2017
  4. Erel

    Erel Administrator Staff Member Licensed User

    Another new planned feature will allow you to add referenced modules. This means that you will be able to add modules from any folder you like and they will not be copied.
    This will make it much easier to share modules between projects.
     
    aidymp, Cableguy, rboeck and 6 others like this.
  5. UFOCoder13

    UFOCoder13 Well-Known Member Licensed User

  6. Erel

    Erel Administrator Staff Member Licensed User

    The new Files tab:

    FilesTab.gif


    Note that as is in the modules the files are not moved. The "folders" (groups) are only used to organize the files.
     
    MikeH, mindful, MaFu and 8 others like this.
  7. Erel

    Erel Administrator Staff Member Licensed User

    [​IMG]

    Two new indicators:
    - Module with error or warning. Color changes accordingly.
    - Modified module (small orange circle).
     
  8. Emme Developer

    Emme Developer Active Member Licensed User

    Would be great also a shared file, in order by to copy file from a specific folder into assets automatically when we start a new release
     
  9. Erel

    Erel Administrator Staff Member Licensed User

    In the next version it will be possible to add modules from other folders. It will make it much easier to share modules between different projects and different platforms.

    Sharing files is indeed a useful feature, however it will probably not be implemented for the next version.
     
    UFOCoder13, mindful and lemonisdead like this.
  10. Eme Fibonacci

    Eme Fibonacci Active Member Licensed User

    B4X compatible with large projects
     
  11. Misterbates

    Misterbates Active Member Licensed User

    Not strictly on-topic, but how about an #Include directive, which would allow all source files to be in the project folder, but would make it possible to include the content of files outside of the project folder?
     
  12. alwaysbusy

    alwaysbusy Well-Known Member Licensed User

    Any chance that methods that are in the same #region are also automatically grouped?

    e.g.
    Code:
    sub Process_Globals

    End sub

    #Region myMethods
    Sub mySuperMethod1()

    End Sub

    Sub mySuperMethod2()

    End Sub
    #End Region

    Sub AnotherOne()

    End Sub
    Woud be in the tree:
    Code:
    - Default Group
         - Main
         - TestCanvas
               - AnotherOne
               - myMethods
                     - mySuperMethod1
                     - mySuperMethod2
               - Process_Globals
     
    inakigarm, UFOCoder13 and ilan like this.
  13. Erel

    Erel Administrator Staff Member Licensed User

    This will be possible in the coming version. You will be able to add modules without copying them to the current folder (or the shared modules folder).

    Nice idea. Need to check it.
     
  14. inakigarm

    inakigarm Well-Known Member Licensed User

  15. Eme Fibonacci

    Eme Fibonacci Active Member Licensed User

    The issue is the new ability to manage large projects.
    So please consider possibility the methods are ordered alphabetically inside regions.
     
  16. Erel

    Erel Administrator Staff Member Licensed User

    The modules in the modules tree are ordered alphabetically. You can move then between different groups. You cannot change the order inside the group.
     
  17. Erel

    Erel Administrator Staff Member Licensed User

    [​IMG]
     
  18. alwaysbusy

    alwaysbusy Well-Known Member Licensed User

    Nice, very nice! :)
     
  19. Erel

    Erel Administrator Staff Member Licensed User

    [​IMG]

    Here you can see an important new feature. Module files no longer need to be in the same folder. You can add modules from different folders and choose whether to copy them to the current folder or add them as linked resources.
     
    mindful, MaFu, Misterbates and 3 others like this.
  20. Misterbates

    Misterbates Active Member Licensed User

    You're showing B4J screenshots - will the same enhancements be made to B4A and B4i?
     
Loading...