Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » GEF » Creating complex figures
Creating complex figures [message #178664] Thu, 21 April 2005 08:39 Go to next message
Eclipse UserFriend
Originally posted by: jdelgad.correo.ugr.es

Hi everyone,

I would like to create complex figures in the following way:

1.- The user draws a diagram using simple figures and connections
2.- The user choose the marquee tool and selects a subpart of the
diagram
3.- With the context menu, he selects "group figures" and the figures
and
connections selected are replaced by a new figure which has all of
this figures and connections inside (the figures inside aren't
visible).
4.- When double click on this new figure, a new editor page containing
the figures and connections gruoped must be opened.

The steps 1 and 2 are done. How can I do steps 3 and 4?

Thank you very much.

--Jose.
Re: Creating complex figures [message #178727 is a reply to message #178664] Thu, 21 April 2005 20:26 Go to previous message
Pratik Shah is currently offline Pratik ShahFriend
Messages: 1077
Registered: July 2009
Senior Member
Step 3. You need to replace the models for all those editparts with a
single GroupModel.
Step 4. The EditPart for the GroupModel should launch a new editor with
that model as contents when it receives an open request.

"Jose" <jdelgad@correo.ugr.es> wrote in message
news:eed78d2ffc81c09b0733e0895e55503a$1@www.eclipse.org...
> Hi everyone,
>
> I would like to create complex figures in the following way:
>
> 1.- The user draws a diagram using simple figures and connections
> 2.- The user choose the marquee tool and selects a subpart of the
> diagram
> 3.- With the context menu, he selects "group figures" and the figures
> and
> connections selected are replaced by a new figure which has all of
> this figures and connections inside (the figures inside aren't
> visible).
> 4.- When double click on this new figure, a new editor page containing
> the figures and connections gruoped must be opened.
>
> The steps 1 and 2 are done. How can I do steps 3 and 4?
>
> Thank you very much.
>
> --Jose.
>
Previous Topic:How to create GEF TreeViewer in a editor
Next Topic:How to update the name of a GraphicalEditor ?
Goto Forum:
  


Current Time: Fri Apr 26 17:05:11 GMT 2024

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

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

Back to the top