Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » Epsilon » [Eugenia] Palette Icons and Iterative Development Process
[Eugenia] Palette Icons and Iterative Development Process [message #550941] Wed, 04 August 2010 16:14 Go to next message
Toñi  Reina is currently offline Toñi ReinaFriend
Messages: 209
Registered: July 2009
Senior Member
Hi all,

I'm developing an editor with Eugenia iteratively, meaning that I
have to regenerate all the stuff too many times.

The procedure I have found to change the default icons in the palette
is to rewrite the gif files that are generated in the icons\full\obj16
directory belonging to the metamodel.edit plugin. However, as I have to
regenerate many times, this rewriting is error-prone, cause many times I
forget to rewrite the icons.

I was wondering if there is a more automatic way of changing this
icons. I have tried the tool.small.path and tool.small.bundle
properties, but I have no satisfactory results, because icons disappear.
I don't know if the problems are due to the location of icons. I have
created a directory named icons under the metamodel proyect, as follows:

metamodel
|---src
|---icon
|---obj16
|---model
|---metamodel.emf


Thanks in advance,

Toñi
Re: [Eugenia] Palette Icons and Iterative Development Process [message #551101 is a reply to message #550941] Thu, 05 August 2010 09:00 Go to previous messageGo to next message
Louis Rose is currently offline Louis RoseFriend
Messages: 440
Registered: July 2009
Location: York, United Kingdom
Senior Member
Hi Toni,

As you suggested, the tool.small.path and tool.small.bundle annotations can be used to specify icons for the palette.

tool.small.bundle should be set to the name of the bundle (project) that contains the icons.

tool.small.path should be set to the path of the icon relative to the root of the bundle.

So, if we have a bundle called "org.example.icons" and we have an icon directory at the top-level of the bundle, the following annotations can be used:

@gmf.node(label=..., tool.small.bundle="org.example.icons", tool.small.path="icon/OurIcon.png")


Cheers,
Louis.
Re: [Eugenia] Palette Icons and Iterative Development Process [message #551128 is a reply to message #551101] Thu, 05 August 2010 10:36 Go to previous message
Toñi  Reina is currently offline Toñi ReinaFriend
Messages: 209
Registered: July 2009
Senior Member
Hi Louis,


thanks to your explanations, I have realized that I haven't
understood the tool.small.bundle property, as I wasn't writing the name
of the project.

Best regards,
Toñi


El 05/08/2010 11:00, Louis Rose escribió:
> Hi Toni,
>
> As you suggested, the tool.small.path and tool.small.bundle annotations
> can be used to specify icons for the palette.
>
> tool.small.bundle should be set to the name of the bundle (project) that
> contains the icons.
>
> tool.small.path should be set to the path of the icon relative to the
> root of the bundle.
>
> So, if we have a bundle called "org.example.icons" and we have an icon
> directory at the top-level of the bundle, the following annotations can
> be used:
>
> @gmf.node(label=..., tool.small.bundle="org.example.icons",
> tool.small.path="icon/OurIcon.png")
>
> Cheers,
> Louis.
Re: [Eugenia] Palette Icons and Iterative Development Process [message #591167 is a reply to message #550941] Thu, 05 August 2010 09:00 Go to previous message
Louis Rose is currently offline Louis RoseFriend
Messages: 440
Registered: July 2009
Location: York, United Kingdom
Senior Member
Hi Toni,

As you suggested, the tool.small.path and tool.small.bundle annotations can be used to specify icons for the palette.

tool.small.bundle should be set to the name of the bundle (project) that contains the icons.

tool.small.path should be set to the path of the icon relative to the root of the bundle.

So, if we have a bundle called "org.example.icons" and we have an icon directory at the top-level of the bundle, the following annotations can be used:

@gmf.node(label=..., tool.small.bundle="org.example.icons", tool.small.path="icon/OurIcon.png")

Cheers,
Louis.
Re: [Eugenia] Palette Icons and Iterative Development Process [message #591182 is a reply to message #591167] Thu, 05 August 2010 10:36 Go to previous message
Toñi  Reina is currently offline Toñi ReinaFriend
Messages: 209
Registered: July 2009
Senior Member
Hi Louis,


thanks to your explanations, I have realized that I haven't
understood the tool.small.bundle property, as I wasn't writing the name
of the project.

Best regards,
Toñi


El 05/08/2010 11:00, Louis Rose escribió:
> Hi Toni,
>
> As you suggested, the tool.small.path and tool.small.bundle annotations
> can be used to specify icons for the palette.
>
> tool.small.bundle should be set to the name of the bundle (project) that
> contains the icons.
>
> tool.small.path should be set to the path of the icon relative to the
> root of the bundle.
>
> So, if we have a bundle called "org.example.icons" and we have an icon
> directory at the top-level of the bundle, the following annotations can
> be used:
>
> @gmf.node(label=..., tool.small.bundle="org.example.icons",
> tool.small.path="icon/OurIcon.png")
>
> Cheers,
> Louis.
Previous Topic:How ECL script recognize models to compare
Next Topic:Re: [EuGENia] attribute declarations with multiplicity expressions
Goto Forum:
  


Current Time: Thu Apr 25 19:17:12 GMT 2024

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

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

Back to the top