Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » GEF » L&F : Focus Rectangle
L&F : Focus Rectangle [message #203801] Mon, 28 November 2005 12:01 Go to next message
Eclipse UserFriend
Originally posted by: awm_abu.yahoo.com

Hello all,

I have had a request from the Look and Feel people here to change the look
of the focus rectangle that appears when you select a Figure.

At the moment it appears as 8 small black rectangles around the edge of the
rectangle area connected with lines.

When you try to move the Figure the rectangle changes to a series of dots.

The L&F people would prefer the focus rectangle to look like the latter one
mentioned - a series of dots.

How do I go about changing this ?

Regards.
Re: Focus Rectangle [message #203826 is a reply to message #203801] Mon, 28 November 2005 15:08 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: none.unknown.com

That's the selection rectangle, not the focus rectangle. To see the focus
rectangle, use Ctrl + Arrow keys.

"Frank Abercorn" <awm_abu@yahoo.com> wrote in message
news:dmerj6$fkd$1@news.eclipse.org...
> Hello all,
>
> I have had a request from the Look and Feel people here to change the look
> of the focus rectangle that appears when you select a Figure.
>
> At the moment it appears as 8 small black rectangles around the edge of
the
> rectangle area connected with lines.
>
> When you try to move the Figure the rectangle changes to a series of dots.
>
> The L&F people would prefer the focus rectangle to look like the latter
one
> mentioned - a series of dots.
>
> How do I go about changing this ?
>
> Regards.
>
>
Re: Focus Rectangle [message #203834 is a reply to message #203826] Mon, 28 November 2005 15:16 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: awm_abu.yahoo.com

Thanks Pratik,

You are correct I was referring to the Selection rectangle.
I have checked with them and they also want this changed.
So is there a way to change the rectangle to a series of dots similar to the
focus rectangle ?

Thanks again.



"Pratik Shah" <none@unknown.com> wrote in message
news:dmf6hq$44r$1@news.eclipse.org...
> That's the selection rectangle, not the focus rectangle. To see the focus
> rectangle, use Ctrl + Arrow keys.
>
> "Frank Abercorn" <awm_abu@yahoo.com> wrote in message
> news:dmerj6$fkd$1@news.eclipse.org...
>> Hello all,
>>
>> I have had a request from the Look and Feel people here to change the
>> look
>> of the focus rectangle that appears when you select a Figure.
>>
>> At the moment it appears as 8 small black rectangles around the edge of
> the
>> rectangle area connected with lines.
>>
>> When you try to move the Figure the rectangle changes to a series of
>> dots.
>>
>> The L&F people would prefer the focus rectangle to look like the latter
> one
>> mentioned - a series of dots.
>>
>> How do I go about changing this ?
>>
>> Regards.
>>
>>
>
>
Re: Focus Rectangle [message #203948 is a reply to message #203834] Tue, 29 November 2005 10:40 Go to previous message
Gunnar Wagenknecht is currently offline Gunnar WagenknechtFriend
Messages: 486
Registered: July 2009
Location: San Francisco ✈ Germany
Senior Member

Hi!

Frank Abercorn wrote:
> You are correct I was referring to the Selection rectangle.
> I have checked with them and they also want this changed.
> So is there a way to change the rectangle to a series of dots similar to the
> focus rectangle ?

That's possible. You need to overwrite the layout EditPolicy of the
parent container to return a custom EditPolicy for the children that
should have their selection changed.

For the container LayoutEditPolicy see:
org.eclipse.gef.editpolicies.LayoutEditPolicy#createChildEdi tPolicy(EditPart)

For the custom child EditPolicy returned there see:
org.eclipse.gef.editpolicies.SelectionHandlesEditPolicy#crea teSelectionHandles()

I'm not sure if there are some examples in the Logic example.

Cu, Gunnar

--
Gunnar Wagenknecht
gunnar@wagenknecht.org
http://wagenknecht.org/
Previous Topic:how to move an anchor by user
Next Topic:Displaying Editor
Goto Forum:
  


Current Time: Wed Apr 24 19:00:53 GMT 2024

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

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

Back to the top