Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Sirius » How to forbid two views with same name in the same project ?
How to forbid two views with same name in the same project ? [message #1713973] Mon, 09 November 2015 08:57 Go to next message
Benoit Ries is currently offline Benoit RiesFriend
Messages: 86
Registered: May 2013
Member
Dear all,

Is there any way (with Sirius features or any other way) to forbid two views to have the same name in the same project ?

This is mainly targeting the process of creation of a new view and renaming of views.

Thanks in advance for any tips or directions that I may follow.

regards,
Benoît
Re: How to forbid two views with same name in the same project ? [message #1714135 is a reply to message #1713973] Tue, 10 November 2015 08:27 Go to previous messageGo to next message
Florian Barbin is currently offline Florian BarbinFriend
Messages: 270
Registered: August 2010
Senior Member
Hello,

By view you probably mean Sirius representation (Diagram, Tree etc.) ?
Nothing can prevent the user to set an existing name. However it's
possible to set a "Title Expression" in the representation mapping to
avoid conflicts.
The rename action is provided by
org.eclipse.sirius.ui.tools.internal.views.common.ContextMenuFiller but
this is not intended to be overridden.

Regards,

Florian

On 11/09/2015 09:57 AM, Benoit Ries wrote:
> Dear all,
>
> Is there any way (with Sirius features or any other way) to forbid two
> views to have the same name in the same project ?
> This is mainly targeting the process of creation of a new view and
> renaming of views.
>
> Thanks in advance for any tips or directions that I may follow.
>
> regards,
> Benoît


--
Florian - Obeo

Need training or professional services for Sirius?
http://www.obeodesigner.com/sirius
Re: How to forbid two views with same name in the same project ? [message #1714140 is a reply to message #1714135] Tue, 10 November 2015 08:48 Go to previous message
Benoit Ries is currently offline Benoit RiesFriend
Messages: 86
Registered: May 2013
Member
yes good guess. by view I meant representations Smile

thanks anyway for the quick feedback !
Previous Topic:Difficulty of the Java Service Usage
Next Topic:Defining queries in AQL?
Goto Forum:
  


Current Time: Thu Apr 18 01:57:44 GMT 2024

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

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

Back to the top