Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » GEF » New to GEF need help
New to GEF need help [message #211163] Wed, 08 March 2006 15:07 Go to next message
Eclipse UserFriend
Originally posted by: rajakididi.hotmail.com

Hi

i an new to GEF and i am facing few problems that i will mention below,
please correct me if i am doing something wrong::

To start, what i am doing for a start is i have an Editor which has
GraphicalEditor as its superclass.
In the editor i m getting the GraphicalViewer and then i m associating
with it a customized EditorFactory that i have created and
viewer.setRootEditPart(new FreeformGraphicalRootEditPart());
I have two models ModelElement and ModelChild where ModelElement is the
root model which i m also initializing in the editor and ModelChild is the
child of the same.
Both the models are not doing any specific tasks because in their EditPart
i m simply creating figures {Layer in Root Model and Ellipse in Child}.
The problem is i m not able to see the above figures in my editor.

Please tell me the reason for this and tell me some solution of the
problem.

Thanks....!!!
Krayon
Re: New to GEF need help [message #211440 is a reply to message #211163] Fri, 10 March 2006 22:55 Go to previous message
Nathan Snapp is currently offline Nathan SnappFriend
Messages: 14
Registered: July 2009
Junior Member
Did you create your EditDomain and call addViewer(GraphicalViewer)? You
also need to provide an EditPart Factory so it can translate the model
into EditParts.

Perhaps you have some (simplified) source code?
Previous Topic:NonResizableEditPolicy
Next Topic:Snap only when key is pressed - DragEditPartsTracker SnapToHelper?
Goto Forum:
  


Current Time: Fri Apr 26 10:52:53 GMT 2024

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

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

Back to the top