Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Sirius » Duplicate message - can be deleted
Duplicate message - can be deleted [message #1697263] Tue, 02 June 2015 19:47 Go to next message
Caglayan Gemici is currently offline Caglayan GemiciFriend
Messages: 2
Registered: June 2015
Junior Member
Duplicate message - can be deleted

[Updated on: Wed, 03 June 2015 17:33]

Report message to a moderator

Re: Dynamic entity creation Sirius [message #1697774 is a reply to message #1697263] Mon, 08 June 2015 12:28 Go to previous message
Steve Monnier is currently offline Steve MonnierFriend
Messages: 505
Registered: May 2011
Senior Member
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
Need training or professional services for Sirius?
http://www.obeodesigner.com/sirius
Previous Topic:NullPointerException when reopen Sirius Diagram
Next Topic:Is it possbile to create a link from a node to an edge?
Goto Forum:
  


Current Time: Sat Jan 23 05:59:43 GMT 2021

Powered by FUDForum. Page generated in 0.02330 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top