|
Re: Help with edit policies [message #245528 is a reply to message #245524] |
Tue, 16 September 2008 12:38 |
Eclipse User |
|
|
|
Originally posted by: shady_86.sify.com
Selection Feed Role is can be used for figures been made on the handle layer, which are the Grey ghost figure when you drag or resize an object...
here if you want something like if you select the figure and the color will change of the figure, then you can do one thing is....
there is a method setSelected(int arg) in AbstractEditPart. This method is called when an edit part is selected or deselected. You need to override this call and do whatever changes you want to the figure..,
|
|
|
|
Re: Help with edit policies [message #245711 is a reply to message #245533] |
Tue, 30 September 2008 19:11 |
Eclipse User |
|
|
|
Originally posted by: shady_86.sify.com
i will tell you two things which can help
1. check the methods decorateChild in the LayoutEditPolicy which is the super class of your xylayout edit policy.
this decorate child method install the primary drag role, because of which those handles on the edit part are created, this edit policy is actually ResizazbleEditPolicy.
Now these handles are also created on handle layer so by putting proper break points you can figure out from where the ghost images are created.
2. when you create the scalable root edit part in your editor class, go inside that class, there all the layers are created one after another including the handle layer, put some break points there also..,
|
|
|
Powered by
FUDForum. Page generated in 0.01885 seconds