| [Eugenia] Palette Icons and Iterative Development Process [message #550941] |
Wed, 04 August 2010 12:14  |
Toñi Reina Messages: 197 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 #551128 is a reply to message #551101] |
Thu, 05 August 2010 06:36  |
Toñi Reina Messages: 197 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 05:00  |
Louis Rose Messages: 427 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 06:36  |
Toñi Reina Messages: 197 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.
|
|
|
Powered by
FUDForum. Page generated in 0.08885 seconds