Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » GEF » Creating children without using palette
Creating children without using palette [message #241064] Mon, 28 January 2008 22:26 Go to next message
Eclipse UserFriend
Originally posted by: extra8325.yahoo.co.jp

I’m trying to create my first application based on GEF with own model and
have a question about creating children. One of the models has an
arbitrary number of children model (as iterator) already in itself at the
moment of its creating, and children figure should be drawn on the edge of
the parent figure. So I want to create the children together with the
parent without using palette. The parent model can be created using
palette, but children are never created on GUI by user(they are always
saved in the parent model and created with them). But the children must
have its own model class, because the connection uses it. So what I need
is not only the children figure but also its EditParts and model classes.
I’ve tried to search information about creating children without palette
in the web, but I couldn’t find it and my experiments failed. How and
where should I create children model and Editparts as well as its figure
at the moment creating its parent? I would be very grateful if someone
gives me tips. Thank you in advance.

Best regards,
Tomoko
Re: Creating children without using palette [message #241069 is a reply to message #241064] Tue, 29 January 2008 05:11 Go to previous messageGo to next message
Neeraj Bhusare is currently offline Neeraj BhusareFriend
Messages: 177
Registered: July 2009
Location: Canada
Senior Member
Hello Tomoko,
You need to invoke the command for creating children objects,
in the the command use for creating the parent(container). Make sure that
the parent/container gets created first. You also need to implement the
getModelchildren() method in the ParentEditPart.

Hope this helps.


Tomoko Kitamura wrote:

> I’m trying to create my first application based on GEF with own model and
> have a question about creating children. One of the models has an
> arbitrary number of children model (as iterator) already in itself at the
> moment of its creating, and children figure should be drawn on the edge of
> the parent figure. So I want to create the children together with the
> parent without using palette. The parent model can be created using
> palette, but children are never created on GUI by user(they are always
> saved in the parent model and created with them). But the children must
> have its own model class, because the connection uses it. So what I need
> is not only the children figure but also its EditParts and model classes.
> I’ve tried to search information about creating children without palette
> in the web, but I couldn’t find it and my experiments failed. How and
> where should I create children model and Editparts as well as its figure
> at the moment creating its parent? I would be very grateful if someone
> gives me tips. Thank you in advance.

> Best regards,
> Tomoko


Twitter : @NeerajBhusare
Blog : https://nbhusare.github.io/
Best regards, Neeraj
Re: Creating children without using palette [message #241078 is a reply to message #241069] Tue, 29 January 2008 08:44 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: extra8325.yahoo.co.jp

Hello Neeraj,

thank you for your tips! I'll try it!

Best regards,
Tomoko
Re: Creating children without using palette [message #241130 is a reply to message #241069] Tue, 29 January 2008 18:19 Go to previous message
Eclipse UserFriend
Originally posted by: extra8325.yahoo.co.jp

Hello Neeraj,

thank you. I've got it.

Best regards,
Tomoko
Previous Topic:Pinning Palette tools using keyboard plus click
Next Topic:GEF in SWT dialog
Goto Forum:
  


Current Time: Thu Sep 26 14:49:07 GMT 2024

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

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

Back to the top