Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » Epsilon » [EuGENia] How to change icon in palette and popup menu
[EuGENia] How to change icon in palette and popup menu [message #533378] Thu, 13 May 2010 11:27 Go to next message
Syed Imran is currently offline Syed Imran
Messages: 25
Registered: January 2010
Location: Cork, Ireland
Junior Member
Hi All,

I have two questions:
Does the tool.small.path() and tool.large.path() properties of @gmf.node or gmf.link does not work anymore with Eugenia-> Generate GMF editor (experimental) ?.

As what I have understand tool.small.path() and tool.large.path() properties needs to be define manually in generated xyz.edit package with in a path /icons/full/obj16/ . For example as posted earlier in
http://www.eclipse.org/forums/index.php?t=msg&th=157305&
@gmf.node(figure="ellipse",label = "name")
class Group extends Element {
@gmf.link(style="dot",tool.small.path="/a0_editor.edit/icons/full/obj16/Members.gif ",tool.large.path="/a0_editor.edit/icons/full/obj16/Members.gif ")
ref Element[*] members;
}
or is there any other way to define them. I have followed this following post also but could not get any clear understanding.
http://www.eclipse.org/forums/index.php?t=msg&goto=526559&
Is there is any example of it or how to solve this ?
Re: [EuGENia] How to change icon in palette and popup menu [message #533398 is a reply to message #533378] Thu, 13 May 2010 12:47 Go to previous messageGo to next message
Dimitrios Kolovos is currently offline Dimitrios Kolovos
Messages: 1776
Registered: July 2009
Senior Member
Hi Syed,

Please see comments below

Syed Imran wrote:
> Hi All,
>
> I have two questions:
> Does the tool.small.path() and tool.large.path() properties of
> @gmf.node or gmf.link does not work anymore with Eugenia-> Generate
> GMF editor (experimental) ?.

They should work.

>
> As what I have understand tool.small.path() and tool.large.path()
> properties needs to be define manually in generated xyz.edit package
> with in a path /icons/full/obj16/ . For example as posted earlier in
> http://www.eclipse.org/forums/index.php?t=msg&th=157305& amp;
> @gmf.node(figure="ellipse",label = "name")
> class Group extends Element {
> @gmf.link(style="dot",tool.small.path="/a0_editor.edit/icons/full/obj16/Members.gif
> ",tool.large.path="/a0_editor.edit/icons/full/obj16/Members.gif ")
> ref Element[*] members;
> } or is there any other way to define them. I have followed this
> following post also but could not get any clear understanding.
> http://www.eclipse.org/forums/index.php?t=msg&goto=52655 9&
> Is there is any example of it or how to solve this ?

Could you please zip your projects and send them to me at dskolovos
gmail com so that I can have a look at this?

Cheers,
Dimitris
Re: [EuGENia] How to change icon in palette and popup menu [message #533405 is a reply to message #533398] Thu, 13 May 2010 13:23 Go to previous messageGo to next message
Syed Imran is currently offline Syed Imran
Messages: 25
Registered: January 2010
Location: Cork, Ireland
Junior Member
Sure, I am just doing it.
Re: [EuGENia] How to change icon in palette and popup menu [message #533544 is a reply to message #533405] Fri, 14 May 2010 10:03 Go to previous messageGo to next message
Syed Imran is currently offline Syed Imran
Messages: 25
Registered: January 2010
Location: Cork, Ireland
Junior Member
Thanks to Dimitris,
The tool.xxx.bundle attributes was missing from my Emfatic code.

The working syntax is Very Happy
package PaletteAndCanvasIconFix;

@gmf.diagram(foo="bar")
class Map {
  val Causation[*] mCause;
}

@gmf.node(figure="ellipse",label="name",label.icon="false",tool.small.bundle="PaletteAndCanvasIconFix", tool.small.path="icons/toolCondition.gif", tool.large.bundle="PaletteAndCanvasIconFix", tool.large.path="icons/PaletteCondition.gif")
class Causation {
  attr String name;
....
}


Re: [EuGENia] How to change icon in palette and popup menu [message #589187 is a reply to message #533378] Thu, 13 May 2010 12:47 Go to previous messageGo to next message
Dimitrios Kolovos is currently offline Dimitrios Kolovos
Messages: 1776
Registered: July 2009
Senior Member
Hi Syed,

Please see comments below

Syed Imran wrote:
> Hi All,
>
> I have two questions:
> Does the tool.small.path() and tool.large.path() properties of
> @gmf.node or gmf.link does not work anymore with Eugenia-> Generate
> GMF editor (experimental) ?.

They should work.

>
> As what I have understand tool.small.path() and tool.large.path()
> properties needs to be define manually in generated xyz.edit package
> with in a path /icons/full/obj16/ . For example as posted earlier in
> http://www.eclipse.org/forums/index.php?t=msg&th=157305& amp;
> @gmf.node(figure="ellipse",label = "name")
> class Group extends Element {
> @gmf.link(style="dot",tool.small.path="/a0_editor.edit/icons/full/obj16/Members.gif
> ",tool.large.path="/a0_editor.edit/icons/full/obj16/Members.gif ")
> ref Element[*] members;
> } or is there any other way to define them. I have followed this
> following post also but could not get any clear understanding.
> http://www.eclipse.org/forums/index.php?t=msg&goto=52655 9&
> Is there is any example of it or how to solve this ?

Could you please zip your projects and send them to me at dskolovos
gmail com so that I can have a look at this?

Cheers,
Dimitris
Re: [EuGENia] How to change icon in palette and popup menu [message #589196 is a reply to message #533398] Thu, 13 May 2010 13:23 Go to previous messageGo to next message
Syed Imran is currently offline Syed Imran
Messages: 25
Registered: January 2010
Location: Cork, Ireland
Junior Member
Sure, I am just doing it.
Re: [EuGENia] How to change icon in palette and popup menu [message #589209 is a reply to message #589196] Fri, 14 May 2010 10:03 Go to previous message
Syed Imran is currently offline Syed Imran
Messages: 25
Registered: January 2010
Location: Cork, Ireland
Junior Member
Thanks to Dimitris,
The tool.xxx.bundle attributes was missing from my Emfatic code.

The working syntax is :d

package PaletteAndCanvasIconFix;

@gmf.diagram(foo="bar")
class Map {
val Causation[*] mCause;
}

@gmf.node(figure="ellipse",label="name",label.icon="false ",tool.small.bundle="PaletteAndCanvasIconFix", tool.small.path="icons/toolCondition.gif", tool.large.bundle="PaletteAndCanvasIconFix", tool.large.path="icons/PaletteCondition.gif")
class Causation {
attr String name;
....
}
Previous Topic:[EuGENia] How to change icon in palette and popup menu
Next Topic:ETL problem
Goto Forum:
  


Current Time: Sat Jul 12 13:16:17 EDT 2014

Powered by FUDForum. Page generated in 0.01664 seconds