Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » Epsilon » [EUGENIA]Create node for abstract class and how change node figure and diagram figure ???
[EUGENIA]Create node for abstract class and how change node figure and diagram figure ??? [message #580566] Thu, 10 September 2009 17:47 Go to next message
marco  is currently offline marco Friend
Messages: 82
Registered: September 2009
Member
hello world

is the first time you use this forum.

with eugenia there is a way to create the node of an abstract class?
eg

@ gmf.node (figure = "rectangle", label = "name")
abstract class Architecture extends Property...

I can not created node.
Is there a way to do it?
I tried with the phantom node but do not get what I want.

other problem are these:
How do I assign a new image to a node in the palette?
For example, instead of "little stars" I insert other colorful images as a gear or another symbol.


Another problem I have is this. how can I use a figure that is not a rectangle, a rhombus, an ellipse, etc.
I wish I could draw the elements of my model with figures which I have already realized ...


I tried to follow these examples, but are not very clear.

http://sourceforge.net/apps/mediawiki/epsilonlabs/index.php? title=EuGENia

http://sourceforge.net/apps/mediawiki/epsilonlabs/index.php? title=Nodes_with_user_defined_images_at_runtime

Can someone explain better how to follow?
or whether alternatives

thanks

greetings marco
Re: [EUGENIA]Create node for abstract class and how change node figure and diagram figure ??? [message #580592 is a reply to message #580566] Thu, 10 September 2009 21:18 Go to previous message
Dimitrios Kolovos is currently offline Dimitrios KolovosFriend
Messages: 1776
Registered: July 2009
Senior Member
Hi Marco,

Please see comments below

marco wrote:
> hello world
>
> is the first time you use this forum.
>
> with eugenia there is a way to create the node of an abstract class?
> eg
>
> @ gmf.node (figure = "rectangle", label = "name")
> abstract class Architecture extends Property...
>
> I can not created node.
> Is there a way to do it?
> I tried with the phantom node but do not get what I want.

Why would you need to define a node for a class that you cannot
instantiate (since it is abstract)?
>
> other problem are these:
> How do I assign a new image to a node in the palette?
> For example, instead of "little stars" I insert other colorful images as
> a gear or another symbol.

You need to replace the default icons under icons/full/obj16 in your
xxx.edit plugin with your custom icons.
>
>
> Another problem I have is this. how can I use a figure that is not a
> rectangle, a rhombus, an ellipse, etc.
> I wish I could draw the elements of my model with figures which I have
> already realized ...

Instead of figure="rectangle" you should specify your custom figure
class e.g. figure="org.xyz.MyFigure" (don't forget to add the plugin in
which your figure is defined to the dependencies of the xxx.diagram plugin)

See
http://eclipse.org/gmt/epsilon/examples/index.php?example=or g.eclipse.epsilon.eugenia.examples.flowchart
for an example and
http://epsilonblog.wordpress.com/2009/06/15/eugenia-polishin g-your-gmf-editor/
for a discussion on the polishing features which you may find useful

>
>
> I tried to follow these examples, but are not very clear.
>
> http://sourceforge.net/apps/mediawiki/epsilonlabs/index.php? title=EuGENia
>
> http://sourceforge.net/apps/mediawiki/epsilonlabs/index.php? title=Nodes_with_user_defined_images_at_runtime
>
>
> Can someone explain better how to follow?
> or whether alternatives
>
> thanks
>
> greetings marco

Cheers,
Dimitris
Previous Topic:Exceed labels in Emfatic
Next Topic:Modifying a Figure Descriptor
Goto Forum:
  


Current Time: Sat Apr 27 01:49:48 GMT 2024

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

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

Back to the top