Customize the shape of selection mark [message #248565] |
Thu, 23 April 2009 03:57  |
Eclipse User |
|
|
|
Hi,
in my GEF editor, some figures are not with recangular but e.g. with diamond
shape. When selecting this figure, the shape of the selection mark is still
rectangular which does not look very nice.
How can I customize the shape of the selection mark, so that it is equal to
the figure
|
|
|
|
Re: Customize the shape of selection mark [message #248590 is a reply to message #248575] |
Fri, 24 April 2009 02:49  |
Eclipse User |
|
|
|
Hi Ben,
thanks for your reply.
I just foound out how to solve my problem.
I had to add a customized version of NonResizableEditPolicy to the
corresponding edit part. There I had to overwrite the method
createSelectionHandles(). In this method I added (for the diamond case)
selection handles for the NORTH, EAST, SOUTH and WEST side. I also added a
customized MoveHandle and overwrote the paint() method to draw the diamond
for the selection border.
Greetz
Carsten
"Ben Vitale" <bvitale3002@yahoo.com> schrieb im Newsbeitrag
news:gspqtk$h8t$1@build.eclipse.org...
>I have seen previous posts which indicate that the GEF Flow example uses
>customized selection feedback. You may want to have a look at that.
>
> Regards,
> Ben
>
> Carsten Spieker wrote:
>> Hi,
>>
>> in my GEF editor, some figures are not with recangular but e.g. with
>> diamond shape. When selecting this figure, the shape of the selection
>> mark is still rectangular which does not look very nice.
>>
>> How can I customize the shape of the selection mark, so that it is equal
>> to the figure
|
|
|
Powered by
FUDForum. Page generated in 0.05478 seconds