Skip to main content



      Home
Home » Modeling » GMF (Graphical Modeling Framework) » could not add a shape
could not add a shape [message #133672] Thu, 07 June 2007 06:41 Go to next message
Eclipse UserFriend
Originally posted by: alexjaquet.gmail.com

Hi,

I've in my model the following entities :

-Library
-Book
-Writer
-BookCategory (an enumeration)

http://dev.eclipse.org/viewcvs/indextools.cgi/org.eclipse.em f/doc/org.eclipse.emf.doc/tutorials/clibmod/clibmod.html

I've generated the whole application but now when I run the application,
I could not add book to the diagram.

I can only add writer and a new created element BookWriters (I've no idea
why this
element exist)

And I want to add in the figure the attributes who compose it (like
attribute name)
how can I do that.

Thanks for your help.

Regards,
Alexandre.
Re: could not add a shape [message #133705 is a reply to message #133672] Thu, 07 June 2007 07:03 Go to previous messageGo to next message
Eclipse UserFriend
Hi,
if I understand well, you are trying to extend this EMF tutorial to GMF
right ?
If you can't add a node to your diagram I guess there is something wrong
with your mapping in the .gmfmap file. Open it and find the Node Mapping
corresponding to your Node (Book) and make sure the properties Diagram
Node and Tool are set.

By the way, have you go through the eclipse GMF tutoriel ? It is quite
well done and explains a lot of things. There are also some flash videos

http://wiki.eclipse.org/index.php/GMF_Tutorial

cheers
Re: could not add a shape [message #133731 is a reply to message #133705] Thu, 07 June 2007 08:26 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: alexjaquet.gmail.com

The firewall block the cvs port I cannot try the tutorial.
I will do it tonigth.

Thanks for your advice.

Alexandre

"Tex Twil" <chaljan@hotmail.com> a
Re: could not add a shape [message #133744 is a reply to message #133731] Thu, 07 June 2007 08:38 Go to previous messageGo to next message
Eclipse UserFriend
You can skip the CVS section and start from "A New Project" section.
Re: could not add a shape [message #133763 is a reply to message #133744] Thu, 07 June 2007 09:01 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: alexjaquet.gmail.com

This is what I just do, unfortunatly I got some errors when generating the
code

installEditPolicy(EditPolicyRoles.SEMANTIC_ROLE,new
MapItemSemanticEditPolicy());
installEditPolicy(EditPolicy.GRAPHICAL_NODE_ROLE, new
MapGraphicalNodeEditPolicy());

these classes are not found

Thanks,
Alexandre

"Tex Twil" <chaljan@hotmail.com> a
Re: could not add a shape [message #133774 is a reply to message #133744] Thu, 07 June 2007 09:06 Go to previous message
Eclipse UserFriend
Originally posted by: alexjaquet.gmail.com

By placing in comment the lines and running the example I'm getting this
(see the attachment)


Regards,
Alexandre


"Tex Twil" <chaljan@hotmail.com> a
  • Attachment: test.JPG
    (Size: 166.50KB, Downloaded 107 times)
Previous Topic:Get ePackage
Next Topic:difference of the package diagram,plugin
Goto Forum:
  


Current Time: Fri May 09 18:26:56 EDT 2025

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

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

Back to the top