insert more than one element with the palette at once [message #155605] |
Tue, 26 October 2004 09:03 |
Andreas Herz 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 |
Eclipse User |
|
|
|
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
>
>
>
>
>
>
>
>
|
|
|
Powered by
FUDForum. Page generated in 0.02708 seconds