Skip to main content

Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » GEF » Palette Name as shape label
Palette Name as shape label [message #230568] Tue, 13 February 2007 10:01
Eclipse UserFriend
Originally posted by:


i have a palette which i uses a paletteDrawer to create elements
dynamically based on an external list. but each item in the drawer is an
instance of the same Shape.
is it a way i can pass the palette label name and maybe the description to
the shape?
i experimented around but have only managed with setting the label in the
ShapeCreateCommand in the execute() method.
this means that i would have to pass the value from the DiagramEditPart in
the getCreateCommand method.
my prob now is how do i pass the name from the palette to this method. or
does anyone know of a better solution?
thanks =)
Previous Topic:GEF ChangeConstraint Problem
Next Topic:Resizing children if parent gets resize
Goto Forum:

Current Time: Thu May 24 00:41:55 GMT 2018

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

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

Back to the top