Skip to main content



      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 09:33 Go to next message
Eclipse UserFriend
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 10:43 Go to previous messageGo to next message
Eclipse UserFriend
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
Re: Changing the default label provider of the Model Explorer [message #1766737 is a reply to message #1766730] Mon, 26 June 2017 11:26 Go to previous message
Eclipse UserFriend
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 Jul 16 01:25:28 EDT 2025

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

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

Back to the top