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 12:14 Go to next message
Toñi Reina is currently offline 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 #551101 is a reply to message #550941] Thu, 05 August 2010 05:00 Go to previous messageGo to next message
Louis Rose is currently offline 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 #551128 is a reply to message #551101] Thu, 05 August 2010 06:36 Go to previous message
Toñi Reina is currently offline 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 Go to previous message
Louis Rose is currently offline 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 Go to previous message
Toñi Reina is currently offline 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.
Previous Topic:How ECL script recognize models to compare
Next Topic:Re: [EuGENia] attribute declarations with multiplicity expressions
Goto Forum:
  


Current Time: Fri May 24 08:39:36 EDT 2013

Powered by FUDForum. Page generated in 0.08885 seconds