Enums are not woven

Issue #120 resolved
Matthias Schoettle created an issue

Add support for enums in the structural view weaver.

They should just be copied over (including literals), but in the future, enums with the same name might be required to be merged (literals).

Comments (3)

  1. Wisam Al Abed

    Resolved #120: Added basic support for enums in the structural view. For now the weaver will detect any enums in the lower level aspect and add a deep copy to the higher level aspect. Had to modify the gui since the when adding enums via weaving the layout was null and this was crashing touchRam so for now just copied the code used to handle this case for classes.

    → <<cset 313c48e8fc48>>

  2. Matthias Schoettle reporter

    Thanks a lot! I adjusted the building and layouting of the views when building the structural view.

    One thing that does not work, but is another problem I guess, is the following:

    • Load StockExchangeSimple
    • Add enum "Test" (X, Y, Z)
    • Add attribute "Test test1" to Stock
    • Open Observer
    • Add enum "Test" (A, B, C)
    • Add attribute "Test test2" to Observer
    • Weave All

    In the result you will see both enums. But when you change the name of the enum with X, Y, Z literals, you will see that StockWindow (Observer) now also refers to that one.

  3. Log in to comment