Git Product home page Git Product logo

Comments (1)

vik378 avatar vik378 commented on September 26, 2024

fair point, @Ghipag - parts aren't instantiated on component creation. And as a side effect, you need to create Parts additionally and link those up with defining Components. The workaround is to either "declare" parts next to components (quite a duplication) or click them in the UI later.

We didn't auto-create parts as Capella still has this "allow component reuse via parts" where parts are quite a thing - pretty much like class/block instances, one compoent may have many parts that may all have different names and be connected to different things but will have same definitions (ports and assigned functions). I guess it is safe to assume that this is a fairly unpopular option and the impact of not creating parts on Component creation on usability is pretty bad.

Maybe we can add an option (default) for decl to understand that it is in a "single-part mode" or "part re-use enabled-model" and if it is in the default model type - create parts on component creation and rename/update parts on component rename/update (as in this mode they are 1 - 1). @Wuestengecko , in your opinion can we create 1 default part for every new component / would this create any trouble? I think this will make the decl thing a bit more user-friendly.

image

from py-capellambse.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.