Skip to content
This repository has been archived by the owner on Sep 5, 2023. It is now read-only.

Smart Editing for Ergo object creation expressions based on CTO models #36

Open
jeromesimeon opened this issue Feb 14, 2020 · 1 comment
Labels
Type: Enhancement ✨ Improvement to process or efficiency Type: Feature Request 🛍️ New feature or request

Comments

@jeromesimeon
Copy link
Member

Is your feature request related to a problem? Please describe.

Provide smart editing for Ergo object creation. The idea would be to be able to start writing the class e.g., Address{ and then the editor would provide a stub for the content of that class with default values.

Default values could be populated automatically, taking into account CTO defaults if present.

Additional context
This issue originated from user experience discussion and requirements for Ergo Init accordproject/ergo#734

@iRohitSingh
Copy link
Contributor

@jeromesimeon can you give me some starter point regarding this issue. I read this conversation #734 in ergo project and interested in solving this.

I have set up the local environment with the plugin and understand the problem.
Like if we define any concept like this in model.cto

concept State {
  o Double counter default=0.0
  o String lastInput default="1"
}

when we start implementing logic.ergo our extension should access this model and provides us the default value like

set state State { then extension shows us 
counter =0.0 and
lastInput="1"

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Type: Enhancement ✨ Improvement to process or efficiency Type: Feature Request 🛍️ New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants