Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Sirius » Changing the default label provider of the Model Explorer
Changing the default label provider of the Model Explorer [message #1766614] Fri, 23 June 2017 13:33 Go to next message
Amine Kechaou is currently offline Amine KechaouFriend
Messages: 32
Registered: April 2016
Location: Karlsruhe, Germany
Member
Hi,

is there a way to change the default label provider of the Model Explorer?

Currently the model explorer shows for EObjects their EClass and the id. Is it possible to change this behavior? For example show the element's name instead of its id?

Best regards,
Amine
Re: Changing the default label provider of the Model Explorer [message #1766730 is a reply to message #1766614] Mon, 26 June 2017 14:43 Go to previous messageGo to next message
Laurent Fasani is currently offline Laurent FasaniFriend
Messages: 174
Registered: October 2014
Senior Member
Hello

I guess you are talking about the display name of the nodes representing the semantic elements.
In the model explorer, Sirius uses the LabelProvider interface whose implementations are usually defined in the EMF edit plug-in of your meta model (generated by EMF)
In your the .genmodel file of your meta model, check the Edit/Label feature field in Property view for your EClass

regards
Laurent


Laurent Fasani - Obeo
Need training or professional services for Sirius?
http://www.obeodesigner.com/sirius
Re: Changing the default label provider of the Model Explorer [message #1766737 is a reply to message #1766730] Mon, 26 June 2017 15:26 Go to previous message
Amine Kechaou is currently offline Amine KechaouFriend
Messages: 32
Registered: April 2016
Location: Karlsruhe, Germany
Member
Awesome! Thanks :)
Previous Topic:Diagram Navigation - across viewpoints defined in different plugins
Next Topic:Conditional style for EMF Map entries as Nodes in List container
Goto Forum:
  


Current Time: Wed Jan 27 11:51:53 GMT 2021

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

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

Back to the top