I'm just wondering how it's possible to define a link decoration with my own icon. In the supported annotations for Eugenia it says "the fully qualified name of a java class that implements an appropriate interface". I'm not sure how to do this.
Is it meant like the image instead of a shape for the gmf.node http://www.eclipse.org/epsilon/doc/articles/eugenia-nodes-with-images/)?
Would be great if someone can give me a hint. I'm not that familiar at all with this whole stuff, but would be able to define some transformations ect..
Yes. You'll need to provide the fully qualified name (e.g. x.y.CustomArrow) of a Java class that implements the org.eclipse.draw2d.RotatableDecoration interface (I've updated the tutorial to clarify this).
So, I've tested the "Nodes with images instead of shapes" in my editor and this works really great.
I've got my figure project including the images, activator and a figure class like in the example.
Is it the right way to define within the figures package a new class, e.g. called AlternativeDecoration.java, which implements then the RotatableDecoration interface?
It looks like this so far: pastebin.com/9fBKDp6N
Is it necessary to implement all this method? Can I use images or have I to define the image via x and y coordinates? And what about the Plugin Activator?
Sry for all this question, but I`m not really sure how to handle this yet.
Maybe there is a tutorial which explain more detailed?
Thanks! There appear to be 2 implementations of the RotabableDecoration interface in Draw2D (PolygonDecoration and PolylineDecoration) which you may be able to reuse. If these are no good, I'm guessing you will indeed have to implement all these methods. Sorry for not being of more help; I don't have much experience with implementing custom decorators.