Menu

#5 Domain Subpackage <<hand-coded>> Stereotype

(not used)
closed
None
1
2013-10-08
2013-04-24
No

I think there used to be a «hand-coded» stereotype for domain subpackages which would show the designer's intention not to attempt code generation on the subpackage. Would it be possible to reinstate this?

Discussion

  • Alex Proudfoot

    Alex Proudfoot - 2013-04-24

    Oops. That <> should read << hand-coded >>.

     
    • Simon Wright

      Simon Wright - 2013-04-24

      Fixed that for you!

       
  • Simon Wright

    Simon Wright - 2013-04-24
    • Description has changed:

    Diff:

    --- old
    +++ new
    @@ -1 +1 @@
    -I think there used to be a <<hand-coded>> stereotype for domain subpackages which would show the designer's intention not to attempt code generation on the subpackage. Would it be possible to reinstate this?
    +I think there used to be a &#171;hand-coded&#187; stereotype for domain subpackages which would show the designer's intention not to attempt code generation on the subpackage. Would it be possible to reinstate this?
    
    • assigned_to: Simon Wright
     
  • Simon Wright

    Simon Wright - 2013-04-24

    I think it was the other way round; you used the «generate» stereotype on the child packages you wanted to be translated.

    normalize_xmi runs through all child packages in a domain, using XPath expressions as in

    declare
       Nodes : constant DOM.Core.Node_List := McKae.XML.XPath.XIA.XPath_Query
         (From, "descendant::UML:Enumeration[@xmi.id]");
    begin
    

    which is naturally recursive and would need to not descend through packages with «hand-coded» stereotypes; or, I suppose the DOM tree could be weeded for them? Will think more on this.

     
  • Simon Wright

    Simon Wright - 2013-04-26

    Fixed in rev 90bbed8d5ab0.

    Use «ignore» on packages you want to be ignored.

     

    Last edit: Simon Wright 2013-04-27
  • Simon Wright

    Simon Wright - 2013-04-26
    • status: open --> pending
     
  • Alex Proudfoot

    Alex Proudfoot - 2013-05-01

    I can't get the fix to work. After including the altered files and rebuilding the translator tools, the tests no longer build.

     

    Last edit: Alex Proudfoot 2013-05-01
    • Simon Wright

      Simon Wright - 2013-05-01

      Have used Mercurial to get a (read-only) checkout?

      In case not, I'm attaching a current archive which just ran make test OK; same at Dropbox in case the attachment is too big.

       
  • Alex Proudfoot

    Alex Proudfoot - 2013-05-01

    No, I downloaded the following files tagged as changed in rev 90bbed8d5ab0.
    models/ColdFrameProfile.uml
    models/ColdFrame_Development.uml
    doc/domains.html
    doc/releases.html
    test/Regressions.test/regressions_suite.adb
    test/Makefile
    test/Regressions.gpr
    tools/normalize_xmi-main.adb

    I can confirm that a complete copy of the latest state of the repository allows the tests to build.

    I'll try this first from now on. :)

     
  • Alex Proudfoot

    Alex Proudfoot - 2013-05-01

    Works for me.

     

    Last edit: Alex Proudfoot 2013-05-02
  • Alex Proudfoot

    Alex Proudfoot - 2013-05-02

    Thanks for the help Simon.

     
  • Simon Wright

    Simon Wright - 2013-10-08

    Fixed in release 20130621.

     
  • Simon Wright

    Simon Wright - 2013-10-08
    • status: pending --> closed
     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.