Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » GEF » Cycle through edit parts
Cycle through edit parts [message #214121] Wed, 12 April 2006 18:41 Go to next message
Eclipse UserFriend
Originally posted by: mowens72.gmail.com

Is it possible to cycle through the selection of the edit parts in the
main view via the keyboard, ie, pressing tab?

I want to be able to use the arrow keys to move parts around, instead of
using them for selection. Tab is a great alternative to this.

Anyway, any help is appreciated. Thanks!
Re: Cycle through edit parts [message #214217 is a reply to message #214121] Thu, 13 April 2006 20:52 Go to previous messageGo to next message
Steven R. Shaw is currently offline Steven R. ShawFriend
Messages: 128
Registered: July 2009
Senior Member
The accessibility providers work well for this.
(DefaultAccessibleAnchorProvider)

In logic diagram, select a shape and then press the "." key. The move
handle becomes accessible and the arrow keys now "move parts around".

-Steve

"Mike Owens" <mowens72@gmail.com> wrote in message
news:e1jhko$sit$1@utils.eclipse.org...
> Is it possible to cycle through the selection of the edit parts in the
> main view via the keyboard, ie, pressing tab?
>
> I want to be able to use the arrow keys to move parts around, instead of
> using them for selection. Tab is a great alternative to this.
>
> Anyway, any help is appreciated. Thanks!
Re: Cycle through edit parts [message #214265 is a reply to message #214217] Fri, 14 April 2006 15:37 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: mowens72.gmail.com

I think you misunderstood me because my original post was clear enough...

I want to be able to cycle through selection of the edit parts
themselves--click to select an edit part, press tab to select its child,
etc.

I already have the arrow keys bound to move each part in the appropriate
direction, but I have no way of selecting a different edit part by using
the keyboard.

Steven Shaw wrote:
> The accessibility providers work well for this.
> (DefaultAccessibleAnchorProvider)
>
> In logic diagram, select a shape and then press the "." key. The move
> handle becomes accessible and the arrow keys now "move parts around".
>
> -Steve
>
> "Mike Owens" <mowens72@gmail.com> wrote in message
> news:e1jhko$sit$1@utils.eclipse.org...
>
>>Is it possible to cycle through the selection of the edit parts in the
>>main view via the keyboard, ie, pressing tab?
>>
>>I want to be able to use the arrow keys to move parts around, instead of
>>using them for selection. Tab is a great alternative to this.
>>
>>Anyway, any help is appreciated. Thanks!
>
>
>
Re: Cycle through edit parts [message #214449 is a reply to message #214121] Mon, 17 April 2006 19:11 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: none.us.ibm.com

What you are suggesting is equivalent to having TAB cycle through treeitems
in a tree. That is much too fine grained of a context for focus cycling.
But, you can do it if you want.

If you want to change the way things work, see graphicalviewerkeyhandler.
You'll probably just want to write a new version of that class from scratch.
Also, there are lots of tools which assume that arrow keys will assist in
their use via keyboard.

"Mike Owens" <mowens72@gmail.com> wrote in message
news:e1jhko$sit$1@utils.eclipse.org...
> Is it possible to cycle through the selection of the edit parts in the
> main view via the keyboard, ie, pressing tab?
>
> I want to be able to use the arrow keys to move parts around, instead of
> using them for selection. Tab is a great alternative to this.
>
> Anyway, any help is appreciated. Thanks!
Re: Cycle through edit parts [message #214629 is a reply to message #214449] Wed, 19 April 2006 14:18 Go to previous message
Eclipse UserFriend
Originally posted by: mowens72.gmail.com

I've got it now. Pressing TAB essentially goes to the next part down in
the outline view.

I was having some trouble because it wasn't getting picked up as a key
press/release event--it was a key traverse. I just extended from the
panning selection tool used from the palette and overrode the traverse
handler.

Everything is working great. Thanks!

Mike

Randy Hudson wrote:
> What you are suggesting is equivalent to having TAB cycle through treeitems
> in a tree. That is much too fine grained of a context for focus cycling.
> But, you can do it if you want.
>
> If you want to change the way things work, see graphicalviewerkeyhandler.
> You'll probably just want to write a new version of that class from scratch.
> Also, there are lots of tools which assume that arrow keys will assist in
> their use via keyboard.
>
> "Mike Owens" <mowens72@gmail.com> wrote in message
> news:e1jhko$sit$1@utils.eclipse.org...
>
>>Is it possible to cycle through the selection of the edit parts in the
>>main view via the keyboard, ie, pressing tab?
>>
>>I want to be able to use the arrow keys to move parts around, instead of
>>using them for selection. Tab is a great alternative to this.
>>
>>Anyway, any help is appreciated. Thanks!
>
>
>
Previous Topic:Delete Command
Next Topic:Q re how to hide/collapse tree branch in GEF editor
Goto Forum:
  


Current Time: Fri Apr 26 17:47:42 GMT 2024

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

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

Back to the top