Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Sirius » How to add icons to Table rows
How to add icons to Table rows [message #1712310] Thu, 22 October 2015 20:52 Go to next message
Yariv Amar is currently offline Yariv AmarFriend
Messages: 29
Registered: October 2015
Junior Member
in the basic family example, i notice that when you created a table, there are icons on the rows (of man and women).

could you please explain how to change\add icons to table rows?

index.php/fa/23707/0/

thanks!

[Updated on: Sun, 25 October 2015 09:32]

Report message to a moderator

Re: How to add icons to Table rows [message #1712480 is a reply to message #1712310] Sun, 25 October 2015 20:54 Go to previous messageGo to next message
Yariv Amar is currently offline Yariv AmarFriend
Messages: 29
Registered: October 2015
Junior Member
no response yet? Sad Confused
anyone, please?

I'm also using Xtext to build the DSL, in the Xtext outline I see my own custom icons, but they are not "visible" by Sirius.
Re: How to add icons to Table rows [message #1712551 is a reply to message #1712310] Mon, 26 October 2015 10:46 Go to previous messageGo to next message
Laurent Redor is currently offline Laurent RedorFriend
Messages: 267
Registered: July 2009
Senior Member
Le 22/10/2015 22:52, Yariv Amar a écrit :
> in the basic family example, i notice that when you created a table,
> there are icons on the rows (of man and women).
>
> could you please explain how to change\add icons to table rows?
>
> thanks!
Hi,

There is nothing to do to have the icon on lines of table. The joined
screenshot shows an example of a simple table made with EcoreTools [1].
The corresponding table description is here [2].

Best regards,

[1] https://www.eclipse.org/ecoretools/
[2]
http://git.eclipse.org/c/ecoretools/org.eclipse.ecoretools.git/tree/org.eclipse.emf.ecoretools.design/description/ecore.odesign#n1195

--
Laurent Redor - Obeo

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


Laurent Redor - Obeo

Need training or professional services for Sirius?
http://www.obeodesigner.com/sirius
Re: How to add icons to Table rows [message #1712921 is a reply to message #1712551] Thu, 29 October 2015 11:33 Go to previous messageGo to next message
Yariv Amar is currently offline Yariv AmarFriend
Messages: 29
Registered: October 2015
Junior Member
Thank you for the reply.
So I guess that the icons in your example comes from the ecore tools definition, right?https://www.eclipse.org/forums/index.php?t=getfile&id=23731&

--
But, what if I'm using Xtext integration?
I've created a model with xtext and then I use Sirius tables. When i open the table i get diamond shape icons as in the following screenshot index.php/fa/23779/0/

Do you know how can I change these icons? (somewhere in Xtext, i guess)

Thanks again!
Re: How to add icons to Table rows [message #1712936 is a reply to message #1712921] Thu, 29 October 2015 13:11 Go to previous messageGo to next message
Laurent Redor is currently offline Laurent RedorFriend
Messages: 267
Registered: July 2009
Senior Member
Le 29/10/2015 12:33, Yariv Amar a écrit :
> Thank you for the reply.
> So I guess that the icons in your example comes from the ecore tools definition, right?

No, they come from the EMF Ecore edit plugin (org.eclipse.emf.ecore.edit).
>
> --
> But, what if I'm using Xtext integration?
> I've created a model with xtext and then I use Sirius tables. When i open the table i get diamond shape icons as in the following screenshot
>
> Do you know how can I change these icons? (somewhere in Xtext, i guess)
You need to generate the edit plugin associated to the metamodel. You
can have a look to [1] Integration with EMF, especially "...From the
derived Ecore model and its generator model, we generated the edit
plug-in (needed by GMF) and added some fancier icons..."

>
> Thanks again!
>

[1] https://eclipse.org/Xtext/documentation/308_emf_integration.html

--
Laurent Redor - Obeo

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


Laurent Redor - Obeo

Need training or professional services for Sirius?
http://www.obeodesigner.com/sirius
Re: How to add icons to Table rows [message #1712962 is a reply to message #1712936] Thu, 29 October 2015 15:18 Go to previous message
Yariv Amar is currently offline Yariv AmarFriend
Messages: 29
Registered: October 2015
Junior Member
thanks, looks like a great starting point !
Previous Topic:Eclipse RCP with Sirius
Next Topic:Installing basicfamily.sample
Goto Forum:
  


Current Time: Sat Jan 16 12:33:51 GMT 2021

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

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

Back to the top