Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Sirius » Dynamic creation of tool
Dynamic creation of tool [message #1405669] Thu, 07 August 2014 23:24 Go to next message
Arunkumar Ramaswamy is currently offline Arunkumar RamaswamyFriend
Messages: 57
Registered: April 2014
Member
My usecase is that I need an edge creation tool. There are different (variable) types of edges which are deduced from the current instance of model.

The are two solutions that i anticipate
1. Create variable number of edge creation tool in the tool palaette. But i don't how to do with sirius. The number of tools should be dynamic based on the model.

2. Select the edge creation tool, a selection wizard appears to select the type of edge, and then click the source and target element.

Please let me know if any of the above things can be done with sirius

Any help much appreciated
Arun

Re: Dynamic creation of tool [message #1405943 is a reply to message #1405669] Fri, 08 August 2014 15:01 Go to previous message
Pierre-Charles David is currently offline Pierre-Charles DavidFriend
Messages: 544
Registered: July 2009
Senior Member
Le 08/08/2014 01:24, Arunkumar Ramaswamy a écrit :
> My usecase is that I need an edge creation tool. There are different
> (variable) types of edges which are deduced from the current instance of
> model.

What do you mean by "type of edges" in this context?

The structure of a Sirius VSM is fixed at runtime, so the set of Edge
Mapping available is fixed and can not vary depending on the instance
being edited.

If what varies in your case for each type is styling, you can look at
conditional styles, computed colors, and style customizations, to
compute the edge's style depending on characteristics of the underlying
semantic elements it represent, but in that case you don't need a
dynamic number of edge mappings and corresponding creation tools.

> The are two solutions that i anticipate
> 1. Create variable number of edge creation tool in the tool palaette.
> But i don't how to do with sirius. The number of tools should be dynamic
> based on the model.

This is not possible in Sirius.

> 2. Select the edge creation tool, a selection wizard appears to select
> the type of edge, and then click the source and target element.

It really depend on the meaning of "type of edge" in your case.

--
Pierre-Charles David - Obeo

Need professional services for Sirius?
http://www.obeodesigner.com/sirius


Pierre-Charles David - Obeo

Need training or professional services for Sirius?
http://www.obeodesigner.com/sirius
Previous Topic:Calling queries from mtl file
Next Topic:How to syncronize an ongoing simulation?
Goto Forum:
  


Current Time: Mon Sep 21 10:47:23 GMT 2020

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

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

Back to the top