Clickable in a Draw2D figure [message #179620] |
Fri, 29 April 2005 01:27 |
Eclipse User |
|
|
|
Originally posted by: nipun.walia.gmail.com
hi,
I have a draw2d figure called RectangularFigure that I want to put a
button into.
I want to be able to click the button (with some feedback) and change my
model in some way.
I added a draw2d button to my figure. Now the whole figure acts like a
flat image. Do I need to create a separate edit part/model class for the
button, to be able to click it independent of RectangularFigure and its
selection etc.
Is there a way I can click it without creating a separate editpart and
model ? How do I create a new Request that is then sent to my
RectangularEditPart so it creates a command. Can I get the selectionTool
to create my request or I have to create a tool also ?
I dont want the figure itself to create the command as it doesnt know
about the model etc.
thanks a lot,
let me know if I am way off..
Nipun
|
|
|
|
Powered by
FUDForum. Page generated in 0.03285 seconds