Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » GEF » insert more than one element with the palette at once
insert more than one element with the palette at once [message #155605] Tue, 26 October 2004 09:03 Go to next message
Andreas Herz is currently offline Andreas HerzFriend
Messages: 196
Registered: July 2009
Senior Member
Hi,

The pallette in the GEF is perfect to insert single objects
into the working area.
I have done this for my GUI editor with Buttons, Labels, InputFields....


Now I want insert a 'Button Group' (Ok, Cancel, Info) at once.

After I have insert this three buttons, all of them should be selected.

AND:
----

- All buttons should have a seperate Model,EditPart,Figure,.....

- There is no Child/Parent relation between these buttons.

- Single Buttons can be deleted, modified....


How to implement a 'Macro' to insert more than one existing EditParts/Models/Figures in
my Editor?

Is this possible with one Command (depending for the UndoStack)?


greetings

Andreas
Re: insert more than one element with the palette at once [message #155703 is a reply to message #155605] Tue, 26 October 2004 15:13 Go to previous message
Eclipse UserFriend
Originally posted by: none.us.ibm.com

You could start with a special creation factory, which the target editpart
would recognize and return a command which creates all 3 model objects. You
don't necessarily have to use the factory's create method, or you could have
it return a List instead of one item.

Selecting would be tricky. Maybe your factory could return an ArrayList,
and in a creation tool subclass, you could check for a List and lookup all
editparts instead of just the one.

"FreeGroup" <a.herz@FreeGroup.de> wrote in message
news:cll3aj$rhm$1@eclipse.org...
> Hi,
>
> The pallette in the GEF is perfect to insert single objects
> into the working area.
> I have done this for my GUI editor with Buttons, Labels, InputFields....
>
>
> Now I want insert a 'Button Group' (Ok, Cancel, Info) at once.
>
> After I have insert this three buttons, all of them should be selected.
>
> AND:
> ----
>
> - All buttons should have a seperate Model,EditPart,Figure,.....
>
> - There is no Child/Parent relation between these buttons.
>
> - Single Buttons can be deleted, modified....
>
>
> How to implement a 'Macro' to insert more than one existing
EditParts/Models/Figures in
> my Editor?
>
> Is this possible with one Command (depending for the UndoStack)?
>
>
> greetings
>
> Andreas
>
>
>
>
>
>
>
>
Previous Topic:Problems while using button border of draw2d
Next Topic:Implement IPropertySource with array property
Goto Forum:
  


Current Time: Thu Apr 25 21:20:40 GMT 2024

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

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

Back to the top