Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » GEF » nested palette containers
nested palette containers [message #221531] Tue, 15 August 2006 09:48 Go to next message
Sebastián Gurin is currently offline Sebastián GurinFriend
Messages: 43
Registered: July 2009
Member
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
Re: nested palette containers [message #221552 is a reply to message #221531] Tue, 15 August 2006 18:12 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: none.us.ibm.com

Stacks could always be used inside drawers.

"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
icons in StackPalette items, was:nested palette containers [message #221604 is a reply to message #221552] Wed, 16 August 2006 08:26 Go to previous message
Sebastián Gurin is currently offline Sebastián GurinFriend
Messages: 43
Registered: July 2009
Member
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
>
>
Previous Topic:About Border
Next Topic:Batik - parsing a SVG
Goto Forum:
  


Current Time: Wed Feb 05 04:55:42 GMT 2025

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

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

Back to the top