Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Sirius » Create new representation that is unsynchronized by default
Create new representation that is unsynchronized by default [message #1651312] Thu, 05 March 2015 08:22 Go to next message
Wilbert Alberts is currently offline Wilbert AlbertsFriend
Messages: 195
Registered: June 2010
Senior Member
Hi,

Is it possible to configure a Sirius editor such that new diagrams are initially unsynchronized?

I think the ecore editor does something like that. Even if you ecore model already contains a number of classes, creating a representation does start with an empty diagram and you have to drag classes into the diagram.

(Yes I looked in the settings but couldn't find it so far.)

Greetings,
Wilbert.
Re: Create new representation that is unsynchronized by default [message #1651410 is a reply to message #1651312] Thu, 05 March 2015 09:34 Go to previous messageGo to next message
Esteban Dugueperoux is currently offline Esteban DugueperouxFriend
Messages: 472
Registered: July 2009
Senior Member
Hi Wilbert,

You should look at [1] and [2] in section Synchronization, "Not
Synchronized" mode in your mappings should be what you look for to have
diagram empty at beginning.


[1]
https://www.eclipse.org/sirius/doc/user/diagrams/Diagrams.html#synchronized_diagram
[2] https://www.eclipse.org/sirius/doc/specifier/diagrams/Diagrams.html

Best Regards.

Le 05/03/2015 09:22, Wilbert Alberts a écrit :
> Hi,
>
> Is it possible to configure a Sirius editor such that new diagrams are
> initially unsynchronized?
>
> I think the ecore editor does something like that. Even if you ecore
> model already contains a number of classes, creating a representation
> does start with an empty diagram and you have to drag classes into the
> diagram.
>
> (Yes I looked in the settings but couldn't find it so far.)
>
> Greetings,
> Wilbert.
>



--
Esteban Dugueperoux - Obeo

Need professional services for Sirius?
http://www.obeodesigner.com/sirius
Re: Create new representation that is unsynchronized by default [message #1651493 is a reply to message #1651410] Thu, 05 March 2015 10:31 Go to previous messageGo to next message
Wilbert Alberts is currently offline Wilbert AlbertsFriend
Messages: 195
Registered: June 2010
Senior Member
Hi Esteban,

Thanks for your reply. So to make it clear: I should specify that each nodemapping/containermapping is unsynchronized by default?

That also implies that something like configurable synchronization behavior is not provided.

OK, I can live with this.

Greetings,
Wilbert.
Re: Create new representation that is unsynchronized by default [message #1651549 is a reply to message #1651493] Thu, 05 March 2015 11:10 Go to previous messageGo to next message
Maxime Porhel is currently offline Maxime PorhelFriend
Messages: 500
Registered: July 2009
Location: Nantes, France
Senior Member
Hi Wilbert,

Le 05/03/2015 11:31, Wilbert Alberts a écrit :
> Hi Esteban,
>
> Thanks for your reply. So to make it clear: I should specify that each
> nodemapping/containermapping is unsynchronized by default?
>
> That also implies that something like configurable synchronization
> behavior is not provided.


You could also specify mappings as "Unsynchronizable". Their
synchronization state will depend on the synchronization state of the
diagram. It can be modified by the user with a right-clic on the diagram
background with the Unsynchonized menu. The synchonized status of the
diagram will be initialized regarding the value of a preference form the
preferenc page Sirius > Sirius Diagram > Synchronized mode for new
diagrams.

>
> OK, I can live with this.
>
> Greetings,
> Wilbert.
>


Regards

--
Maxime - Obeo

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


Maxime Porhel - Obeo

Need training or professional services for Sirius?
http://www.obeodesigner.com/sirius
Re: Create new representation that is unsynchronized by default [message #1651744 is a reply to message #1651549] Thu, 05 March 2015 13:38 Go to previous messageGo to next message
Wilbert Alberts is currently offline Wilbert AlbertsFriend
Messages: 195
Registered: June 2010
Senior Member
Thanks Maxime!

This was exactly what I was looking for.

Greetings,
Wilbert
Re: Create new representation that is unsynchronized by default [message #1653784 is a reply to message #1651744] Fri, 06 March 2015 11:35 Go to previous messageGo to next message
Wilbert Alberts is currently offline Wilbert AlbertsFriend
Messages: 195
Registered: June 2010
Senior Member
I tried the preference setting and it does work but:.... it does not seem to be persisted over an eclipse restart?

Isn't that considered to be a bug?

Wilbert.
Re: Create new representation that is unsynchronized by default [message #1654095 is a reply to message #1653784] Fri, 06 March 2015 14:32 Go to previous messageGo to next message
Esteban Dugueperoux is currently offline Esteban DugueperouxFriend
Messages: 472
Registered: July 2009
Senior Member
Hi Wilbert,

Indeed you can raise a bugzilla.

Thanks.

Le 06/03/2015 12:35, Wilbert Alberts a écrit :
> I tried the preference setting and it does work but:.... it does not
> seem to be persisted over an eclipse restart?
> Isn't that considered to be a bug?
>
> Wilbert.



--
Esteban Dugueperoux - Obeo

Need professional services for Sirius?
http://www.obeodesigner.com/sirius
Re: Create new representation that is unsynchronized by default [message #1654160 is a reply to message #1654095] Fri, 06 March 2015 15:08 Go to previous message
Wilbert Alberts is currently offline Wilbert AlbertsFriend
Messages: 195
Registered: June 2010
Senior Member
Done: https://bugs.eclipse.org/bugs/show_bug.cgi?id=461600
Previous Topic:Add new node on a diagram
Next Topic:Label Position of BorderItems
Goto Forum:
  


Current Time: Thu Jan 21 19:13:13 GMT 2021

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

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

Back to the top