Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » Epsilon » [Eugenia] Changing Icons / Canvas
[Eugenia] Changing Icons / Canvas [message #758326] Tue, 22 November 2011 18:22 Go to next message
Snakebyte Missing name is currently offline Snakebyte Missing name
Messages: 130
Registered: November 2011
Senior Member
Hello, and sorry this time for the whole bunch of question from here.

But there is another thing, i can't find documented anywhere.

I want to change the small icons near an object. I want to change it in the canvas, und in the palette.

In the palette it works really great, when doing it like this.

@gmf.node(label="name", phantom="true",color="191,239,255",border.width="3",border.color="0,0,0",size="130,50",tool.small.path="icons/claim.gif",tool.large.path="icons/claim.gif",label.icon="true")
class Claim {
   attr String name;
   attr String description;


But this only changes the palette, not the small icon in a node in canvas.
Any suggestions ?
Re: [Eugenia] Changing Icons / Canvas [message #758341 is a reply to message #758326] Tue, 22 November 2011 20:38 Go to previous messageGo to next message
Dimitris Kolovos is currently offline Dimitris Kolovos
Messages: 886
Registered: July 2009
Senior Member
You need to replace the default icons under the icons/full/obj16 folder in your EMF-generated xyz.edit plugin to do this.

Cheers,
Dimitris
Re: [Eugenia] Changing Icons / Canvas [message #758371 is a reply to message #758341] Tue, 22 November 2011 21:52 Go to previous messageGo to next message
Snakebyte Missing name is currently offline Snakebyte Missing name
Messages: 130
Registered: November 2011
Senior Member
Works great. With a small exception.

.emf file


@namespace(uri="argumentmodel", prefix="argumentmodel")
@gmf(foo="bar")
package argumentmodel;

@gmf.diagram(onefile="false")
class ArgumentModel {
   val Claim[*] claims;
}
@gmf.node(label="name")
class Claim {
   attr String name;
   attr String description;
   @gmf.link(incoming="true")
   val ArgumentStrategy[*] connectarg;
}
@gmf.node(label="name",phantom="true")
class ArgumentStrategy {
   attr String description;
   attr String name;
   @gmf.link(incoming="true")
   ref Claim [*] Claim;   
}



When i now change the picture of ArgumentStrategy...always claim is changed too.
Seems like a bug ?

[Updated on: Tue, 22 November 2011 22:05]

Report message to a moderator

Re: [Eugenia] Changing Icons / Canvas [message #758373 is a reply to message #758371] Tue, 22 November 2011 22:18 Go to previous message
Snakebyte Missing name is currently offline Snakebyte Missing name
Messages: 130
Registered: November 2011
Senior Member
ok my fault, now its working correctly !
Previous Topic:[Eugenia] Using Phantom Nodes
Next Topic:[Eugenia] Validation Problem
Goto Forum:
  


Current Time: Fri Oct 24 23:12:34 GMT 2014

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

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