nested palette containers [message #221531] |
Tue, 15 August 2006 05:48  |
Eclipse User |
|
|
|
Hi
Well, I want to have nested palette containers in my editor in GEF 3.1. I tried all
the containers combination possible but don't work (
java.lang.IllegalArgumentException: This container can not contain this type of child: $PaletteStack
at org.eclipse.gef.palette.PaletteContainer.add(PaletteContaine r.java:77)
)
A PaletteStack inside a PaletteDrawer would be nice, but also nested PaletteStack would
be ok. Nevertheless, it seems that this don't work in gef3.1.
Well, Is there a way to have some kind of nested PaletteContainers in gef3.1 (I don't see
viable to update my project to a new gef version now). What I want to have is something like
the predefined shapes in msword:
PredefinedShapes --> the only "desplegable" button in the palette
|--Stars
|--Star1
|--Star2
|--Arrows
|--Arrow1
...
Thanks
|
|
|
|
icons in StackPalette items, was:nested palette containers [message #221604 is a reply to message #221552] |
Wed, 16 August 2006 04:26  |
Eclipse User |
|
|
|
On Tue, 15 Aug 2006 14:12:28 -0400
"Randy Hudson" <none@us.ibm.com> wrote:
> Stacks could always be used inside drawers.
Ok, thanks. Only a question: how do I put icons in StackPalette's items.
I'm adding a CombinedTemplateCreationEntry to a StackPalette and then the
StackPalette to the PaletteDrawer but the icons defined for the
CombinedTemplateCreationEntry are not shown in the Stack.
If it can't be done, which class is responsible for showing the item's labels
(text+icon) in the palette (so I can extend it)?
(this must be done for gef 3.1)
Thanks
>
> "Sebastian Gurin" <sgurin@montevideo.com.uy> wrote in message
> news:20060815114812.333b7fe0@localhost.localdomain...
> > Hi
> >
> > Well, I want to have nested palette containers in my editor in GEF 3.1. I
> > tried all
> > the containers combination possible but don't work (
> >
> > java.lang.IllegalArgumentException: This container can not contain this
> > type of child: $PaletteStack
> > at org.eclipse.gef.palette.PaletteContainer.add(PaletteContaine r.java:77)
> >
> > )
> >
> > A PaletteStack inside a PaletteDrawer would be nice, but also nested
> > PaletteStack would
> > be ok. Nevertheless, it seems that this don't work in gef3.1.
> >
> > Well, Is there a way to have some kind of nested PaletteContainers in
> > gef3.1 (I don't see
> > viable to update my project to a new gef version now). What I want to have
> > is something like
> > the predefined shapes in msword:
> >
> > PredefinedShapes --> the only "desplegable" button in the palette
> > |--Stars
> > |--Star1
> > |--Star2
> > |--Arrows
> > |--Arrow1
> > ...
> >
> > Thanks
>
>
|
|
|
Powered by
FUDForum. Page generated in 0.26497 seconds