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 User
Originally posted by: one.eight.three.gmail.com

hi,

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:SWT: no more handles error
Next Topic:GEF ChangeConstraint Problem
Goto Forum:
  


Current Time: Thu Oct 30 14:45:00 GMT 2014

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

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