|
Re: Dynamic entity creation Sirius [message #1697774 is a reply to message #1697263] |
Mon, 08 June 2015 12:28 |
|
Hello,
If you want to use Java Services, you can add the Java class in the same
project. Then, in your VSM (odesign file) you can point this java class
by adding a Java Extension element, under the Viewpoint element. In this
Java Extension you just need to add the qualified name of your class.
Now you can use any of your java services in the interpreted expression
of your VSM. Note that the first parameter of a Java service need to be
the type of the current context in you interpreted expression to match.
You can find more information about Java Services [1] in the online
documentation . You can also be interested by Java Extensions [2].
Regards,
Steve
[1]
https://www.eclipse.org/sirius/doc/specifier/general/Writing_Queries.html#service_methods
[2]
https://www.eclipse.org/sirius/doc/specifier/general/Model_Operations.html#extensions
Le 02/06/2015 22:23, Caglayan Gemici a écrit :
> Hello,
> We have been working with Obeo Designer since 1 month and we came across
> a difficulty. It would be great if someone could help.
>
> We are students in Carnegie Mellon University working on a model driven
> project. Our project involves generating configuration files for a
> distributed database monitoring system.
>
>
>
> Every database type comes with certain metrics that it can provide. Our
> aim is to enable the user to create a database type and then the metrics
> it provides are populated into the diagram automatically. A mockup of
> what we are trying to achieve is attached.(Target mockup.png)
> We have created an initial viewpoint representation of the system where
> we can create the static elements. We are thinking that the mentioned
> dynamic functionality can be added using Java Services but we are
> clueless as to where to start from. Any help would be highly appreciated.
> PS: We are open to changes in our meta-model, if it is required to
> fulfill the said functionality.
>
>
--
Steve Monnier - Obeo
Need professional services for Sirius?
http://www.obeodesigner.com/sirius
Steve Monnier - Obeo Canada
Need training or professional services for Sirius?
http://www.obeodesigner.com/sirius
|
|
|
Powered by
FUDForum. Page generated in 0.02415 seconds